Notion MCP — Knowledge Base Server for AI Agents
MCP server that connects AI agents to Notion workspaces. Search pages, read content, create documents, and manage databases through natural language. 2,000+ stars.
What it is
Notion MCP is a Model Context Protocol server that connects AI agents like Claude Code to Notion workspaces. It enables searching pages, reading content, creating documents, and managing databases through natural language commands. Once configured, your AI agent can query your entire Notion knowledge base as context for its work.
It is designed for developers and teams who store documentation, specs, and knowledge in Notion and want their AI tools to access that context directly.
How it saves time or tokens
The token estimate for this workflow is 2,400 tokens. Instead of manually copying Notion content into prompts, the MCP server lets your agent pull the relevant pages on demand. This keeps context fresh and avoids stale copy-paste. The search functionality means the agent finds the right page without you specifying exact URLs.
How to use
- Create a Notion integration at notion.so/my-integrations and get your API key
- Share relevant pages with your integration
- Add the MCP server config to your
.mcp.json - Restart your AI tool
Example
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-notion"],
"env": {
"NOTION_API_KEY": "ntn_your_integration_token"
}
}
}
}
Once configured, ask your agent:
'Search my Notion for the API design spec'
'Create a new page in the Engineering database with today\'s standup notes'
'Read the onboarding checklist and summarize the steps'
Related on TokRepo
- MCP Notion Integration -- Deep dive into Notion MCP capabilities
- AI Tools for Documentation -- Documentation tools for AI workflows
Common pitfalls
- Pages must be explicitly shared with your integration; the agent cannot access pages that have not been shared
- The integration token has workspace-level scope; do not share it in public repositories
- Large Notion databases with thousands of rows may hit API rate limits; use filters to narrow queries
Frequently Asked Questions
The server supports searching pages, reading page content, creating new pages, updating existing pages, querying databases with filters, and managing database properties. It covers the most common Notion API operations.
No. The Notion API is available on all plans, including the free tier. However, the free plan has limitations on the number of integrations and API requests per minute.
In Notion, open a page, click the three-dot menu, select 'Connections', and add your integration. All child pages under a shared parent page are also accessible to the integration.
Yes. The MCP server has both read and write access. The agent can create new pages, update content, and modify database entries. Review the integration permissions if you want read-only access.
Any MCP-compatible AI tool works with Notion MCP, including Claude Code, Claude Desktop, Cursor, Windsurf, and other tools that support the Model Context Protocol.
Citations (3)
- MCP Notion GitHub— Notion MCP is an official Anthropic MCP server for Notion
- Notion Developer Docs— Notion API and integrations
- MCP Specification— Model Context Protocol specification
Related on TokRepo
Source & Thanks
Built on Notion API. Licensed under MIT.
mcp-notion — ⭐ 2,000+
Thanks for bridging AI agents and team knowledge bases.