GitHub (read-only)
v1.2.0Read-only GitHub repos, issues, PRs and commits, with tool descriptions tuned on a benchmark.
Values you need
| Variable | What it is | |
|---|---|---|
GITHUB_TOKEN | required secret | Fine-grained GitHub token with read-only access (Metadata, Contents, Issues, Pull requests). |
GITHUB_MCP_TOOLSET | optional | 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-mcpAdd 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
- Ask the user for: GITHUB_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_repositories, get_repository, list_open_issues, search_issues, list_pull_requests, get_recent_commits.
- 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