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
相关推荐
xrlfreedom2 小时前
MCP 面试高频考点:本地 AI 助手安全访问文件,JSON-RPC 与提示注入防护怎么配合?
mcp·json-rpc·提示注入防护
BruceVan1 天前
逛商店还是让 Agent 帮你挑?两个 DSH 插件市场的真实差别
ai编程·deepseek·mcp
BruceVan1 天前
一句话,DSH 就把架构图画好了,还能接着手改
ai编程·deepseek·mcp
莪_幻尘2 天前
MCP Server 从 0 到 1:134 行代码,把 GitHub API 接成 Agent 的工具
agent·ai编程·mcp
BruceVan2 天前
别再截图贴报错了,让 AI 自己打开 Chrome 查 bug
chrome·ai编程·mcp
TDengine (老段)5 天前
TDengine MCP 参考手册 | TDengine 文档 | 涛思数据
大数据·数据库·物联网·时序数据库·tdengine·涛思数据·mcp
deep_long5 天前
03|MCP 接入 LangChain Agent:stdio 与 Streamable HTTP 实战
langchain·mcp·mcp生产实践
xrlfreedom6 天前
MCP 面试高频考点:为本地 AI 助手做文件访问 Server,提示注入、Streamable HTTP 与 Java SDK 怎么协同
mcp·提示注入防护·java mcp sdk·streamable http 传输
deep_long6 天前
五、MCP 能力全景:Resource、Prompt 与进度
mcp
Wellijohn7 天前
Docker 瘦身、手写 MCP、异步并发:被问得最多的 12 个问题,一次答完
python·docker·mcp