Notion MCP 服务器是一个基于模型上下文协议(MCP)的工具,可与 Notion 平台进行交互,支持对页面、块、数据库和评论的操作。
git clone https://github.com/awkoy/notion-mcp-server.git
cd notion-mcp-server
npm install
创建一个 .env 文件:
NOTION_TOKEN=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_id
npm run build
npm run inspector
Notion MCP 服务器提供了对 Notion 平台页面、块、数据库和评论的操作支持,基于模型上下文协议(MCP),能高效地与 Notion 进行交互。
按照上述安装指南完成安装和配置后,即可使用 Notion MCP 服务器与 Notion 平台进行交互。
index.ts:主入口文件。tools/:包含与 Notion API 交互的工具模块。schemas/:用于输入输出验证的 Zod 模式文件。types/:定义自定义类型和接口。欢迎贡献!请按照以下步骤提交 Pull Request:
git checkout -b feature/amazing-feature)。git commit -m '添加很棒的功能')。git push origin feature/amazing-feature)。@notionhq/client,版本 2.3.0+)。本项目遵循 MIT 许可证,详细内容请查看 LICENSE 文件。