Github MCP error

:lady_beetle: Provide a clear description of the bug
Whatever I try to run @modelcontextprotocol/server-github via npx or env, or docker image, I cannot have it working from cursor IDE

Using ‘env’

"mcp-github": {
  "command": "env",
  "args": [
    "GITHUB_PERSONAL_ACCESS_TOKEN=...",
    "npx",
    "-y",
    "@modelcontextprotocol/server-github"
  ]
}

Using ‘npx’

"mcp-github": {
  "command": "npx",
  "args": [
    "-y",
    "@modelcontextprotocol/server-github"
  ],
  "env": {
    "GITHUB_PERSONAL_ACCESS_TOKEN": "..."
  }
}

Using ‘docker’

"mcp-github": {
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "GITHUB_PERSONAL_ACCESS_TOKEN",
    "mcp/github"
  ],
  "env": {
    "GITHUB_PERSONAL_ACCESS_TOKEN": "..."
  }
}

I’m getting the following error:

Inspector config to test it as proxy, does not seems to work either.

npx -y @modelcontextprotocol/inspector npx -y @modelcontextprotocol/server-github -e GITHUB_PERSONAL_ACCESS_TOKEN=...

:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)

I generated a token from github:

Use the same config from cursor or claude_desktop, but cursor is not working.

Claude:

"mcp-github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "mcp/github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "..."
      }
    }

Inspector (partially works):

npx -y @modelcontextprotocol/inspector npx -y @modelcontextprotocol/server-github -e GITHUB_PERSONAL_ACCESS_TOKEN=...

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).

Version: 0.48.7 (Universal)
VSCode Version: 1.96.2
Commit: 1d623c4cc1d3bb6e0fe4f1d5434b47b958b05870
Date: 2025-04-02T04:51:59.792Z (2 days ago)
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

:prohibited: Tell us if the issue stops you from using Cursor.

No but as I try to use the maximum of it, its enoying !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.