DEV Community

Discussion on: Operating Notion via Claude Desktop Using MCP!

Collapse
 
patrickxin profile image
patrick-xin

Thanks for sharing!

Collapse
 
harrison_a2010313da130595 profile image
Harrison

I have identified the cause of the error. The field in claude_desktop_config.json should be NOTION_API_TOKEN instead of NOTION_API_KEY, as the parameter in the index.js file is NOTION_API_TOKEN.

The correct and complete claude_desktop_config.json should look like this:

{
  "mcpServers": {
    "notion": {
      "command": "/opt/homebrew/bin/node",
      "args": ["/Users/xxxx/mcp-notion-server/notion/build/index.js"],
      "env": {
        "NOTION_API_TOKEN": "xxxxx",
        "NODE_ENV": "production"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode