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
相关推荐
YIAN16 小时前
从零手写文件读取 MCP 服务:一文吃透 Model Context Protocol 全链路通信原理
前端·后端·mcp
Nicander16 小时前
MCP
mcp
Esaka_Forever17 小时前
Model Context Protocol(MCP,模型上下文协议)完整深度解析
mcp
ServBay17 小时前
MCP (Model Context Protocol) 深度指南,协议原理、Python 实现与生产级安全实践
后端·ai编程·mcp
先吃饱再说1 天前
手写一个文件读写 MCP Server:让大模型“触摸”你的硬盘
llm·mcp
VIP_CQCRE1 天前
Codex CLI 如何高效整合 Ace Data Cloud MCP:把开发、生成、搜索和发布放进一个终端
ai工具·开发效率·mcp·codex cli·ace data cloud
love530love2 天前
WorkBuddy + 本地 ComfyUI MCP:免订阅费的自建方案
人工智能·windows·mcp·comfy cloud
神一样的老师2 天前
使用WorkBuddy自动发微博教程
人工智能·mcp
Darling噜啦啦2 天前
手写 MCP Server 全栈实战:用 Node.js + Zod 从零构建 AI 文件读取工具
mcp
至乐活着2 天前
让Claude能力飞升:用MCP协议构建自定义工具实战
claude·mcp·model context protocol·自定义工具·ai扩展