Devonthink MCP Server logo

Devonthink MCP Server

Community
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…

Publisherdvcrn
Repositorymcp-server-devonthink
LanguageTypeScript
Forks
26
Stars
105
Available tools
28
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    Devonthink MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 28 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    105 stars and 26 forks from the linked repository.

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.

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • 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.

Use Devonthink MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Devonthink MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Devonthink MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Devonthink MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "dvcrn-mcp-server-devonthink": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-devonthink"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Devonthink MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Devonthink MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Devonthink MCP Server to help me with this task?
Devonthink MCP Server
Sure. I read it.
Here is what I found using Devonthink MCP Server.

Frequently asked questions

What is the Devonthink MCP Server MCP server used for?

Devonthink MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Devonthink MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Devonthink MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Devonthink MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Devonthink MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Devonthink MCP Server MCP to TypingMind?

Devonthink MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Devonthink MCP Server MCP provide in TypingMind?

Devonthink MCP Server exposes 28 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Devonthink MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Devonthink MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇