Notion 知识库 MCP 服务器
通过 Cline VSCode 扩展提供对 Notion 知识库的访问的 MCP 服务器。
特征
直接从 Cline 查询你的 Notion 知识库
参考 Notion 页面获取详细答案
采用 FastMCP 构建,性能可靠
全面的错误处理和日志记录
先决条件
Python 3.10 或更高版本
uv包管理器
用于访问 Notion 知识库的 Dify API 密钥
安装
克隆此存储库:
git clone https://github.com/yourusername/notion-mcp-server.git cd notion-mcp-server使用您的 Dify API 密钥创建一个
.env
文件:echo "DIFY_API_BACKEND_KEY=your-api-key-here" > .env在 Cline 中安装服务器:
fastmcp install notion_mcp_server.py这将自动:
使用 uv 安装所有必需的依赖项
在 Cline 的设置中配置服务器
使服务器可供 Cline 使用
用法
安装完成后,您可以通过询问有关 Notion 知识库的问题来使用 Cline 中的服务器。例如:
服务器将响应来自您的 Notion 知识库的相关信息,包括:
详细解答
相关 Notion 页面的链接
供参考的页面 ID
配置
服务器在安装过程中自动配置,但如果需要,您可以手动更新 Cline 配置文件中的设置:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
示例配置:
发展
对于开发和测试:
安装依赖项:
pip install -r requirements.txt运行开发服务器:
fastmcp dev notion_mcp_server.py
这将启动 MCP Inspector 界面来测试服务器。
故障排除
服务器未连接
在
.env
文件中验证您的 API 密钥确保 Cline 配置中的服务器路径是绝对路径
检查 uv 是否已安装并位于你的 PATH 中
依赖关系问题
尝试使用
fastmcp install notion_mcp_server.py --force
重新安装验证 uv 是否安装正确
服务器挂起
确保您使用配置中指定的 uv run 命令
检查服务器日志是否存在错误
贡献
有关服务器的实现和架构的详细信息,请参阅mcp_instructions.md 。
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
连接到您的 Notion 知识库的 MCP 服务器,允许您使用 Cline 扩展直接从 VSCode 查询和检索信息。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityMCP Server for the Notion API, enabling Claude to interact with Notion workspaces.Last updated -18329825MIT License
- AsecurityAlicenseAqualityCline MCP integration that allows users to save, search, and format memories with semantic understanding, providing tools to store and retrieve information using vector embeddings for meaning-based search.Last updated -127MIT License
- AsecurityAlicenseAqualityNotion MCP Server is a MCP server implementation that enables AI assistants to interact with Notion's API.Last updated -13305136MIT License
- -securityAlicense-qualityAn MCP server that enables natural language interaction with the Notion API, allowing users to search, comment, create pages, and access content within their Notion workspace.Last updated -12,735MIT License