GitHub (read-only)

v1.2.0
io.github.AbdulMuhaiminKhan/github-mcp Checked 16 hours ago Published 1 month ago

Read-only GitHub repos, issues, PRs and commits, with tool descriptions tuned on a benchmark.

Values you need

VariableWhat it is
GITHUB_TOKENrequired secret Fine-grained GitHub token with read-only access (Metadata, Contents, Issues, Pull requests).
GITHUB_MCP_TOOLSEToptional Tool descriptions to serve: v2 (default, optimized), v1 or v1b (benchmark baselines). Default: v2

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add github-mcp -e 'GITHUB_TOKEN=<GITHUB_TOKEN>' -- uvx --from github-mcp-readonly==1.2.0 github-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "github-mcp": {
      "args": [
        "--from",
        "github-mcp-readonly==1.2.0",
        "github-mcp"
      ],
      "command": "uvx",
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "github-mcp": {
      "args": [
        "--from",
        "github-mcp-readonly==1.2.0",
        "github-mcp"
      ],
      "command": "uvx",
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GITHUB_TOKEN",
      "id": "github-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "github-mcp": {
      "args": [
        "--from",
        "github-mcp-readonly==1.2.0",
        "github-mcp"
      ],
      "command": "uvx",
      "env": {
        "GITHUB_TOKEN": "${input:github-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.github-mcp]
command = "uvx"
args = ["--from", "github-mcp-readonly==1.2.0", "github-mcp"]
env = { "GITHUB_TOKEN" = "<GITHUB_TOKEN>" }

For AI agents

  1. Ask the user for: GITHUB_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_repositories, get_repository, list_open_issues, search_issues, list_pull_requests, get_recent_commits.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json