Notion MCP Server (token)
Lets your AI agent search, read and edit Notion pages and databases with a token, including headless and in CI.
179 stars on GitHubby awkoyLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add notion -e NOTION_TOKEN="<your value>" -- npx -y notion-mcp-server
What to fill in
| Name | What it is | Required |
|---|---|---|
NOTION_TOKEN | Notion Personal Access Token (ntn_...) or Internal Integration Secret. Create at https://app.notion.com/developers/tokens | Yes |
NOTION_PAGE_ID | Optional default parent page ID used by create_page / create_database when no parent is passed. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Use Notion to make a page called Hello from my agent and add a checklist of three things to try today.
Find every row in my Tasks database where Status is Doing and tell me which are overdue.
What it is
This server connects your agent to Notion with a single token, so no browser sign-in is needed. It has three tools that cover pages, databases, blocks, comments and files. Because it uses a token, it also runs unattended in CI, cron jobs and background agents.
What it can do
notion_write: create and edit pages and other content- Search pages and query databases with filters
- Batched writes with rollback and idempotency keys
upload_file: upload files from base64, a URL or a local pathadd_page_comment: comment on pages- Read-only mode and operation allow and block lists
When to use
- βΊWhen your agent runs without a person, such as in CI or a scheduled job
- βΊWhen you want to update many Notion pages in one batched call
- βΊWhen your Notion plan does not offer the hosted connector
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
notionHelps your agent read, create, and update Notion pages, databases, and comments with the ntn command, or with direct API calls when needed.notionLets your agent search, read and update Notion pages, databases and blocks through the Notion API, using your own integration key.notionLets your agent read and edit Notion pages and databases using the official ntn command line tool or simple web requests.Frequently asked questions
Is it free and open source?
The package has an open licence badge. The token works on every Notion plan, Free included.
Is it made by Notion?
No. It is a separate project. Notion's own hosted MCP is a different server.
Can I make it read-only?
Yes. Set NOTION_READ_ONLY=true, or use allow and block lists for finer control.
Why does it say object_not_found?
With an Internal Integration, the page must be connected to it. A Personal Access Token sees everything you can see.
How light is it on context?
The readme says its three tools cost about 1,005 tokens at connection.
How do I install it?
Run npx add-mcp notion-mcp-server --env NOTION_TOKEN=your_token, or install the plugin or .mcpb file.
If it does not work
- βΊKeep the --env NOTION_TOKEN flag, since without it every call fails with an auth error.
- βΊIf a page is not found, connect it to your Internal Integration or switch to a Personal Access Token.
- βΊLocal file paths for upload may be refused. Set NOTION_UPLOAD_ROOT to the allowed folder.
5 new skills a week. 1 minute to read.