mcp-server-devonthink

v1.10.0
mcp-server-devonthink Checked 17 hours ago Published 7 months ago

MCP server that provides access to DEVONthink

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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" }

ParameterTypeDescription
name *stringName of the new record
type *stringRecord type (e.g., 'markdown', 'formatted note', 'bookmark', 'group')
contentstringContent for text-based records (optional)
databaseNamestringDatabase to create the record in (optional, defaults to current)
parentGroupUuidstringUUID of the parent group (optional, defaults to incoming group)
urlstringURL for bookmark records (optional)

import_file

Import an existing file or folder from a POSIX path or file URL into DEVONthink. Defaults to the global Inbox when no destination is provided. Example: { "filePath": "/Users/david/Documents/report.pdf" }

ParameterTypeDescription
filePath *stringPOSIX file path or file URL of the file or folder to import
databaseNamestringDatabase to import into when parentGroupUuid is not provided (optional, defaults to global Inbox when omitted)
namestringCustom name for the imported record (optional)
parentGroupUuidstringUUID of the destination group (optional, overrides the default Inbox destination)

delete_record

Delete a record from DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF" }

ParameterTypeDescription
databaseNamestringDatabase to delete the record from (optional, defaults to current)
recordIdnumberID of the record to delete
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record to delete

move_record

Move a record to a different group in DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

ParameterTypeDescription
databaseNamestringDatabase to move the record in (optional)
destinationGroupUuidstringUUID of the destination group
recordIdnumberID of the record to move
recordNamestringName of the record to move
recordPathstringPath of the record to move
uuidstringUUID of the record to move

get_record_properties

Get detailed properties and metadata for a DEVONthink record. Example: { "uuid": "1234-5678-90AB-CDEF" }

ParameterTypeDescription
databaseNamestringDatabase to get the record properties from (optional)
recordIdnumberID of the record to get properties for
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record

get_record_by_identifier

Get a DEVONthink record using its UUID, ID, or x-devonthink-item:// reference URL. Example (Reference URL): { "referenceURL": "x-devonthink-item://1234-5678-90AB-CDEF" } Example (Reference URL - email): { "referenceURL": "x-devonthink-item://message:%3Cfoo@bar.com%3E" } Example (UUID): { "uuid": "1234-5678-90AB-CDEF" } Example (ID): { "id": 12345, "databaseName": "MyDatabase" }

ParameterTypeDescription
databaseNamestringDatabase name (required with id)
idnumberID of the record (requires databaseName)
referenceURLstringA x-devonthink-item:// URL. Works for all record types including imported emails which use non-UUID identifiers.
uuidstringUUID of the record

lookup_record

Look up records in DEVONthink by a specific attribute. Example: { "lookupType": "filename", "value": "report.pdf" }

ParameterTypeDescription
lookupType *stringType of lookup to perform
value *stringValue to search for
databaseNamestringDatabase to search in (optional)
limitnumberMaximum results to return (optional)
matchAnyTagbooleanMatch any tag instead of all (for lookupType 'tags')
tagsarrayTags to search for (for lookupType 'tags')

create_from_url

Create a record in DEVONthink from a web URL. Example: { "url": "https://www.example.com", "format": "markdown" }

ParameterTypeDescription
format *stringFormat for the new record
url *stringURL to create a record from
databaseNamestringDatabase to create the record in (optional, defaults to current)
namestringCustom name for the record (optional)
parentGroupUuidstringUUID of the parent group (optional, defaults to incoming group)
pdfOptionsobjectPDF-specific options (optional)
readabilitybooleanUse readability mode to declutter the page (optional)
referrerstringHTTP referrer for the request (optional)
userAgentstringCustom user agent for the request (optional)

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" }

ParameterTypeDescription
databaseNamestringDatabase to get the record properties from (optional)
uuidstringUUID of the group to list content from (optional, defaults to root)

get_record_content

Gets the content of a specific record in DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF" }

ParameterTypeDescription
uuid *stringUUID of the record to get content from
databaseNamestringDatabase name to get the record from (optional)

rename_record

Renames a specific record in DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF", "newName": "New Record Name" }

ParameterTypeDescription
newName *stringNew name for the record
uuid *stringUUID of the record to rename
databaseNamestringDatabase to rename the record in (optional)

add_tags

Adds tags to a DEVONthink record. Example: { "uuid": "1234-5678-90AB-CDEF", "tags": ["important", "work"] }

ParameterTypeDescription
tags *arrayTags to add
uuid *stringRecord UUID to add tags to

remove_tags

Removes tags from a specific record in DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF", "tags": ["old-tag"] }

ParameterTypeDescription
tags *arrayTags to remove
uuid *stringUUID of the record to remove tags from
databaseNamestringDatabase to remove tags from the record in (optional)

classify

Get classification proposals for a DEVONthink record. Example: { "recordUuid": "1234-5678-90AB-CDEF" }

ParameterTypeDescription
recordUuid *stringUUID of the record to classify
comparisonstringComparison type for classification (optional)
databaseNamestringDatabase name to search in (optional)
tagsbooleanPropose tags instead of groups (optional)

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" }

ParameterTypeDescription
recordUuid *stringPrimary record UUID for comparison
compareWithUuidstringSecond record UUID for direct comparison (optional)
comparisonstringComparison type (optional)
databaseNamestringDatabase name to search in (optional)

replicate_record

Replicate a record within the same database to a destination group. Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

ParameterTypeDescription
destinationGroupUuid *stringUUID of the destination group (must be in the same database)
databaseNamestringDatabase containing the record (optional)
recordIdnumberID of the record to replicate
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record to replicate

duplicate_record

Duplicate a record to any destination group, creating an independent copy. Example: { "uuid": "1234-5678-90AB-CDEF", "destinationGroupUuid": "FEDC-BA09-8765-4321" }

ParameterTypeDescription
destinationGroupUuid *stringUUID of the destination group
databaseNamestringDatabase containing the source record (optional, defaults to current)
recordIdnumberID of the record to duplicate
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record to duplicate

convert_record

Convert a record to a different format, creating a new record. Example: { "uuid": "1234-5678-90AB-CDEF", "format": "markdown" }

ParameterTypeDescription
format *stringThe desired format for conversion
databaseNamestringDatabase name containing the source record (optional)
destinationGroupUuidstringUUID of the destination group (optional)
recordIdnumberID of the record to convert
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record to convert

update_record_content

Updates the content of an existing record in DEVONthink. Example: { "uuid": "1234-5678-90AB-CDEF", "content": "# New Content" }

ParameterTypeDescription
content *stringNew content for the record
uuid *stringUUID of the record to update

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 }

ParameterTypeDescription
commentstringSet comment (overwrites any existing comment)
databaseNamestringDatabase containing the record (required for recordId or recordPath)
excludeFromChatboolean
excludeFromClassificationboolean
excludeFromSearchboolean
excludeFromSeeAlsoboolean
excludeFromTaggingbooleanOnly applicable to groups
excludeFromWikiLinkingboolean
flagbooleanSet flagged state
lockedbooleanSet locked (locking) state
recordIdnumberID of the record to update
recordPathstringDEVONthink location path of the record (e.g., '/Inbox/My Document')
uuidstringUUID of the record to update

ask_ai_about_documents

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

ParameterTypeDescription
documentUuids *arrayUUIDs of documents to analyze
question *stringThe question to ask about the records
enginestringAI engine to use (default: ChatGPT)
modelstringSpecific AI model to use
temperaturenumberResponse creativity (0-2, default: 0.7)

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.

ParameterTypeDescription
documentUuids *arrayUUIDs of documents to summarize
customTitlestringCustom title for the summary document
parentGroupUuidstringUUID of group where summary should be created
summaryStylestringSummary style (Note: Currently non-functional in DEVONthink API)
summaryTypestringOutput document format: markdown, rich text, sheet, or plain text

get_ai_tool_documentation

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

ParameterTypeDescription
toolNamestringSpecific AI tool to get documentation for (returns all if not specified)