This MCP server creates a bridge between Claude and Notion, allowing you to interact with Notion databases and pages directly through Claude. It provides tools for creating, reading, updating, and deleting Notion content as well as AI-powered analysis of your Notion content.
Add the server configuration to Claude Desktop by editing the configuration file:
For MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
For Windows:
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration to the file:
{
"mcpServers": {
"mcp-notion-server": {
"command": "npx",
"args": [
"-y",
"@gabornyerges/mcp-notion-server"
],
"env": {
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}
Make sure to replace "your-notion-api-key"
with your actual Notion API key.
The MCP server provides several tools for working with Notion databases:
Use the list_databases
tool to see all accessible Notion databases.
Create new databases with custom properties using the create_database
tool.
Search and filter database entries with the query_database
tool.
Modify database properties and schema with the update_database
tool.
Several tools are available for working with Notion pages:
Use create_page
to create new pages in databases or as subpages, with support for:
Modify existing page properties with the update_page
tool.
Get page content and metadata using the get_page
tool.
Remove pages from databases or parent pages with the delete_page
tool.
Manage content blocks within pages:
Add new blocks to a page with the append_blocks
tool.
Delete blocks from a page using the delete_blocks
tool.
Get block content with the get_blocks
tool.
Update existing block content using the update_blocks
tool.
The server includes special prompts for content analysis:
summarize_notes
- Generate concise summaries of your notesanalyze_content
- Get insights and analysis of page contentsuggest_tags
- Receive recommendations for relevant tags based on contentSince MCP servers communicate over stdio, debugging can be challenging. You can use the MCP Inspector to help with debugging:
npm run inspector
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-notion-server" '{"command":"npx","args":["-y","@gabornyerges/mcp-notion-server"],"env":{"NOTION_API_KEY":"your-notion-api-key"}}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-notion-server": {
"command": "npx",
"args": [
"-y",
"@gabornyerges/mcp-notion-server"
],
"env": {
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-notion-server": {
"command": "npx",
"args": [
"-y",
"@gabornyerges/mcp-notion-server"
],
"env": {
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect