Notion MCP Server
镜像
概述
Notion MCP 服务器使 Claude 能够与 Notion 工作区进行交互,通过 Notion API 执行各种操作。
设置步骤
1. 创建 Notion 集成
- 访问 Notion Your Integrations 页面
- 点击"新建集成",命名并选择适当的权限
- 复制"内部集成令牌"
2. 将集成添加到工作区
- 在 Notion 中打开需要访问的页面/数据库
- 点击右上角导航按钮
- 点击"连接到"并选择您的集成
3. 配置 Claude 桌面应用
将以下配置添加到您的 claude_desktop_config.json
文件:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@suekou/mcp-notion-server"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
或者使用本地构建文件:
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["your-built-file-path"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
故障排除
如果遇到权限错误:
- 确保集成具有所需权限
- 确认集成已被邀请到相关页面/数据库
- 验证配置文件中的令牌是否正确
主要功能
服务器提供多种工具,包括:
工具名称 | 功能描述 |
---|---|
notion_append_block_children | 向父块追加子块 |
notion_retrieve_block | 获取特定块的信息 |
notion_retrieve_block_children | 获取特定块的子块 |
notion_delete_block | 删除特定块 |
notion_retrieve_page | 获取特定页面的信息 |
notion_update_page_properties | 更新页面属性 |
notion_create_database | 创建新数据库 |
notion_query_database | 查询数据库 |
notion_create_database_item | 在数据库中创建新条目 |
notion_search | 按标题搜索页面或数据库 |
详细文档
更多详细说明请参考: