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
相关推荐
张彦峰ZYF5 小时前
MCP 从“能连工具”到“像 Web 一样部署”——无状态核心、扩展框架与企业级 Agent 基础设施的真正分水岭
人工智能·llm·agent·mcp
AI程序员9 小时前
MCP Apps 能直接返回 HTML,为什么还需要 A2UI?
人工智能·agent·mcp
步十人12 小时前
MCP概念与实践全解析
mcp
码哥字节15 小时前
Token Saver 省 99% token 是真的,但有个前提没人告诉你
mcp·claude code·token saver
Sophnet云平台18 小时前
MCP与A2A双协议解析:2026年Agent互操作的技术选型
linux·服务器·网络·上下文·mcp·大模型测评·sophnet
VIP_CQCRE2 天前
AceData Cloud MCP:把整个平台能力接入你的 AI 助手
ai·api·mcp·acedatacloud
pnoker3 天前
MCP 落地工业平台:从大模型对话到设备点位
人工智能·物联网·智能体·mcp
VIP_CQCRE3 天前
用 Ace Data Cloud 开启 AI 能力商业化:推广平台,或打造自己的白标 AI 平台
ai·api·mcp·ace data cloud·白标平台
ChaITSimpleLove3 天前
.NET 10 的 AI 技术栈全景:M.E.AI、MCP 与 Agent Framework 深度解析
人工智能·.net·ai agent·mcp·agent framework·m.e.ai·hosted agents