
Notion MCP Server

2025.03.24
0
TypeScriptNotion 集成AI 模型交互工作空间管理交流协作开发效率
Notion MCP Server 是一个模型上下文协议(MCP)服务器,它通过暴露官方的 Notion SDK,使得 AI 模型能够与 Notion 工作空间进行交互。该服务器提供了全面的 Notion API 支持,包括搜索、数据库查询、页面管理、块内容管理等功能,适用于需要将 AI 能力集成到 Notion 中的场景。
View on GitHub
Overview
基本能力
产品定位
Notion MCP Server 是一个桥梁服务,连接 AI 模型与 Notion 工作空间,使得 AI 能够通过标准的 MCP 协议访问和操作 Notion 中的数据。
核心功能
- 搜索功能:查找页面或数据库
- 数据库操作:查询和检索数据库条目
- 页面管理:创建、检索和更新页面
- 块内容管理:管理段落、列表等内容块
- 用户管理:列出用户和获取用户信息
- 评论功能:创建和列出评论
- 链接预览:为 URL 创建链接预览
适用场景
- AI 助手集成 Notion 数据
- 自动化 Notion 内容管理
- 开发基于 Notion 的 AI 应用
工具列表
- Search: 查找 Notion 中的页面或数据库
- Databases: 查询和检索数据库条目
- Pages: 管理 Notion 页面
- Blocks: 管理页面中的内容块
- Users: 获取用户信息
- Comments: 管理评论
- Link Previews: 创建链接预览
常见问题解答
- "No access to resource" errors: 确保已将特定的 Notion 页面或数据库与集成共享
- Integration not appearing in share menu: 尝试刷新页面或重启浏览器
- Limited capabilities: 检查集成设置中是否启用了适当的功能
使用教程
使用依赖
- 访问 Notion 集成页面 创建新的集成
- 复制 API 密钥
安装教程
命令行安装
npx @ramidecodes/mcp-server-notion@latest -y --api-key=your-notion-integration-key
JSON 配置安装
{
"name": "Notion",
"command": {
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
],
"env": {},
"executable": "npx"
}
}
调试方式
- 在终端中测试命令
- 确保 Notion 页面已与集成共享
- 检查集成设置中的功能权限