MCP server that integrates with the Notion API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add notion-server-yihaowang --env NOTION_API_KEY='<NOTION_API_KEY>' -- node /path/to/notion-mcp-server/dist/index.js~/.codex/config.toml
[mcp_servers.notion-server-yihaowang]
command = "node"
args = ["/path/to/notion-mcp-server/dist/index.js"]
env = { NOTION_API_KEY = "<NOTION_API_KEY>" }
# codex mcp add notion-server-yihaowang --env NOTION_API_KEY='<NOTION_API_KEY>' -- node /path/to/notion-mcp-server/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"notion-server-yihaowang": {
"command": "node",
"args": [
"/path/to/notion-mcp-server/dist/index.js"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"notion-server-yihaowang": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/notion-mcp-server/dist/index.js"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"notion-server-yihaowang": {
"command": "node",
"args": [
"/path/to/notion-mcp-server/dist/index.js"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"notion-server-yihaowang": {
"command": "node",
"args": [
"/path/to/notion-mcp-server/dist/index.js"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"notion-server-yihaowang": {
"command": "node",
"args": [
"/path/to/notion-mcp-server/dist/index.js"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}Environment variables
NOTION_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.