Notion MCP Server
Provides tools for managing Notion pages, databases, and blocks, including custom composite tools for task management such as upserting tasks, batch deleting checkboxes, batch updating tasks, running morning scans, and creating recurring tasks.
Click on "Install 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 MCP ServerRun morning scan for today's tasks"
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-mcp-server
A Notion MCP server, iterated to our preferences.
Lineage
makenotion/notion-mcp-server → mieubrisse/notion-mcp-server → this fork
The original MCP server was maintained by Notion's team. When they shifted focus to their remote MCP (Enterprise-only for database access), mieubrisse forked it to keep the local server alive and added data source support. We forked mieubrisse's version and iterated from there — fixing compatibility issues, expanding the OpenAPI spec, and adding custom composite tools tailored to our workflows.
This server is developed by Michael Han and MILO (his AI assistant), built to power MILO's Notion integration.
Related MCP server: Notion MCP Server
What We Changed
VS Code MCP Compatibility
The upstream spec caused VS Code's MCP client to silently disable tools — no error surface, just broken calls. Root cause: VS Code's JSON Schema validator rejects custom format specifiers ("uuid", "json", "date"), and when schema compilation warns, VS Code disables the tool entirely.
Fixes applied to scripts/notion-openapi.json:
Removed all
"format": "uuid","format": "json"specifiersSimplified
parentRequestschema — replaced complexoneOf/$refwith direct propertiesRemoved
destructiveHintannotation from tool definitions
Error Handling
Upstream errors in the proxy and HTTP client crashed the MCP connection, killing the agent session with no recovery path.
proxy.ts: Wrapped unhandled non-HTTP errors to return structured{ status, error_type, message }responses instead of throwinghttp-client.ts: Added catch-all for network errors without.response— wraps asHttpClientErrorwith status0
OpenAPI Spec Expansions
Block types — expanded blockObjectRequest from 3 to 22 supported types:
Category | Types Added |
Headings |
|
Lists |
|
Structure |
|
Rich blocks |
|
Media |
|
Tables |
|
Rich text annotations — added optional annotations to richTextRequest: bold, italic, underline, strikethrough, code, color (19-value enum)
Icon schema — updated both POST and PATCH page endpoints to support emoji and external icon types (e.g. Notion's native SVG icons like https://www.notion.so/icons/briefcase_brown.svg)
PATCH block fix — upstream API-update-a-block always failed because the schema named its wrapper property "type", which serialized as {"type": <content>} — exactly what Notion rejects in update-block requests. Fixed by surfacing block-specific properties (to_do, paragraph, heading_1, etc.) at the root level.
Cherry-Picks from Upstream
Source | Change |
mieubrisse | Added |
mieubrisse | Added |
mieubrisse | Added required |
makenotion | Sanitized HTTP client error logging (removed sensitive response data from console) |
makenotion | Added |
Custom Tools
The largest addition. Five composite tools built on top of the raw Notion API, designed for agentic task management workflows.
upsert-task
Create or update a task in the Tasks DB by title. Searches for an existing non-trashed task with an exact title match. If found, patches the page properties (and appends body_blocks if provided). If not found, creates a new page with all properties and optional children.
Returns { action: 'created' | 'updated', page_id, url }.
batch-delete-checkboxes
Fetches all to_do blocks from a page/block and deletes them in parallel. By default only deletes checked (completed) boxes — set checked_only: false to delete all. Returns { deleted, total_found, errors }.
batch-update-tasks
Update multiple Notion tasks in a single tool call. Accepts an array of { page_id, properties } and patches each in parallel. Returns { updated, errors }.
morning-scan
Runs two parallel queries against the Tasks DB: today's active tasks (Today? = true, Status != Done) and overdue tasks (Due < today, Status != Done, Today? = false). Returns { today: Page[], overdue: Page[], scanned_at }.
check-and-create-recurring
Checks for recurring task templates and creates new instances when due. Designed for workflows that need periodic task generation without manual intervention.
Installation
Claude Code (via mcp add)
NOTION_TOKEN=ntn_**** claude mcp add -s user notionapi -- npx tsx /path/to/notion-mcp-server/scripts/start-server.tsThe NOTION_TOKEN env var must be available in your shell when Claude Code starts. We store it in macOS Keychain and export from ~/.zshrc:
# Store once
security add-generic-password -a "$USER" -s "NOTION_TOKEN" -w "ntn_****"
# In ~/.zshrc
export NOTION_TOKEN=$(security find-generic-password -a "$USER" -s "NOTION_TOKEN" -w 2>/dev/null)After adding a new env var, relaunch Claude Code from terminal (source ~/.zshrc && claude) — desktop launchers won't pick up new shell exports.
Claude Desktop / Cursor
{
"mcpServers": {
"notionApi": {
"command": "npx",
"args": ["tsx", "/path/to/notion-mcp-server/scripts/start-server.ts"],
"env": {
"NOTION_TOKEN": "ntn_****"
}
}
}
}Development
npm install
npm run build
npm run dev # tsx watch mode
npm testSee UPSTREAM_TRACKING.md for a detailed record of all local modifications, cherry-picks, and the debugging journey that uncovered the VS Code schema compatibility issues.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ollehmichael/notion-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server