A community-driven registry for the Claude Code ecosystem. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Unofficial Notion MCP server via the private API (token_v2) — full read/write, no integration token.
An unofficial Notion MCP server built on Notion's private API (
token_v2). It gives Claude Desktop, Claude Code, Cursor and any other MCP client full read/write access to your entire Notion workspace — with no integration token and without sharing pages one by one.
Unlike servers built on the official Notion API, this one authenticates with your browser
session cookie, so an LLM agent can search, read, create and edit any page your account can
see — instantly, with zero setup in Notion. Built on the official
@modelcontextprotocol/sdk (stdio transport).
| This server (private API) | Official Notion API / MCP | |
|---|---|---|
| Setup in Notion | None — just your browser cookie | Create an integration + share each page |
| Access scope | Everything your account can see | Only pages explicitly shared with the integration |
| Auth | token_v2 session cookie | Integration token / OAuth |
| Best for | Personal automation, full-workspace agents | Production apps, multi-user, official support |
| Stability | ⚠️ Fragile, undocumented | ✅ Stable, supported |
If you just want an agent over your own workspace without fighting integration permissions, this is the fastest path. For production / multi-tenant apps, use the official Notion MCP server.
This server talks to Notion's undocumented internal API (https://www.notion.so/api/v3),
not the official public API:
token_v2) — effectively your account password. Never commit it.git clone https://github.com/kirvigen/notion-private-api-mcp.git
cd notion-private-api-mcp
npm install
export NOTION_TOKEN_V2='your_token_v2' # see "Configuration" below
npm start
Then register it in your MCP client (Claude Desktop / Claude Code).
| Tool | Description |
|---|---|
get_page | Read a page block and its metadata |
get_block | Read a single block |
get_block_children | Read the direct child blocks of a page or block |
get_style_documentation | Catalog of supported block types & inline annotations (call before composing complex pages) |
markdown_to_blocks | Preview how Markdown parses into the simplified block JSON |
create_page | Create a child page under another page, from blocks or Markdown |
append_blocks | Append blocks/Markdown to a page (at the end, or after a given block) |
replace_page_content | Replace the direct child blocks of a page |
update_block_text | Replace the plain-text content of a block (e.g. a code block) |
delete_blocks | Remove (archive) direct child blocks from a page |
sync_markdown_file | Create or replace a page from a local Markdown file |
Tool parameters are defined in
src/server.js.
Configured entirely through environment variables:
| Variable | Required | Description |
|---|---|---|
NOTION_TOKEN_V2 | ✅ | Your Notion session cookie (token_v2) |
NOTION_PRIVATE_API_BASE | — | API base URL (default: https://www.notion.so) |
token_v2https://www.notion.sotoken_v2 cookie.🔒 Treat it like a password. Keep it in your shell env or an untracked
.env— never commit it.
cp .env.example .env # then edit .env
Add to claude_desktop_config.json:
{
"mcpServers": {
"notion-private": {
"command": "node",
"args": ["/absolute/path/to/notion-private-api-mcp/src/server.js"],
"env": { "NOTION_TOKEN_V2": "your_token_v2" }
}
}
}
claude mcp add notion-private \
--scope local \
--env NOTION_TOKEN_V2='your_token_v2' \
-- node /absolute/path/to/notion-private-api-mcp/src/server.js
The helper scripts ./run-desktop.sh and ./run-codex.sh resolve the repo path automatically
and log to /tmp.
Once connected, just talk to your agent:
CHANGELOG.md into the release-notes page."Tools that write accept a plain-JSON simplified block format:
[
{ "type": "heading_1", "text": "Release Notes" },
{ "type": "paragraph", "text": "First paragraph." },
{ "type": "to_do", "text": "Ship the feature", "checked": true },
{ "type": "toggle", "text": "Details", "children": [
{ "type": "bulleted_list_item", "text": "Item one" }
]}
]
Supported types: paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item,
to_do, toggle, quote, callout, code, divider.
You can also pass Markdown (a stable subset: headings, paragraphs, bullet/numbered lists,
task items, blockquotes, fenced code, horizontal rules). Call get_style_documentation from your
client for the authoritative, machine-readable catalog. Nested lists, tables and inline formatting
are not implemented yet.
Where do I get token_v2? See Getting your token_v2.
NOTION_TOKEN_V2 is required — the env var isn't set in the process that launches the server
(check your MCP client's env block, not just your shell).
My token stopped working — token_v2 expires when your Notion session ends (logout, password
change, long inactivity). Grab a fresh cookie and update it.
MemcachedCrossCellError — a transient Notion routing error on multi-cell workspaces. The
client already retries and falls back to loadPageChunk; just retry the call if it surfaces.
Is this against Notion's ToS? It uses an undocumented internal API. Use only with your own account and data, at your own risk.
src/
├── server.js # MCP server: tool registration + stdio transport
├── notion-client.js # Private-API client (cookie auth, transactions, retries)
├── notion-blocks.js # Builds Notion block trees from simplified blocks
├── markdown.js # Markdown → simplified-block parser
└── style-docs.js # Catalog returned by get_style_documentation
Issues and PRs are welcome. If this saved you time, please ⭐ the repo — it genuinely helps others discover it.
MIT © kir.vigen
Not affiliated with Notion Labs, Inc. Relies on an undocumented internal API; by using it you accept all risks, including possible account restrictions and breakage when the API changes. Use only with your own data.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
English-first Korean equity intelligence MCP — DART filings, foreign-holder 5%-rule flows, activist filings, KRX news. F
Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control sc
0
via CLI