Devonthink MCP Serverのロゴ

Devonthink MCP Server

コミュニティ
dvcrn

This MCP server provides access to DEVONthink functionality via the Model Context Protocol (MCP). It enables listing, searching, creating, modifying, and managing records and databases in DEVONthink…

公開者dvcrn
リポジトリmcp-server-devonthink
言語TypeScript
フォーク
26
スター
105
利用可能なツール
28
通信方式stdio
カテゴリ
ライセンスGPL-3.0
リンク
  • ツールをAIワークフローに接続

    Devonthink MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 28個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには105件のスターと26件のフォークがあります。

Devonthink MCP Server

This MCP server provides access to DEVONthink functionality via the Model Context Protocol (MCP). It enables listing, searching, creating, modifying, and managing records and databases in DEVONthink Pro on macOS.

screenshot

Features

  • Exposes a comprehensive set of DEVONthink operations as MCP tools
  • List, search, and look up records by various attributes
  • Create, delete, move, and rename records and groups
  • Retrieve and modify record content, properties, and tags
  • Create records from URLs in multiple formats
  • List open databases and group contents
  • All tools are type-safe and validated with Zod schemas

Tools

Core Tools

  1. is_running

    • Checks if DEVONthink is currently running
    • No input required
    • Returns: { "success": true | false }
  2. create_record

    • Creates new records (notes, bookmarks, groups) with specified properties
    • Input: record type, name, parent group, and optional metadata
  3. delete_record

    • Deletes records by ID, name, or path
    • Input: record identifier
  4. move_record

    • Moves records between groups
    • Input: record ID and destination group
  5. get_record_properties

    • Retrieves detailed metadata and properties for records
    • Input: record identifier
  6. search

    • Performs text-based searches with various comparison options
    • Input: query string and search options
  7. lookup_record

    • Looks up records by filename, path, URL, tags, comment, or content hash (exact matches only)
    • Input: lookup type and value
  8. create_from_url

    • Creates records from web URLs in multiple formats
    • Input: URL and format options
  9. get_open_databases

    • Lists all currently open databases
    • No input required
  10. list_group_content

    • Lists the content of a specific group
    • Input: group identifier
  11. get_record_content

    • Retrieves the content of a specific record
    • Input: record identifier
  12. rename_record

    • Renames a specific record
    • Input: record ID and new name
  13. add_tags

    • Adds tags to a specific record
    • Input: record ID and tags
  14. remove_tags

    • Removes tags from a specific record
    • Input: record ID and tags
  15. classify

    • Gets classification proposals for a record using DEVONthink's AI
    • Input: record UUID, optional database name, comparison type, and tags option
    • Returns: Array of classification proposals (groups or tags) with scores
  16. compare

    • Compares records to find similarities (hybrid approach)
    • Input: primary record UUID, optional second record UUID, database name, and comparison type
    • Returns: Either similar records (single mode) or detailed comparison analysis (two-record mode)

Example: Search Tool

json
{
  "query": "project plan",
  "comparison": "contains",
  "database": "Inbox"
}

Returns:

json
{
  "results": [
    { "id": "123", "name": "Project Plan", "path": "/Inbox/Project Plan.md" }
  ]
}

Usage with Claude

Add to your Claude configuration:

json
{
  "mcpServers": {
    "devonthink": {
      "command": "npx",
      "args": ["-y", "mcp-server-devonthink"]
    }
  }
}

Implementation Details

  • Uses JXA (JavaScript for Automation) to control DEVONthink via AppleScript APIs
  • All tool inputs are validated with Zod schemas for safety and clarity
  • Returns structured JSON for all tool outputs
  • Implements robust error handling for all operations
  • Includes comprehensive tests using Vitest

See CLAUDE.md for full documentation, tool development guidelines, and API reference.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "dvcrn-mcp-server-devonthink": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-devonthink"
      ]
    }
  }
}

利用可能なツール

  • is_running

    Check if the DEVONthink application is currently running.

    Example: {}

  • create_record

    Create a new record in DEVONthink.

    Example: { "name": "New Note", "type": "markdown", "content": "# Hello World" }

  • delete_record

    Delete a record from DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF" }

  • move_record

    Move a record to a different group in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

  • get_record_properties

    Get detailed properties and metadata for a DEVONthink record.

    Example: { "uuid": "1234-5678-90AB-CDEF" }

  • get_record_by_identifier

    Get a DEVONthink record using its UUID or ID.

    Example (UUID): { "uuid": "1234-5678-90AB-CDEF" }

    Example (ID): { "id": 12345, "databaseName": "MyDatabase" }

  • search

    Search DEVONthink records. Examples: {"query": "invoice"} or {"query": "project review", "groupPath": "/Meetings", "databaseName": "MyDB"}. Note: groupPath requires databaseName and must be database-relative (e.g., "/Meetings" not "/MyDB/Meetings").

  • lookup_record

    Look up records in DEVONthink by a specific attribute.

    Example: { "lookupType": "filename", "value": "report.pdf" }

  • create_from_url

    Create a record in DEVONthink from a web URL.

    Example: { "url": "https://www.example.com", "format": "markdown" }

  • get_open_databases

    Get a list of all currently open databases in DEVONthink.

    Example: {}

  • current_database

    Get information about the currently selected database in DEVONthink.

    Example: {}

  • selected_records

    Get information about currently selected records in DEVONthink.

    Example: {}

  • list_group_content

    Lists the content of a specific group in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF" }

  • get_record_content

    Gets the content of a specific record in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF" }

  • rename_record

    Renames a specific record in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF", "newName": "New Record Name" }

  • add_tags

    Adds tags to a DEVONthink record.

    Example: { "uuid": "1234-5678-90AB-CDEF", "tags": ["important", "work"] }

  • remove_tags

    Removes tags from a specific record in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF", "tags": ["old-tag"] }

  • classify

    Get classification proposals for a DEVONthink record.

    Example: { "recordUuid": "1234-5678-90AB-CDEF" }

  • compare

    Compare DEVONthink records for similarities.

    Example 1: Find similar records { "recordUuid": "1234-5678-90AB-CDEF" }

    Example 2: Compare two specific records { "recordUuid": "1234-5678-90AB-CDEF", "compareWithUuid": "FEDC-BA09-8765-4321" }

  • replicate_record

    Replicate a record within the same database to a destination group.

    Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

  • duplicate_record

    Duplicate a record to any destination group, creating an independent copy.

    Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

  • convert_record

    Convert a record to a different format, creating a new record.

    Example: { "uuid": "1234-5678-90AB-CDEF", "format": "markdown" }

  • update_record_content

    Updates the content of an existing record in DEVONthink.

    Example: { "uuid": "1234-5678-90AB-CDEF", "content": "# New Content" }

  • set_record_properties

    Set properties on a DEVONthink record (comment, flag, locked, exclude* flags).

    Example: { "uuid": "1234-5678-90AB-CDEF", "comment": "Updated by tool", "flag": true, "locked": true, "excludeFromChat": true }

  • ask_ai_about_documents

    Ask AI questions about specific DEVONthink documents for analysis, comparison, or extraction.

  • check_ai_health

    Check if DEVONthink's AI services are available and working properly.

  • create_summary_document

    Create an AI-generated summary document from multiple DEVONthink documents.

  • get_ai_tool_documentation

    Get detailed documentation for DEVONthink AI tools including examples and use cases.

Devonthink MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Devonthink MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Devonthink MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Devonthink MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "dvcrn-mcp-server-devonthink": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-devonthink"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてDevonthink MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Devonthink MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Devonthink MCP Serverを使ってこのタスクを手伝ってもらえますか?
Devonthink MCP Server
はい、読みました。
Devonthink MCP Serverで調べた結果をお伝えします。

よくある質問

Devonthink MCP Server MCPサーバーは何に使いますか?

Devonthink MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでDevonthink MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでDevonthink MCP Serverを利用できます。

TypingMindでDevonthink MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Devonthink MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Devonthink MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Devonthink MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでDevonthink MCP Server MCPのどのようなツールを利用できますか?

Devonthink MCP Serverは28個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Devonthink MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Devonthink MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇