notion-mcp-server
local MCP servernotion-mcp-server is a local MCP server: Token-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents. Install it from npm as notion-mcp-server.
Installation
Terminal
claude mcp add notion-mcp-server -e NOTION_TOKEN=... -e NOTION_PAGE_ID=... -- npx -y notion-mcp-server
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"notion-mcp-server": {
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "...",
"NOTION_PAGE_ID": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
NOTION_TOKEN,NOTION_PAGE_ID
Summary
Token-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
notion-mcp-server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| notion-mcp-server | 171 | Local | Yes | npm |
| Repomix | 29K | Local | No | npm |
| dbx | 21K | Local | No | npm |
| jCodemunch MCP | 2,716 | Local | No | pypi |
| Magic Cloud | 1,197 | Local | Yes | oci |
Questions
It reads 2 environment variables: NOTION_TOKEN, NOTION_PAGE_ID. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
notion-mcp-server is a local MCP server distributed as the npm package notion-mcp-server.
Run: claude mcp add notion-mcp-server -e NOTION_TOKEN=... -e NOTION_PAGE_ID=... -- npx -y notion-mcp-server
Run: codex mcp add notion-mcp-server --env NOTION_TOKEN=... --env NOTION_PAGE_ID=... -- npx -y notion-mcp-server
Similar MCP servers
NameStars
- Repomixio.github.yamadashy/repomix29K
- dbxio.github.t8y2/dbx21K
- jCodemunch MCPio.github.jgravelle/jcodemunch-mcp2,716
- Magic Cloudio.github.polterguy/magic1,197
- ref-tools-mcpio.github.ref-tools/ref-tools-mcp1,176
- ref-tools-mcptools.ref/ref-tools-mcp1,176
- fortressio.github.tiliondev/fortress665
- Hex Lineio.github.levnikolaevich/hex-line-mcp565