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
相关推荐
Pitayafruit8 小时前
🔓AI赋能开源:如何借助MCP快速解锁开源项目并提交你的首个PR
ai编程·cursor·mcp
小兵张健9 小时前
高德地图 MCP 全网最全教程(Cursor + Win)
aigc·cursor·mcp
勤劳打代码12 小时前
码力全开——导入 deepseek 模型到 IDE
mcp·trae
utmhikari13 小时前
【日常随笔】基于MCP生态的LLM-Agent开发
llm·ai编程·mcp
毅航16 小时前
以通俗易懂的方式讲解mcp 协议
mcp
justdoit52120 小时前
前端的AI路其之一: MCP与Function Calling
aigc·openai·mcp
jhonroxton21 小时前
使用golang快速构建你的MCP Server
llm·mcp
周末程序猿1 天前
机器学习|MCP(Model Context Protocol)实战
人工智能·机器学习·mcp
谦行1 天前
使用 MCP 让企业 Coding 十倍提效
ai编程·mcp