k

krasun

@krasun/notes-mcp
0 Stars 317 次浏览 krasun 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "notes": {
      "args": [
        "path/to/notes/mcp/dist/index.js"
      ],
      "command": "node"
    }
  }
}

服务介绍

Notes MCP

一个与 macOS 上的 Apple Notes 连接的 MCP 服务器。

Claude 使用示例

支持的工具

  • notes-get-folders: 获取所有文件夹。
  • notes-get-notes: 获取指定文件夹中的所有笔记。
  • notes-create-note: 通过标题和内容创建新的笔记。
  • notes-get-note-by-id: 通过标识符获取笔记。
  • notes-get-note-by-title: 通过标题精确匹配查找笔记。
  • notes-get-note-count: 获取笔记总数。

使用方法

构建

始终先安装依赖并构建:

bash
npm install && npm run build

与 Claude for Desktop 一起使用

在您的 ~/Library/Application Support/Claude/claude_desktop_config.json 文件中添加以下内容:

json
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["path/to/notes/mcp/dist/index.js"]
}
}
}

并在 Claude 设置中检查其是否正在运行:

Claude MCP 设置

与 Cursor 一起使用

json
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["path/to/notes/mcp/dist/index.js"]
}
}
}

然后检查 Cursor MCP 设置:

Cursor MCP 设置

独立使用或用于其他项目

bash
node dist/index.js

许可证

Notes MCP 遵循 MIT 许可证

相关 MCP 服务