notion-bank-mcp
The notion-bank-mcp server allows AI agents (Cursor, Claude, Codex, etc.) to create, read, update, search, and sync Markdown implementation plans stored in Notion. It supports a structured hierarchy (Plans root → service page → plan page) and uses browser-based OAuth so no secrets are needed in config.
Key capabilities:
Authentication & Status: Check auth and workspace readiness (
plan_status); manage OAuth lifecycle (plan_oauth_login,plan_oauth_wait,plan_oauth_logout).Workspace Configuration: Set Plans root URL and service mappings (
plan_configure); ensure service pages exist (plan_ensure_service).Plan Management: Create/update plans from markdown strings (
plan_upsert) or local files (plan_migrate); retrieve plans with line numbers, TOC, and etag (plan_get); perform surgical line/section edits with concurrency control (plan_update_range); search across plans with line-level hits (plan_search); export plans to local markdown (plan_sync); create subpages (plan_create_child).Integration: Works with MCP hosts via stdio or HTTP, storing user config locally at
~/.config/notion-bank/.
Manages implementation plans in Notion with a structured hierarchy (Plans root → service page → plan page), providing tools for creating, reading, updating (including section-level edits with optimistic concurrency via etags), searching, and syncing plans as markdown.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@notion-bank-mcp Get the current status of my plan bank"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
notion-bank-mcp
Plan-bank MCP for AI agents — read and write Markdown implementation plans in Notion with line + section addressing, for Cursor, Claude, Codex, and other MCP hosts.
Auth: browser OAuth via mcp.notion.com. No CLIENT_ID / SECRET for end users. No integration token in mcp.json.
npx -y notion-bank-mcp@latest --versionWhy use notion-bank-mcp?
Generic Notion MCPs are great for browsing a workspace. notion-bank-mcp is optimized for one job: keep implementation plans in Notion in a shape agents can reliably create, revise, and ship — without throwaway scripts.
Advantage | What you get |
Plan-bank domain | First-class hierarchy: Plans root → service page → plan page. Agents follow one flow instead of inventing page structure every time. |
Surgical edits |
|
Markdown in / Markdown out | Upsert from file or string; |
No temp glue | Stop generating one-off Python/shell to patch Notion. The MCP is the stable API for plan migrate/sync. |
Zero secrets for end users | Install with |
Per-user workspace mapping | Each machine stores Plans root + service map under |
Agent-ready first steps |
|
Search with line hits |
|
Optional export |
|
When to prefer this over the official Notion MCP alone: you maintain a plan bank across services, you need section-level revisions with concurrency checks, and you want agents to do that in one tool surface instead of free-form page updates.
Related MCP server: Notion MCP Server
Quick start
Add this to your MCP config (Cursor example — same shape works for Claude Desktop / Codex):
{
"mcpServers": {
"notion-bank": {
"command": "npx",
"args": ["-y", "notion-bank-mcp@latest"]
}
}
}Restart the host. Tools like
plan_statusandplan_upsertshould appear.On the first Notion action, a browser opens → sign in with Notion.
Tell the agent your Plans root Notion page URL once → it runs
plan_configure.
That is enough for most users.
Install options
Method | When to use |
| Recommended — always latest, no global install |
| Frequent local use |
Clone + | Developing the server itself |
Check / update the CLI:
notion-bank-mcp --version # or: notion-bank-mcp version
notion-bank-mcp update # checks npm only — does not auto-install
notion-bank-mcp --helpIf update reports a newer version:
npm i -g notion-bank-mcp@latest
# or keep using npx -y notion-bank-mcp@latestCLI
Command | Purpose |
| MCP over stdio (hosts) |
| Streamable HTTP (optional hosted URL) |
| Print package version |
| Compare local version to npm |
| Short usage |
Env (optional)
Env | Description |
| Override path to |
| Override path to OAuth credentials |
| In-process cache TTL (default |
| Cache LRU cap (default |
| Set |
| OAuth callback port (default |
HTTP-only (operators): NOTION_BANK_PUBLIC_URL, NOTION_BANK_HOST, NOTION_BANK_PORT, NOTION_BANK_HTTP_IDLE_MS. See docs/OPERATOR.md.
Local from source
make install && make check && make build
make stdio
# or: node dist/index.jsFrom a local clone before publishing:
{
"mcpServers": {
"notion-bank": {
"command": "node",
"args": ["/absolute/path/to/notion-bank-mcp/dist/index.js"]
}
}
}Host compatibility
Primary transport is stdio. Same command + args pattern as other MCP servers. No env tokens required.
Host | Config | Notes |
Cursor |
| See |
Claude Desktop |
| Same |
Claude Code | MCP settings | Stdio; optional skill under |
Codex | MCP / tools config | Same pattern |
Windsurf / OpenCode | MCP | Prefer stdio |
Agent flow
npx notion-bank-mcp@latest (host starts stdio)
│
▼
plan_status
│
├─ no auth → browser OAuth (localhost callback :8765)
│ tokens → ~/.config/notion-bank/credentials.json
│
└─ no root → ask Plans root URL → plan_configure
config → ~/.config/notion-bank/config.json
│
▼
plan_upsert / plan_get / plan_update_range / …Hierarchy:
Plans / Superpowers ← root (plan_configure)
└── <Service> ← plan_ensure_service
└── <Plan title> ← plan_upsert / plan_migrateTools
Tool | Purpose |
| Auth + workspace readiness |
| Browser OAuth lifecycle |
| Persist Plans root (+ optional service map) |
| Ensure service page under root |
| Create a subpage under any parent page id/URL |
| Create/update plan from markdown or file |
| Read with optional |
| Surgical edit by section / lines + |
| Search with line hits |
| Export Notion plan → local markdown |
Resources
notion-bank://docs/workflownotion-bank://docs/instructionsnotion-bank://config
Config (per user / machine)
Stored outside the git repo:
Path | Contents |
| Plans root + service map |
| OAuth access / refresh tokens |
| Short-lived login state (auto-cleared) |
Do not put Notion tokens or OAuth client secrets in the repo or in committed mcp.json. Access tokens expire (~8h); the server refreshes automatically when possible. If refresh fails, run plan_oauth_login again.
HTTP serve
Optional hosted URL mode for teams that want "url": "https://host/mcp" instead of stdio:
npm run serve
# or: notion-bank-mcp serveDetails: docs/OPERATOR.md. Not required for normal users.
Skills
MCP tools and skills are separate. The skill teaches the agent when/how to document in Notion; the server only registers tools.
Shipped skill: skills/notion-bank/SKILL.md
Slash name: /notion-bank
Copy into your host skills directory (with notion-bank MCP enabled):
Host | Typical path |
Cursor |
|
Claude Code |
|
Codex / agents |
|
The skill chains superpowers (brainstorming → writing-plans) and optimize-goal when applicable, uses an in-skill engineering checklist, and always returns the Notion URL.
Developers
make check # typecheck + biome + tests (coverage fail <75%, warn <90%)
make test-coverage
make release VERSION=1.5.0 # bump package.json, commit, create annotated tag v1.5.0
git push && git push origin v1.5.0 # triggers GitHub Actions → npm publishCoverage policy: CI fails below 75% (lines/statements/functions/branches). Below 90% emits a warning annotation only.
Release: git tag vX.Y.Z is the source of truth. The release workflow syncs package.json version from the tag, runs checks, then npm publish. Requires repo secret NPM_TOKEN.
Docs
License
MIT
Available Tools
12 toolsplan_configureA
Persist per-user workspace settings (NOT in repo .env). Pass the user's Plans root Notion URL or UUID. Optional services map slug→page_id. Merges services by default. Call after plan_status when root_page_id missing. Ask the user for their root page — never invent IDs.
Inputs: services, export_dir, root_page_id, root_page_url, +1 more.
plan_ensure_serviceA
Ensure a service page exists under the configured Plans root. Creates if missing. Requires plan_configure + NOTION_TOKEN.
Inputs: service (required), dry_run.
plan_getA
Fetch a plan as addressable markdown with L00N| line numbers, TOC, and etag. Always call before plan_update_range. Requires plan_configure + NOTION_TOKEN.
Inputs: service (required), title, page_id, sections, +2 more.
plan_migrateB
Migrate a local markdown file into Notion plan bank (upsert under service → title). Requires plan_configure + NOTION_TOKEN. Chunking handled inside MCP.
Inputs: path (required), title (required), service (required), mode, +1 more.
plan_oauth_loginA
Open browser for Notion login (mcp.notion.com). Auto-runs on first Notion tool if not logged in. No CLIENT_ID/SECRET.
Inputs: wait, timeout_ms, open_browser.
plan_oauth_logoutA
Clear saved OAuth credentials for this user (credentials.json). Does not revoke at Notion end.
Inputs: no named parameters.
plan_oauth_waitB
Finish a pending plan_oauth_login(wait=false) after the user approves in the browser.
Inputs: timeout_ms.
plan_searchB
Search configured plan bank. Hits include service, title, url, line, snippet (lines match plan_get). Requires plan_configure + NOTION_TOKEN.
Inputs: query (required), limit, service.
plan_statusA
Show auth + workspace status. Call first. End users need no CLIENT_ID — browser OAuth opens automatically.
Inputs: no named parameters.
plan_syncB
Export a Notion plan (canonical) to a local markdown file. Requires plan_configure + NOTION_TOKEN.
Inputs: service (required), path, title, dry_run, +1 more.
plan_update_rangeB
Surgical update by section (preferred) or start_line/end_line. Pass expected_etag from plan_get. Errors if neither section nor lines given (no silent full replace). Requires plan_configure + NOTION_TOKEN.
Inputs: service (required), new_markdown (required), title, dry_run, +6 more.
plan_upsertB
Create or update a plan from a markdown string. Upserts by exact title under the service page. Requires plan_configure + NOTION_TOKEN.
Inputs: title (required), service (required), markdown (required), mode, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose: configure, ensure_service, get, migrate, OAuth login/logout/wait, search, status, sync, update_range, upsert. No overlap.
All tools follow consistent 'plan_' prefix with verb_noun pattern in snake_case (e.g., plan_ensure_service, plan_update_range). No mixing of conventions.
12 tools is well within the ideal 3-15 range, covering auth, CRUD, search, sync, and migration without unnecessary bloat.
Covers configuration, service management, plan retrieval, updates, upserts, search, sync, and OAuth flow. Minor gap: no explicit deletion tool, but upsert can override and sync handles export. Still quite complete.
Maintenance
Related MCP Connectors
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
System-of-record notebook for AI coding agents: pages, datastores, tasks, skills over MCP.
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMulti-project execution, memory, and collaboration platform for humans and AI agents, providing MCP tools for agents to read and write project state.3MIT
- AlicenseNot gradedqualityAmaintenanceGives AI agents headless, token-authenticated read/write access to a Notion workspace through MCP, using three context-efficient tools that cover 47 operations across pages, databases, blocks, templates, comments, users, and files. Supports creating and editing pages, querying and filtering databases, batch mutations with rollback and idempotency, markdown round-trips, and image/file uploads, runnable over stdio or HTTP in CI and self-hosted deployments.5,360 npmMIT
- AlicenseNot gradedqualityAmaintenanceGives MCP clients like Claude, Cursor and Codex read/write access to Notion through a single token, letting agents search, create and edit pages, query databases, comment and upload files in plain language. It uses only three lightweight tools, supports batched idempotent writes, and runs headless in CI or self-hosted environments.5,360 npmMIT
- AlicenseNot gradedqualityBmaintenanceGives MCP clients like Claude, Cursor, VS Code and Codex token-authenticated read/write access to Notion, so agents can search, create and edit pages, query databases, comment and upload files in plain language. It supports batched, idempotent writes with rollback, markdown round-tripping, and headless use in CI or self-hosted environments.5,360 npmMIT