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
相关推荐
AI大模型10 小时前
MCP快速入门—快速构建自己的服务器
llm·agent·mcp
用户35218024547513 小时前
MCP极简入门:第一个服务器DesktopCommanderMCP
ai编程·mcp
大模型真好玩17 小时前
深入浅出LangChain AI Agent智能体开发教程(一)—认识LangChain&LangGraph
人工智能·python·mcp
Captaincc1 天前
𝐂𝐮𝐫𝐬𝐨𝐫 𝐌𝐂𝐏 攻击现象:一句话,就能让你的私有数据库裸奔
mcp
AI大模型2 天前
AI大模型智能体开发实战|基于 Dify + MCP 的理财助手
程序员·llm·mcp
scisaga2 天前
MCP 从原理到实战:构建 LLM 可控工具世界
mcp
围巾哥萧尘2 天前
「掌握Trae IDE」 Trae + Git Agent + EdgeoneMCP,20 分钟用 Trae 完成网页开发和部署🧣
mcp
这里有鱼汤2 天前
🚀逆天神器来了!MCP Chrome:超越Playwright,让AI接管你的浏览器,我当场震撼!
github·mcp
未来影子2 天前
Spring Ai Alibaba Gateway 实现存量应用转 MCP 工具
gateway·springai·mcp
LeeAt3 天前
手把手教你构建自己的MCP服务器并把它连接到你的Cursor
javascript·cursor·mcp