适用于 Inkdrop Local HTTP Server API 的 Model Context Protocol 服务器。
<a href="https://glama.ai/mcp/servers/c7fgtnckbv"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=1133490286,3038451629&fm=3081&app=3_081&f=PNG?w=760&h=400" alt="Inkdrop Server MCP server" /> </a>在 Claude Desktop 中添加服务器配置:
~/Library/Application Support/Claude/claude_desktop_config.json%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"
}
}
}
}
read-note: 根据ID从数据库中检索笔记的全部内容。
noteId: 要检索的笔记ID。可以在笔记文档中的 _id 找到。它总是以 note: 开头。search-notes: 列出包含给定关键词的所有笔记。
keyword: 搜索关键词。read-note 获取完整内容。book:, tag:, status:, title: 等。list-notes: 列出满足指定条件的所有笔记。
bookId: 笔记本ID。总是以 'book:' 开头。tagIds: 用于过滤的标签ID数组。每个都以 'tag:' 开头。keyword: 用于过滤笔记的关键词。sort: 排序字段(updatedAt, createdAt 或 title)。默认值:updatedAt。descending: 反转输出顺序。默认值:true。read-note 获取完整内容。create-note: 在数据库中创建新的笔记。
bookId: 笔记本ID。必须以 'book:' 开头或为 'trash'。title: 笔记标题。body: 笔记内容,以Markdown格式。status: 笔记状态(none, active, onHold, completed, dropped)。tags: 分配给笔记的标签ID数组。每个都必须以 'tag:' 开头。update-note: 更新数据库中的现有笔记。
_id: 笔记ID。必须以 'note:' 开头。_rev: 版本ID(CouchDB MVCC-token)。bookId: 笔记本ID。必须以 'book:' 开头或为 'trash'。title: 笔记标题。body: 笔记内容,以Markdown格式。status: 笔记状态(none, active, onHold, completed, dropped)。tags: 分配给笔记的标签ID数组。每个都必须以 'tag:' 开头。list-notebooks: 检索所有笔记本的列表。read-book: 根据ID检索单个笔记本。
bookId: 笔记本ID。必须以 'book:' 开头。list-tags: 检索所有标签的列表。read-tag: 根据ID检索单个标签。
tagId: 标签ID。必须以 'tag:' 开头。create-tag: 在数据库中创建新的标签。
name: 标签名称。color: 标签颜色类型(default, red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black)。默认值:default。update-tag: 更新数据库中的现有标签。
_id: 标签ID。必须以 'tag:' 开头。_rev: 版本ID(CouchDB MVCC-token)。name: 标签名称。color: 标签颜色类型。默认值:default。由于MCP服务器通过标准输入输出运行,调试可能会很困难。为了获得最佳的调试体验,我们强烈建议使用 MCP Inspector。
你可以通过以下命令使用 npm 启动MCP Inspector:
npx @modelcontextprotocol/inspector "./dist/index.js"
确保环境变量已正确配置。
启动后,Inspector会显示一个URL,你可以在浏览器中访问该URL开始调试。
你也可以通过以下命令查看服务器日志:
tail -n 20 -f ~/Library/Logs/Claude/mcp-server-inkdrop.log