Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Notion MCP server is disconnected" #12

Open
mrshaper93 opened this issue Jan 1, 2025 · 3 comments
Open

"Notion MCP server is disconnected" #12

mrshaper93 opened this issue Jan 1, 2025 · 3 comments

Comments

@mrshaper93
Copy link

I recently followed all the installation and configuration steps for the Claude desktop app, including setting up the claude_desktop_config.json file with the correct API key and absolute path to index.js. However, I’m encountering an issue where the app shows "Notion MCP server is disconnected" on my MacBook with an M1 chip.

Here are some details about my setup and the troubleshooting steps I’ve tried:

Verified that the Notion MCP server is running and restarted it manually.
Checked Node.js compatibility and ensured I’m using the latest LTS version.
Confirmed the absolute path to index.js in the configuration file is accurate.
Validated the API key by testing it with external tools like Postman.
Ensured a stable internet connection and temporarily disabled VPN/firewall.
Installed Rosetta 2 on my M1 MacBook.
Rebuilt dependencies by deleting the node_modules folder and reinstalling them.
Reviewed logs for errors but couldn’t pinpoint the issue.
Enabled debug mode for more detailed output.
Checked for potential compatibility issues with the M1 chip.
Reinstalled the Claude desktop app as a last resort.
Despite these efforts, the issue persists. Could you please provide any additional guidance or insights into what might be causing the disconnection? Are there any specific configurations or known issues with the M1 architecture that I should be aware of?

@suekou
Copy link
Owner

suekou commented Jan 1, 2025

@mrshaper93
I’m not sure what is causing this issue, but instead of using the build method, you might have better luck with a configuration that uses npx without building, like this:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@suekou/mcp-notion-server"],
      "env": {
        "NOTION_API_TOKEN": "your-integration-token"
      }
    }
  }
}

This approach could potentially resolve the problem.

@mrshaper93
Copy link
Author

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"
      }
    }
  }
}

@mutlumehmet
Copy link

mutlumehmet commented Jan 10, 2025

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@suekou/mcp-notion-server"],
      "env": {
        "NOTION_API_TOKEN": ""
      }
    }
  }
}

and running with

npx run build

resolved it for me
just do not forget to restart the app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants