Back to MCP directory
publicPublicdnsLocal runtime

notion-mcp-server-fo9

一个简单的MCP服务器,用于查询和操作Notion页面内容,支持通过Claude集成进行数据库条目添加等操作。

article

README

🚀 Notion MCP 服务器

这是一个简单的 MCP 服务器,允许你查询 Notion 页面,让你更便捷地与 Notion 页面进行交互。

🚀 快速开始

📦 安装指南

首先,克隆项目仓库并进入项目目录:

git clone https://github.com/arre-ankit/notion-mcp-server.git
cd notion-mcp-server

然后,安装项目依赖:

npm install

🏃‍♂️ 运行服务器

安装完成后,构建并运行服务器:

npm run build

⚙️ 添加 Notion 集成

  1. 访问 Notion 集成页面
  2. 点击 "新建集成"。
  3. 将集成命名为 "Claude MCP 服务器"。
  4. 选择 "页面" 的 "读取" 和 "写入" 权限。
  5. 复制 "整合令牌",后续配置会用到。

⚙️ 添加 Claude 集成

claude_desktop_config.json 文件中进行如下配置:

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "node",
      "args": [
        "复制路径"
      ],
      "env": {
        "NOTION_API_TOKEN": "你的 Notion 令牌"
      }
    }
  }
}

💻 使用示例

基础用法

使用该服务器查询 Notion 页面,你可以按照以下步骤操作:

  1. 编写一个提示来查询 Notion 页面。
  2. 在提示中添加页面链接(来自页面中的链接)。 例如,示例链接为:https://www.notion.so/154916e48026802f97d4df6086787817
  3. 示例提示:添加电影数据库到此页面。

高级用法

以下是一个更具体的示例: 提示:在此页面创建一个新的数据库条目,列出 2024 年要观看的电影列表。 页面链接:https://www.notion.so/154916e48026802f97d4df6086787817

结果:你的 Notion 页面将更新!

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client