Notion MCP Server for Claude Code: Setup & Config
Connect Claude Code to the Notion API to work with pages and data sources.
What you can do with Notion in Claude Code
Choose it for local Notion API access with scoped integrations and Markdown page tools.
- Query Notion data sources with filters and sorting.
- Inspect database metadata and data source schemas.
Before you start: Notion in Claude Code
- A Notion internal integration
- Access granted to the relevant pages or databases
- An MCP-compatible client
- npx for the npm launch method
This configuration launches the local stdio server. HTTP and Docker alternatives are documented. Notion prioritizes support for its separate remote service.
Notion Claude Code configuration
Choose Claude Code configuration scope
For Notion MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Notion MCP Server to Claude Code
Use the notion-mcp-server entry below in mcpServers. Keep Notion MCP Server's documented stdio connection fields and your other Claude Code entries.
Check Notion MCP Server in Claude Code
Notion MCP Server: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"notion-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@notionhq/notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<Notion internal integration token>"
}
}
}
}claude mcp add-json --scope project 'notion-mcp-server' '{"type":"stdio","command":"npx","args":["-y","@notionhq/notion-mcp-server"],"env":{"NOTION_TOKEN":"<Notion internal integration token>"}}'Notion tools available to Claude Code
Notion's stored tool list documents 9 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- query-data-source
For Notion's query-data-source, review the permission request and arguments in Claude Code before approval.
- retrieve-a-data-source
For Notion's retrieve-a-data-source, review the permission request and arguments in Claude Code before approval.
- update-a-data-source
For Notion's update-a-data-source, review the permission request and arguments in Claude Code before approval.
Change properties belonging to a data source.
- create-a-data-source
For Notion's create-a-data-source, review the permission request and arguments in Claude Code before approval.
Add a new data source.
- list-data-source-templates
For Notion's list-data-source-templates, review the permission request and arguments in Claude Code before approval.
Find templates available within a data source.
- move-page
For Notion's move-page, review the permission request and arguments in Claude Code before approval.
- retrieve-a-database
For Notion's retrieve-a-database, review the permission request and arguments in Claude Code before approval.
- retrieve-page-markdown
For Notion's retrieve-page-markdown, review the permission request and arguments in Claude Code before approval.
Fetch page content as Markdown, optionally including meeting transcripts.
- update-page-markdown
For Notion's update-page-markdown, review the permission request and arguments in Claude Code before approval.
Replace page Markdown or apply targeted text changes.
Troubleshooting Notion in Claude Code
- If Notion MCP Server fails to start, check npx @notionhq/notion-mcp-server (Node.js/npm), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
- Notion MCP Server: check NOTION_TOKEN; keep credentials out of shared .mcp.json.
- Notion MCP Server uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: The local repository no longer receives active issue and pull request monitoring.
- Known limitation: Upgrading can require changes to hardcoded database tool names.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
Notion MCP Server — details. Claude Code guide