NOTIONMCP Server
Official Notion integration for AI agents. Search, create, update, move, and duplicate pages and databases across your workspace — with OAuth authentication and no infrastructure to manage.
WHAT IT DOES
The Notion MCP Server is Notion's official hosted integration for AI agents. It gives your agent direct read-write access to your entire Notion workspace — pages, databases, comments, and team data. Particularly useful for teams that treat Notion as their single source of truth: pull context from specs, update project trackers, and draft documentation without leaving your coding environment.
Two connection options:
- Hosted remote server (recommended) — connects to Notion's endpoint at
mcp.notion.com/mcpvia OAuth. No infrastructure, no API keys to manage. - Open-source self-hosted — the
@notionhq/notion-mcp-servernpm package. Uses a Notion integration token. Good for teams that need more control or already have a Notion integration.
What you can do:
- Search — find pages, databases, and content across your workspace (plus connected tools like Slack, Google Drive, and Jira with Notion AI)
- Pages — create, read, update, move, and duplicate pages with full markdown content
- Databases — create databases, query views, and manage data sources with filters and sorts
- Comments — add comments to pages or specific blocks, reply to threads, list discussions
- Team & users — look up workspace members, teams, and bot info
Setup — Claude Code
- Run
claude mcp add --transport http notion https://mcp.notion.com/mcp - Start a new Claude Code instance
- Use
/mcp→ select notion → Authenticate through browser
Scope options: --scope local (default, project-only), --scope project (team-shared via .mcp.json), --scope user (across all projects).
Setup — Cursor
- Open Settings → MCP → Add new global MCP server
- Paste configuration:
{ "mcpServers": { "notion": { "url": "https://mcp.notion.com/mcp" } } } - Save, restart Cursor, and complete the OAuth flow
For team sharing, create .cursor/mcp.json in the project root with the same config.
Setup — VS Code
- Create
.vscode/mcp.jsonin your project:{ "servers": { "notion": { "type": "http", "url": "https://mcp.notion.com/mcp" } } } - Open Command Palette (Cmd+Shift+P) → "MCP: List Servers"
- Start the Notion server and complete OAuth
Setup — Windsurf
- Open Settings (Cmd+,) → search "MCP" → click View raw config
- Add to
mcp_config.json:{ "mcpServers": { "notion": { "serverUrl": "https://mcp.notion.com/mcp" } } } - Save, restart Windsurf, and complete the OAuth flow
Setup — Self-hosted (open-source)
For teams that prefer token-based auth or need custom configuration:
- Create an internal integration at notion.so/profile/integrations and copy the token
- Share specific pages or databases with your integration
- Add to your MCP config:
{ "mcpServers": { "notion": { "command": "npx", "args": ["-y", "@notionhq/notion-mcp-server"], "env": { "NOTION_TOKEN": "ntn_****" } } } }
Example prompts
"Find the product roadmap database and list all items with status 'In Progress' for Q1."
"Create a new page under Engineering Wiki titled 'Auth Service Architecture' with sections for Overview, API Endpoints, and Database Schema."
"Look up the onboarding checklist and add a new item for setting up MCP tools with a due date of next Friday."
"Summarize all comments and discussions on the Q2 planning page."
Tips for better results
The hosted server uses OAuth — no API keys to rotate or share. For team setups, use the --scope project flag in Claude Code so everyone shares the same config via .mcp.json. The agent works best when you reference pages and databases by name rather than ID. Note that some tools like workspace search and data source queries require Notion AI or Business/Enterprise plans.