Arre Ankit_notion Mcp Server

Arre Ankit_notion Mcp Server

镜像

安装

git clone https://github.com/arre-ankit/notion-mcp-server.git
cd notion-mcp-server
npm install
npm run build

设置

1. 添加 Notion 集成

  • 访问 Notion 集成页面
  • 点击"新建集成",命名为"Claude MCP 服务器"
  • 为"Pages"选择"读取"和"写入"权限
  • 复制集成令牌

2. 配置 Claude 集成

创建 claude_desktop_config.json 文件:

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "node",
      "args": ["项目路径/dist/index.js"],
      "env": {
        "NOTION_API_TOKEN": "你的Notion令牌"
      }
    }
  }
}

使用方法

  1. 在 Notion 中准备好要访问的页面
  2. 在提示中包含 Notion 页面链接,例如: <https://www.notion.so/154916e48026802f97d4df6086787817>
  3. 向 Claude 发送包含 Notion 页面链接的指令

示例提示:

在notion中创建一个新的数据库条目 "2024年待看电影列表"
页面链接 <https://www.notion.so/154916e48026802f97d4df6086787817>

Claude 将能够查询和更新你的 Notion 页面内容!