Notion MCP — Connect AI Agents to Your Knowledge Base
Official MCP server for Notion workspace access. Search pages, read content, create and update databases, and manage tasks in Notion through Claude Code tool calls.
What it is
Notion MCP is the official Model Context Protocol server for Notion. It connects AI agents like Claude Code to your Notion workspace, letting them search pages, read content, create and update databases, and manage tasks through structured tool calls. The server translates MCP requests into Notion API calls.
It is designed for developers and teams who use Notion as their knowledge base and want their AI agents to access that knowledge during coding, planning, or research tasks without manually copy-pasting content.
How it saves time or tokens
Without Notion MCP, getting information from Notion into an AI agent requires manually copying content or writing custom API integration code. With the MCP server running, your agent can directly query Notion for relevant pages, pull in specifications, check task status, and even create new pages -- all within the same conversation.
This eliminates context-switching between Notion and your AI tool and ensures the agent works with up-to-date information rather than stale copies.
How to use
- Create a Notion integration at developers.notion.com and get your API key.
- Share the Notion pages and databases you want accessible with your integration.
- Add the MCP server to your Claude Code configuration and start using Notion in your agent conversations.
Example
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@notionhq/notion-mcp-server"],
"env": {
"NOTION_API_KEY": "ntn_your_api_key_here"
}
}
}
}
# After configuration, your AI agent can:
# - Search pages: 'Find the API specification in Notion'
# - Read content: 'Read the project roadmap from Notion'
# - Create pages: 'Create a new task in the sprint database'
# - Update properties: 'Mark task X as complete in Notion'
Related on TokRepo
- Notion MCP integration -- detailed Notion MCP setup guide
- AI tools for documentation -- documentation and knowledge management tools
Common pitfalls
- The Notion integration only has access to pages explicitly shared with it; if your agent cannot find a page, check that it has been shared with the integration in Notion's settings.
- Large Notion databases with thousands of pages may result in slow search responses; use specific search queries rather than broad browsing.
- API rate limits apply to the MCP server; intensive operations like bulk page creation should include delays between requests.
Frequently Asked Questions
Agents can search pages by title or content, read full page content including databases, create new pages and database entries, update page properties, and manage tasks. All operations go through the official Notion API.
Any AI tool that supports the Model Context Protocol can use the Notion MCP server. This includes Claude Code, Cursor, and other MCP-compatible AI coding assistants.
Yes. The @notionhq/notion-mcp-server package is published by Notion's official npm organization and uses the official Notion API under the hood.
No. The Notion API and MCP server work with both free and paid Notion plans. However, free plans have limitations on the number of blocks and integrations.
Access is controlled through Notion's sharing model. Only pages and databases explicitly shared with your integration are accessible to the MCP server. You can share specific pages rather than entire workspaces for fine-grained control.
Citations (3)
- Notion MCP GitHub— Official Notion MCP server for AI agent integration
- Notion Developers— Notion API for programmatic workspace access
- Anthropic MCP— Model Context Protocol specification
Related on TokRepo
Source & Thanks
Created by Notion. Official MCP server.