Skip to main content
Glama
Inkdrop MCP Server

Inkdrop MCP Server

Official
by inkdropapp

Inkdrop MCP 服务器

Inkdrop 本地 HTTP 服务器 API的模型上下文协议服务器。

Related MCP server: Simplenote MCP Server

安装

  1. 设置本地 HTTP 服务器

  2. 将服务器配置添加到 Claude Desktop:

    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "inkdrop": {
      "command": "npx",
      "args": ["-y", "@inkdropapp/mcp-server"],
      "env": {
        "INKDROP_LOCAL_SERVER_URL": "http://localhost:19840",
        "INKDROP_LOCAL_USERNAME": "your-local-server-username",
        "INKDROP_LOCAL_PASSWORD": "your-local-server-password"
      }
    }
  }
}

成分

工具

  1. read-note :通过数据库中的 ID 检索笔记的完整内容。

    • 必需输入:

      • noteId :要检索的笔记的 ID。在笔记文档中,它可以作为_id找到。它始终以note:开头。

  2. search-notes :列出包含给定关键字的所有注释。

    • 必需输入:

      • keyword :要搜索的关键字。

    • 注意:结果包含截断的笔记正文(200 个字符)。使用read-note获取完整内容。

    • 支持高级搜索限定符,如book: 、 tag: 、 status: 、 title:等。

  3. list-notes :列出符合指定条件的所有注释。

    • 必需输入:

      • bookId :笔记本 ID。它始终以 'book:' 开头。

    • 可选输入:

      • tagIds :要过滤的标签 ID 数组。每个标签 ID 都以 'tag:' 开头。

      • keyword :用于过滤笔记的关键字。

      • sort :排序字段( updatedAt 、 createdAt或title )。默认值: updatedAt 。

      • descending :反转输出顺序。默认值: true 。

    • 注意:结果包含截断的笔记正文(200 个字符)。使用read-note获取完整内容。

  4. create-note :在数据库中创建新注释。

    • 必需输入:

      • bookId :笔记本 ID。必须以 'book:' 开头,或者为 'trash'。

      • title :笔记标题。

      • body :Markdown 格式的笔记内容。

    • 可选输入:

      • status :笔记状态( none 、 active 、 onHold 、 completed 、 dropped )。

  5. update-note :更新数据库中现有的注释。

    • 必需输入:

      • _id :笔记 ID。必须以 'note:' 开头。

      • _rev :修订 ID(CouchDB MVCC 令牌)。

      • bookId :笔记本 ID。必须以 'book:' 开头,或者为 'trash'。

      • title :笔记标题。

      • body :Markdown 格式的笔记内容。

    • 可选输入:

      • status :笔记状态( none 、 active 、 onHold 、 completed 、 dropped )。

  6. list-notebooks :检索所有笔记本的列表。

  7. list-tags :检索所有标签的列表。

调试

由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们强烈建议使用MCP Inspector 。

您可以使用以下命令通过npm启动 MCP Inspector:

npx @modelcontextprotocol/inspector "./dist/index.js"

确保环境变量配置正确。

启动后,检查器将显示一个 URL,您可以在浏览器中访问该 URL 以开始调试。

您还可以使用以下命令查看服务器日志:

tail -n 20 -f ~/Library/Logs/Claude/mcp-server-inkdrop.log

Available Tools

18 tools
create-bookA

Create a new notebook in the database. To create a nested notebook, pass the parent notebook ID as parentBookId. Call list-notebooks first to find it.

Inputs: name (required), parentBookId.

create-fileA

Create a new attachment file in the database from a local image file or from base64 image data. Returns the Markdown to embed the attachment in a note body. Prefer filePath over data: it keeps the image bytes out of the conversation.

Inputs: data, name, filePath, contentType.

create-noteD

Create a new note in the database

Inputs: body (required), title (required), bookId (required), tags, +2 more.

create-tagB

Create a new tag in the database

Inputs: name (required), color.

list-notebooksA

Retrieve a list of all notebooks

Inputs: no named parameters.

list-notesA

List all notes with specified conditions. The result does not include entire note bodies as they are truncated in 200 characters. You have to retrieve the full note content by calling read-note.

Inputs: sort, limit, bookId, tagIds, +2 more.

list-tagsA

Retrieve a list of all tags

Inputs: no named parameters.

list-templatesA

List note templates: your custom templates, followed by the official ones bundled with Inkdrop. Templates are notes whose bookId is template. Official templates are read-only. The result does not include entire template bodies as they are truncated in 200 characters. You have to retrieve the full template content by calling read-note. When you create a note from a template, pass the template's _id as sourceTemplateId to create-note.

Inputs: keyword.

patch-noteA

Update the body of the existing note by performing one or more exact string replacements. Use this tool to make partial updates to the note body without replacing the entire content. You must first read the note with read-note to get the current body, then specify the exact substrings to replace. Edits are applied in order, each against the result of the previous one, and the note is only saved if all of them succeed.

Inputs: _id (required), _rev (required), edits (required), createdAt, +1 more.

read-bookB

Retrieve a single book

Inputs: bookId (required).

read-fileA

Retrieve an attachment file by its ID. Returns the file metadata, and the image itself when it is a PNG, JPEG or GIF. Pass outputPath to write the attachment to disk instead — required to get at SVG, HEIC and HEIF attachments, which cannot be displayed inline.

Inputs: fileId (required), outputPath, includeImage.

read-noteA

Retrieve the complete contents of the note by its ID or its note link from the database. A note link can carry a line anchor (inkdrop://note/<id>#L5 or #L5-L8); the returned body then holds only those lines. A note created from a template has a sourceTemplateId; when present, the response includes a resource link to that source template, whose body holds the fill-out instructions and examples. Read the template (or pass includeTemplate: true) before completing the note.

Inputs: noteId (required), includeTemplate.

read-tagC

Retrieve a single tag

Inputs: tagId (required).

search-notesA

List all notes that contain a given keyword. The result does not include entire note bodies as they are truncated in 200 characters. You have to retrieve the full note content by calling read-note. Here are tips to specify keywords effectively:

Use special qualifiers to narrow down results

You can use special qualifiers to get more accurate results. See the qualifiers and their usage examples:

  • book book:Blog: Searches for notes in the 'Blog' notebook. book:"Desktop App": Searches for notes in the 'Desktop App' notebook. book:kGlLniaV: Searches for notes in the notebook with the ID 'book:kGlLniaV'.

  • tag tag:JavaScript: Searches for all notes having the 'JavaScript' tag. Read more about tags. tag:pQ7xYt2R: Searches for all notes having the tag with the ID 'tag:pQ7xYt2R'.

  • status status:onHold: Searches for all notes with the 'On hold' status. Read more about statuses.

  • title title:"JavaScript setTimeout": Searches for the note with the specified title.

  • body body:KEYWORD: Searches for a specific word in all notes. Equivalent to a global search.

Combine qualifiers

You can combine the filter qualifiers to refine data even more.

Find notes that contain the word 'Hello' and have the 'Issue' tag.

Hello tag:Issue

Find notes that contain the word 'Typescript,' have the 'Contribution' tag, and the 'Completed' status

Typescript tag:Contribution status:Completed

Search for text with spaces

To find the text that includes spaces, put the text into the double quotation marks ("):

"database associations"

To exclude text from the search results or ignore a specific qualifier, put the minus sign (-) before it. You can also combine the exclusions. See the examples:

  • -book:Backend "closure functions": Ignores the 'Backend' notebook while searching for the 'closure functions' phrase.

  • -tag:JavaScript: Ignores all notes having the 'JavaScript' tag.

  • -book:Typescript tag:work "Data types": Ignores the 'Typescript' notebook and the 'work' tag while searching for the 'Data types' phrase.

  • -status:dropped title:"Sprint 10.0" debounce: Ignores notes with the 'Dropped' status while searching for the 'debounce' word in the note with the 'Sprint 10.0' title.

  • -"Phrase to ignore" "in the rest of a sentence": Ignores the 'Phrase to ignore' part while searching for 'in the rest of a sentence'.

Note that you can't specify excluding modifiers only without including conditions.

WARNING: Make sure to enter a text to search for after the exclusion modifier.

  • ✅ Will work -book:Backend "closure functions"

  • ⛔️ Won't work -book:Backend. There's no query. Inkdrop doesn't understand what to search for.

Inputs: keyword (required).

update-bookA

Update the existing notebook in the database. Only the fields you provide will be updated; omitted fields remain unchanged, so you do not need to read the notebook first. Call list-notebooks or read-book to find the notebook ID.

Inputs: _id (required), _rev, name, createdAt, +2 more.

update-noteA

Update one or more existing notes in the database. Only the fields you provide will be updated; omitted fields remain unchanged. Each note is saved independently, so a failed update does not roll back the others; the result reports the outcome of every note.

Inputs: notes (required).

update-tagA

Update the existing tag in the database. Only the fields you provide will be updated; omitted fields remain unchanged, so you do not need to read the tag first. Call list-tags or read-tag to find the tag ID.

Inputs: _id (required), _rev, name, color.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 18 tools

    Disambiguation3/5

    Most tools target clearly distinct resources+actions, but the notebook tools use 'book' in their names (create-book, read-book, update-book) while list-notebooks uses 'notebook', so an agent must infer these operate on the same resource. update-note vs patch-note also overlap in purpose, though their descriptions distinguish full-update vs string-replacement semantics.

    Naming Consistency3/5

    The verb_noun pattern is followed throughout (read-, list-, create-, update-, patch-, search-), which is good. However the noun vocabulary is inconsistent: the same resource is called 'book' in three tool names but 'notebook' in list-notebooks and all descriptions, breaking predictability.

    Tool Count4/5

    18 tools is slightly heavy but reasonable for a note app spanning notes, tags, notebooks, files, templates, and backlinks. Each area earns its tools without obvious redundancy.

    Completeness3/5

    Create/read/update coverage exists for notes, tags, notebooks, and files, but there is no delete operation anywhere (no delete-note, delete-tag, delete-book, delete-file), leaving clear lifecycle gaps. Agents cannot remove stale resources through the toolset.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers