Notion MCP Server 来啦!

Notion MCP Server

This project implements an MCP server for the Notion API.

Installation

Add the following to your .cursor/mcp.json or claude_desktop_config.json (MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json)

perl 复制代码
{
  "mcpServers": {
    "notionApi": {
      "command": "npx",
      "args": ["-y", "@notionhq/notion-mcp-server"],
      "env": {
        "OPENAPI_MCP_HEADERS": "{"Authorization": "Bearer ntn_****", "Notion-Version": "2022-06-28" }"
      }
    }
  }
}

Don't forget to replace ntn_**** with your integration secret. Find it from your integration configuration tab:

Ensure relevant pages and databases are connected to your integration.

Examples

  1. Using the following instruction
csharp 复制代码
Comment "Hello MCP" on page "Getting started"

AI will correctly plan two API calls, v1/search and v1/comments, to achieve the task

  1. Similarly, the following instruction will result in a new page named "Notion MCP" added to parent page "Development"
sql 复制代码
Add a page titled "Notion MCP" to page "Development"
  1. You may also reference content ID directly
css 复制代码
Get the content of page 1a6b35e6e67f802fa7e1d27686f017f2

Development

Build

arduino 复制代码
npm run build

Execute

css 复制代码
npx -y --prefix /path/to/local/notion-mcp-server @notionhq/notion-mcp-server

Publish

arduino 复制代码
npm publish --access public
相关推荐
数据智能老司机3 小时前
MCP 实战——全局视角:为什么 MCP 将成为 AI 的颠覆者
python·llm·mcp
cpp加油站4 小时前
用Trae2小时写一个vercel MCP,让内置的Vercel部署功能用起来更爽(玩转100个MCP系列第六弹)
ai编程·mcp·trae
大模型真好玩5 小时前
DeepSeek更新!速览DeepSeek V3.1新特性
人工智能·python·mcp
关山20 小时前
MCP实战
python·ai编程·mcp
带刺的坐椅1 天前
Java MCP 的鉴权?好简单的啦
java·鉴权·mcp·solon-ai
掉鱼的猫1 天前
Java MCP 的鉴权?好简单的啦
java·mcp
盏灯1 天前
据说,80%的人都搞不懂MCP底层?
人工智能·aigc·mcp
葫芦和十三1 天前
解构 Coze Studio:AI Agent 连接万物的架构艺术
coze·mcp·trae
大模型真好玩2 天前
一文深度解析OpenAI近期发布系列大模型:意欲一统大模型江湖?
人工智能·python·mcp
阿里云云原生2 天前
相比于直接消费 MCP 服务,您的企业可能更需要一个专属的 MCP 服务中心
mcp