Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyWork and productivity

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

NameWhat it isRequired
NOTION_TOKENNotion Personal Access Token (ntn_...) or Internal Integration Secret. Create at https://app.notion.com/developers/tokensYes
NOTION_PAGE_IDOptional 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 path
  • add_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

A Notion token (ntn_...) from app.notion.com/developers/tokens, and Node.js 22 or later for the plugin. Works on any Notion plan, including Free.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.