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
相关推荐
sinat_3671045612 小时前
claude code 接入 百度搜索 mcp
百度·mcp·claude code
用户33979953083113 小时前
Qwen2.5-72B 指令微调映射,DМ‌XΑ‌РΙ 稳调通义模型输出
mcp
一直会游泳的小猫18 小时前
Claude Code 连 MySQL:保姆级教程
mysql·mcp·claude code
最强小杰2 天前
OpenClaw 安装踩坑全记录:npm 和 Bun 两种方式的原理差异与实战配置(2026)
ai编程·mcp
tanis_32 天前
MinerU MCP Server 部署与工作流实战:Claude Desktop / Cursor / Cline 接入指南
ai编程·mcp
厨师沙拉qwq2 天前
minimax文生图mcp
claude·mcp
TestCopilot2 天前
从零用 Python 实现最基础的MCP协议
python·mcp
宋冠巡2 天前
MCP服务器示例项目:MCP Inspector(测试工具)、hello-mcp-server(基础示例项目)和 REST API 转 MCP Tool
ai·mcp·mcp服务器·mcp inspector
INFINI Labs2 天前
用 Easysearch 给 AI Agent 装上长期记忆:Mem0 集成实战
向量检索·knn·easysearch·ai agent·mem0·mcp
Uncertainty!!3 天前
GitNexus安装过程记录:Code Graph RAG 并联动 Claude Code
mcp·claude code·gitnexus