notion-mcp-server
MCP server by awkoy Community
Connects Claude, Cursor, VS Code and Codex to Notion with one token. It lets AI assistants search, create and edit pages, query databases and add comments, and suits agents and CI jobs.
Install notion-mcp-server
Built from the published package, never by AI.
claude mcp add notion-mcp-server -e NOTION_TOKEN=YOUR_NOTION_TOKEN -- npx -y notion-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"notion-mcp-server": {
"env": {
"NOTION_TOKEN": "YOUR_NOTION_TOKEN"
},
"args": [
"-y",
"notion-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"notion-mcp-server": {
"env": {
"NOTION_TOKEN": "YOUR_NOTION_TOKEN"
},
"args": [
"-y",
"notion-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"notion-mcp-server": {
"env": {
"NOTION_TOKEN": "YOUR_NOTION_TOKEN"
},
"args": [
"-y",
"notion-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add notion-mcp-server --env NOTION_TOKEN=YOUR_NOTION_TOKEN -- npx -y notion-mcp-server{
"mcpServers": {
"notion-mcp-server": {
"env": {
"NOTION_TOKEN": "YOUR_NOTION_TOKEN"
},
"args": [
"-y",
"notion-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add notion-mcp-server npx -y notion-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the notion-mcp-server block.
About
notion-mcp-server is a Model Context Protocol server that gives Claude Code, Claude Desktop, Cursor, VS Code, Codex and other MCP clients read and write access to Notion. The assistant can search, create and edit pages, query databases, comment and upload files.
It authenticates with a Notion Personal Access Token or an Internal Integration, so it needs no browser sign-in and can run headless in CI, cron jobs, background agents and on a self-hosted server. The source says its three tools cost 1,005 tokens at connection, and writes can be batched with atomic rollback and idempotency keys. It is aimed at agents, automation and self-hosted setups.
Written from the project's README and checked against it.
Tools it gives your assistant
notion_writeCreates and edits Notion content, and returns a link to the new page.Search and read pagesSearches Notion and reads pages, with content returned as markdown.Query databasesFilters database rows, for example by a Status property, using a where filter.Batched writesRuns many write operations in one call, with atomic rollback and idempotency keys.Comments and file uploadsAdds comments to pages and uploads files from base64, a public URL or a local path.
What you need
- Notion Personal Access Token or Internal Integration secret
- Node.js 22 or later for the Claude Code plugin
- Docker, only for the container option
| Setting | Needed | What it is |
|---|---|---|
NOTION_Environment variable, secret | Required | Notion Personal Access Token (ntn_...) or Internal Integration Secret. Create at https://app.notion.com/developers/tokens |
NOTION_Environment variable | Optional | Optional default parent page ID used by create_page / create_database when no parent is passed. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find rows in my Tasks database where Status is 'Doing'.
- Rename these 50 pages to the new convention.
- Comment on yesterday's meeting notes with a short summary.
Good to know
- Set NOTION_READ_ONLY=true to disable every write operation.
- The default rate limit is 3 requests per second.
- Local path uploads over HTTP are refused unless NOTION_UPLOAD_ROOT is set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to notion-mcp-server
All alternatives →LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.
Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.
Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.
Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.
AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.
Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.
Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips
notion-mcp-server: common questions
Does notion-mcp-server need a browser sign-in?
No. It authenticates with a token, so it can run headless in CI, cron jobs and background agents.
Which Notion token should I use?
The source recommends a Personal Access Token, which sees everything you can see. An Internal Integration works too, but only on pages you have connected it to.
Can I stop the assistant from changing my Notion workspace?
Yes. Set NOTION_READ_ONLY=true to turn off every write operation, or use NOTION_ALLOWED_OPERATIONS to allow only chosen operations.
How do I install notion-mcp-server?
In Claude Code run claude mcp add notion-mcp-server -e NOTION_TOKEN=YOUR_NOTION_TOKEN -- npx -y notion-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is notion-mcp-server the official server?
notion-mcp-server is a community project by awkoy, not verified by a company domain.
Is notion-mcp-server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is notion-mcp-server safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to notion-mcp-server?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does notion-mcp-server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
