The Notion MCP Server enables AI models to interact with Notion workspaces through the Model Context Protocol, allowing seamless access to Notion content and functionality via the official Notion SDK.
For your integration to access content, you must explicitly share pages or databases with it:
Note: Integrations only have access to pages and databases explicitly shared with them. Child pages automatically inherit access from parent pages.
You can add this server to Claude Desktop, Cursor AI, or Claude.ai using either of these configuration methods:
npx @ramidecodes/mcp-server-notion@latest -y --api-key=your-notion-integration-key
{
"mcpServers": {
"Notion": {
"command": "npx",
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
]
}
}
}
Replace your-notion-integration-key
with your actual API key.
Instead of passing the API key directly, you can use a .env
file:
.env
file containing:NOTION_API_KEY=your-notion-integration-key
npx @ramidecodes/mcp-server-notion@latest -y
OPTIONS:
-h, --help Show help message
-v, --version Show version information
--verbose Enable verbose logging
--env-path <path> Path to .env file
--api-key <key> Notion API key
-y Skip confirmation prompts
The Notion MCP server provides these tools for interacting with Notion:
"Failed to create client" errors:
cmd /c
before the npx command"No access to resource" errors: Make sure you've shared the specific Notion page or database with your integration
Integration not appearing in share menu: Try refreshing the page or restarting your browser
Limited capabilities: Verify your integration has the appropriate capabilities enabled in the Notion integration settings
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.