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
相关推荐
海边的Kurisu17 小时前
Amadeus的知识库 | 告别碎片化集成:深度解析 AI 时代的“USB 协议” —— MCP
大模型·mcp
LucaJu17 小时前
一、先了解:MCP 公开服务市场
agent·智能体·spring ai·mcp·spring ai alibaba
缘友一世21 小时前
Claude-Code配置Serper-MCP指南
mcp·claude code·serper
ccAiHub1 天前
动手构建 MCP Server:Python & TypeScript 实战指南
claude·mcp
ccAiHub1 天前
深入 MCP 三大原语:Resources、Tools 和 Prompts 实战
claude·mcp
一叶飘零_sweeeet3 天前
Java 服务升级 MCP 服务实战
java·mcp
小哈里3 天前
【Agent】MCP协议介绍、MCP Server服务端开发与 Skills技能编写
ai·agent·mcp·mcp server·skills
zhangshuang-peta4 天前
MCP:把不确定性变成工程能力
人工智能·ai agent·mcp·peta
本旺4 天前
[AIAgent-MCP]从连不上到跑通:MCP Inspector 本地调试 MCP Server 实战记录
aiagent·mcp·agent 开发·mcpinspector
l1t4 天前
DeepSeek 总结的pgEdge for Postgres 的 MCP 服务器
服务器·数据库·postgresql·mcp