这是一个简单的 MCP 服务器,允许你查询 Notion 页面,让你更便捷地与 Notion 页面进行交互。
首先,克隆项目仓库并进入项目目录:
git clone https://github.com/arre-ankit/notion-mcp-server.git
cd notion-mcp-server
然后,安装项目依赖:
npm install
安装完成后,构建并运行服务器:
npm run build
在 claude_desktop_config.json
文件中进行如下配置:
{
"mcpServers": {
"notion-mcp-server": {
"command": "node",
"args": [
"复制路径"
],
"env": {
"NOTION_API_TOKEN": "你的 Notion 令牌"
}
}
}
}
使用该服务器查询 Notion 页面,你可以按照以下步骤操作:
以下是一个更具体的示例: 提示:在此页面创建一个新的数据库条目,列出 2024 年要观看的电影列表。 页面链接:https://www.notion.so/154916e48026802f97d4df6086787817
结果:你的 Notion 页面将更新!