Notion MCP 服务器
基于节点的 Notion MCP 服务器,连接 Claude 等 AI 助手与 Notion 工作区。
快速入门指南
前置条件
- 安装 Node.js(版本 14 或更高)
- 拥有 Notion 账户
获取 Notion API 密钥
- 访问 Notion 集成页面
- 创建新集成并复制 Internal Integration Token。
设置服务器
下载代码
- 方式 A:下载 ZIP 文件
- 在 GitHub 仓库页面点击 "Code" > "Download ZIP"
- 解压文件到本地目录。
- 方式 B:使用 Git 克隆
git clone https://github.com/Sjotie/notionMCP/ cd notionMCP
安装依赖
npm install
配置 Notion 权限
- 打开 Notion 页面或数据库。
- 点击右上角的 "...",选择 "Add connections"。
- 添加之前创建的集成。
配置 Claude Desktop
- 编辑配置文件
claude_desktop_config.json
。 - 填写服务器路径和 Notion API 密钥。
测试连接
- 启动 Claude 并尝试与其交互,例如:
- "列出我的 Notion 数据库"
- "在任务数据库中创建新页面"
可用工具
- 列出数据库、查询数据、创建/更新页面等。
常见问题
- 连接失败:检查路径和 API 密钥是否正确。
- 权限不足:确保已共享页面或数据库给集成。