notion-mcp-server
CLAUDE.md4.7k starsChanged 5 months agoMITView on GitHub
This file provides guidance for Claude Code when working with this repository. This is the Notion MCP Server - an MCP (Model Context Protocol) server that exposes the Notion API as MCP tools. It auto-generates tools from an OpenAPI specification. Only modify scripts/notion-openapi.json. Tools are auto-generated from the spec - no code changes needed elsewhere. Tests are in tests directories adjacent to source files. Run with npm test. Uses Notion API version 2025-09-03 (Data Source Edition). The spec includes both:…
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Only modify scripts/notion-openapi.json.
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance for Claude Code when working with this repository.
Project Overview
This is the Notion MCP Server - an MCP (Model Context Protocol) server that exposes the Notion API as MCP tools. It auto-generates tools from an OpenAPI specification.
Architecture
scripts/notion-openapi.json # OpenAPI spec (source of truth for all tools)
↓
src/init-server.ts # Loads & validates spec, creates MCPProxy
↓
src/openapi-mcp-server/
├── openapi/parser.ts # Converts OpenAPI → MCP tools
├── mcp/proxy.ts # Registers tools with MCP server
└── client/http-client.ts # Executes API callsKey Patterns
Adding New Endpoints
Only modify scripts/notion-openapi.json. Tools are auto-generated from the spec - no code changes needed elsewhere.
Tool Generation Flow
OpenAPIToMCPConverter.convertToMCPTools()iterates all paths/operations- Each operation becomes an MCP tool (name =
operationId) - Parameters + requestBody →
inputSchema - Response schema →
returnSchema MCPProxy.setupHandlers()registers tools with the MCP SDK
Naming Conventions
- Tool names come from OpenAPI
operationId(e.g.,retrieve-a-database) - Names are truncated to 64 chars and converted to title case for display
Common Commands
npm run build # TypeScript compilation + CLI bundling
npm test # Run vitest tests
npm run dev # Start dev server with hot reloadFile Structure
scripts/notion-openapi.json- OpenAPI 3.1.0 spec defining all Notion API endpointsscripts/start-server.ts- Entry pointsrc/init-server.ts- Server initializationsrc/openapi-mcp-server/- Core MCP server implementationopenapi/parser.ts- OpenAPI to MCP conversion (529 lines)mcp/proxy.ts- MCP tool registration and execution (209 lines)client/http-client.ts- HTTP request execution (198 lines)
Testing
Tests are in __tests__ directories adjacent to source files. Run with npm test.
API Version
Uses Notion API version 2025-09-03 (Data Source Edition). The spec includes both:
/v1/databases/{database_id}- Traditional database endpoints/v1/data_sources/{data_source_id}- New data source endpoints
Trending
Less talk lately.about the whole repository
Who's talking about makenotion/notion-mcp-server
- anthropics/claude-code“[BUG] Claude Desktop 1.1.3189 (Cowork) serializes MCP object parameters as strings, breaking Notion MCP writes”GitHub · Feb 16, 2026 · 21 reactions
- google-gemini/gemini-cli“MCP servers fail to start with TypeError: fieldValue.toUpperCase is not a function”GitHub · Jun 25, 2025 · 6 reactions
- @nearestnabors.com“Turns out Notion already has an MCP server: github.com/makenotion/n... Let the games begin”Bluesky · May 15, 2025 · 4 likes
- @tech-trending.bsky.social“GitHub - makenotion/notion-mcp-server: Official Notion MCP Server …”Bluesky · Apr 8, 2025 · 2 likes
- cheaper-inference/OmniRoute“[feature] Notion as an MCP context source (not an inference provider)”GitHub · May 29, 2026 · 1 reactions
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub, Bluesky and Stack Overflow (49 times).
On GitHub · 42
- Feb 16, 2026[BUG] Claude Desktop 1.1.3189 (Cowork) serializes MCP object parameters as strings, breaking Notion MCP writes — anthropics/claude-code21 reactions · 16 comments
- Jun 25, 2025MCP servers fail to start with TypeError: fieldValue.toUpperCase is not a function — google-gemini/gemini-cli6 reactions · 26 comments
- May 29, 2026[feature] Notion as an MCP context source (not an inference provider) — cheaper-inference/OmniRoute1 reaction · 2 comments
- Jan 16, 2026[BUG] Notion MCP connection lost after first prompt in Cowork - tools unavailable on second message — anthropics/claude-code1 reaction · 3 comments
- Dec 26, 2025Add MAOS v1 Governance documentation to README — Activ8-AI/notion-mcp-server1 reaction · 1 comment
37 more on GitHub
- Jun 18, 2025Add Notion MCP to registry — stacklok/toolhive1 reaction · 1 comment
- May 27, 2025Add support for running the MCP server via npx — devondragon/MotionMCP1 reaction · 3 comments
- Oct 25, 2026Move MCP packages off archived upstreams and refresh stale pins — ken-jo/agent-marketplace0 reactions
- Sep 29, 2026Vote: Notion — StefanKasamakov/ai-compass0 reactions · 1 comment
- Sep 21, 2026notion-mcp-server: 2.5.0 -> 2.5.2 — natsukium/mcp-servers-nix0 reactions
- Sep 1, 2026fix(files): proxy-aware get_image/upload_file, --version/--help, opt-in Docker HEALTHCHECK, README hosted-MCP refresh — awkoy/notion-mcp-server0 reactions
- Aug 12, 2026feat(providers): audit 8 candidates + 5 ADOPT via provider hierarchy (Refs #393) — ulises-jeremias/agent-toolkit0 reactions · 2 comments
- Jul 25, 2026notion-mcp-server: 1.9.0 -> 2.5.0 — natsukium/mcp-servers-nix0 reactions
- Jul 23, 2026Fix unbounded memory leak in dereferenceSync/resolveRefSync caches — anttiviljami/dereference-json-schema0 reactions · 1 comment
- Jul 5, 2026Higgsfield MCP: object-typed tool params serialized as JSON strings → "expected object, received string — anthropics/claude-ai-mcp0 reactions
- Jun 26, 2026docs: add benchmarks section comparing notion-axi vs raw ntn vs MCP — maximebrmd/notion-axisays it tested it0 reactions
- Jun 25, 2026feat(catalog): audit 8 installables against official sources + lock final gold-mold — jmggaravito-sudo/terminalsync-web0 reactions · 1 comment
- Jun 17, 2026[P2] Connector: Notion (remote HTTP + OAuth) — oakreader/oakreader0 reactions
- Jun 10, 2026fix: add Comparison capability matrix to README — n24q02m/notion0 reactions · 2 comments
- May 4, 2026[docs] add trusted-MCP integrations guide + .mcp.example.json — rutledka/agent-workflow-scaffold0 reactions
- May 1, 2026cmd: handle JSON double-serialization in execute_capture_pipeline — emmanuel-deloget/screenshooter-mcp0 reactions
- Mar 24, 2026Notion MCP — read/write pages, databases, search workspace — JeetVaidya1/jarvis0 reactions
- Mar 11, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.2.1 — tdupoiron-actions/copilot-external-doc-updater0 reactions
- Mar 11, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.2.1 — actions-marketplace-validations/tdupoiron-actions_copilot-external-doc-updater0 reactions
- Mar 1, 2026[Infra] Claude Code + Notion MCP 연동 — 블로그 글 직접 작성 워크플로우 — coldsurfers/ocean-road0 reactions
- Feb 25, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.2.0 — tdupoiron-actions/copilot-external-doc-updater0 reactions · 1 comment
- Feb 25, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.2.0 — actions-marketplace-validations/tdupoiron-actions_copilot-external-doc-updater0 reactions · 1 comment
- Feb 18, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.1.0 — actions-marketplace-validations/tdupoiron-actions_copilot-external-doc-updater0 reactions · 1 comment
- Feb 4, 2026chore(deps): bump @notionhq/notion-mcp-server from 2.0.0 to 2.1.0 — tdupoiron-actions/copilot-external-doc-updater0 reactions · 1 comment
- Jan 31, 2026chore(deps): update dependency @notionhq/notion-mcp-server to v2.1.0 - autoclosed — stacklok/dockyard0 reactions · 1 comment
- Jan 2, 2026Add Notion MCP server extension — zed-industries/extensions0 reactions · 7 comments
- Nov 20, 2025Add Notion MCP server fork to README — modelcontextprotocol/servers0 reactions
- Oct 21, 2025Add Notion MCP server configuration — 14kw/mcp-client-slackbot0 reactions · 2 comments
- Oct 16, 2025feat(mcp-server): Add Notion MCP Server Support with Authentication — Spantree/ftk0 reactions · 1 comment
- Sep 20, 2025notion-mcp-server: 1.8.1 -> 1.9.0 — natsukium/mcp-servers-nix0 reactions
- Aug 19, 2025`mozilla-ai` registry update tools — mozilla-ai/mcpd0 reactions
- May 28, 2025notion-mcp-server: 1.7.0 -> 1.8.1 — natsukium/mcp-servers-nix0 reactions
- May 12, 2025notion-mcp-server: 1.6.0 -> 1.7.0 — natsukium/mcp-servers-nix0 reactions
- Apr 22, 2025API Key Failed for Notion Native MCP — nerding-io/n8n-nodes-mcp0 reactions · 3 comments
- Apr 18, 2025Create a high-level MCP server — sotayamashita/openapi-mcp-server0 reactions
- Apr 17, 2025notion-mcp-server: 1.5.0 -> 1.6.0 — natsukium/mcp-servers-nix0 reactions
- Apr 13, 2025notion-mcp-server: init at 1.5.0 — natsukium/mcp-servers-nix0 reactions
On Bluesky · 6
- May 15, 2025Turns out Notion already has an MCP server: github.com/makenotion/n... Let the games begin — @nearestnabors.com4 likes and reposts · 1 reply
- Apr 8, 2025GitHub - makenotion/notion-mcp-server: Official Notion MCP Server https://github.com/makenotion/notion-mcp-server — @tech-trending.bsky.social2 likes and reposts
- Apr 9, 2025NotionからMCPサーバー これは公式 @notion.com github.com/makenotion/n... — @connectobasan.com1 likes and repost
- Apr 9, 2025@notion.com just dropped a model context protocol server on github! already seeing PRs from the community to make it even better… — @brittonhayes.dev1 likes and repost
- Apr 8, 2025🔖 "GitHub - makenotion/notion-mcp-server: Official Notion MCP Server" https://github.com/makenotion/notion-mcp-server — @lacolaco.bsky.social1 likes and repost
1 more on Bluesky
- Apr 19, 2025🚀 The productivity guru: MacOS access: Let Claude send emails, set reminders, browse and more. github.com/Dhravya/app... Notion: Let… — @gabzofar.bsky.social0 likes and reposts · 1 reply
On Stack Overflow · 1
- Oct 24, 2025How to connect to Notion's remote MCP server from your own MCP client?0 votes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

