The Notion MCP Server provides integration between Notion workspaces and Large Language Models (LLMs). It enables structured interaction with Notion's API and includes features like Markdown conversion to optimize token usage and make interactions more efficient.
To get started with the Notion MCP Server, follow these steps:
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@suekou/mcp-notion-server"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
Alternatively, if you've built the server locally:
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["your-built-file-path"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
NOTION_API_TOKEN
(required): Your Notion API integration tokenNOTION_MARKDOWN_CONVERSION
: Set to "true" to enable Markdown conversion, which reduces token consumption when viewing contentYou can specify which tools to enable using the --enabledTools
argument:
node build/index.js --enabledTools=notion_retrieve_block,notion_retrieve_block_children,notion_retrieve_page,notion_query_database,notion_retrieve_database,notion_search,notion_list_all_users,notion_retrieve_user,notion_retrieve_bot_user,notion_retrieve_comments
This example enables only read-only tools.
To reduce token consumption, you can enable Markdown conversion by setting the environment variable:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@suekou/mcp-notion-server"],
"env": {
"NOTION_API_TOKEN": "your-integration-token",
"NOTION_MARKDOWN_CONVERSION": "true"
}
}
}
}
When enabled, you can control the format on a per-request basis:
"markdown"
format for better readability when only viewing content"json"
format when you need to modify the returned contentAll tools support the optional format
parameter (string, "json" or "markdown", default: "markdown").
notion_retrieve_page
page_id
(string)notion_retrieve_block
block_id
(string)notion_retrieve_block_children
block_id
(string)start_cursor
(string), page_size
(number)notion_query_database
database_id
(string)filter
(object), sorts
(array), start_cursor
(string), page_size
(number)notion_retrieve_database
database_id
(string)notion_search
query
(string), filter
(object), sort
(object), start_cursor
(string), page_size
(number)notion_append_block_children
block_id
(string), children
(array)notion_delete_block
block_id
(string)notion_update_page_properties
page_id
(string), properties
(object)notion_create_database
parent
(object), properties
(object)title
(array)notion_update_database
database_id
(string)title
(array), description
(array), properties
(object)notion_create_database_item
database_id
(string), properties
(object)notion_list_all_users
start_cursor
(string), page_size
(number)notion_retrieve_user
user_id
(string)notion_retrieve_bot_user
notion_create_comment
rich_text
(array)parent
(object with page_id
) or discussion_id
(string)notion_retrieve_comments
block_id
(string)start_cursor
(string), page_size
(number)If you encounter permission errors:
claude_desktop_config.json
For Enterprise-specific features like user management, you may need to upgrade to Notion Enterprise plan and use an Organization API key.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "notion" '{"command":"npx","args":["-y","@suekou/mcp-notion-server"],"env":{"NOTION_API_TOKEN":"your-integration-token"}}'
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": {
"notion": {
"command": "npx",
"args": [
"-y",
"@suekou/mcp-notion-server"
],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
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": {
"notion": {
"command": "npx",
"args": [
"-y",
"@suekou/mcp-notion-server"
],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect