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
相关推荐
MichaelIp1 天前
基于MCP协议的多AGENT文章自动编写系统
语言模型·langchain·prompt·ai写作·llamaindex·langgraph·mcp
后端小张2 天前
[AI 学习日记] 深入解析MCP —— 从基础配置到高级应用指南
人工智能·python·ai·开源协议·mcp·智能化转型·通用协议
let_code3 天前
初识模型上下文协议-MCP
mcp
秃头摸鱼侠3 天前
在 Claude Code 中设置 MCP 服务器(技术总结)
claude·mcp
关关长语5 天前
(一) Dotnet使用MCP的Csharp SDK
网络·.net·mcp
中等生5 天前
深入理解 MCP 的三种传输方式
aigc·mcp
货拉拉技术5 天前
网关 MCP 转换技术:从实现到平台落地
java·架构·mcp
_Mya_6 天前
后端接口又改了?让 Apifox MCP 帮你自动同步类型定义
前端·人工智能·mcp
云草桑6 天前
.net AI MCP 入门 适用于模型上下文协议的 C# SDK 简介(MCP)
ai·c#·.net·mcp