GitHub MCP Server
v2.2.0Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.
Values you need
| Variable | What it is | |
|---|---|---|
GITHUB_PERSONAL_ACCESS_TOKEN | required secret | GitHub Personal Access Token (classic or fine-grained) |
GITHUB_API_URL | optional | GitHub API URL (defaults to https://api.github.com) Default: https://api.github.com |
GITHUB_READ_ONLY | optional | Enable 3-tier read-only safety mode (true/false) Default: false |
GITHUB_EXPOSE_ALL_TOOLS | optional | Set to 'true' to expose all 83 tools directly instead of the 5-tool hybrid discovery mode Default: false |
MCP_OUTPUT_FORMAT | optional | Default output format for tool responses ('markdown' or 'json') Default: markdown |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-github -e 'GITHUB_PERSONAL_ACCESS_TOKEN=<GITHUB_PERSONAL_ACCESS_TOKEN>' -- npx -y @sumirati/mcp-github@2.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-github": {
"args": [
"-y",
"@sumirati/mcp-github@2.2.0"
],
"command": "npx",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-github": {
"args": [
"-y",
"@sumirati/mcp-github@2.2.0"
],
"command": "npx",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITHUB_PERSONAL_ACCESS_TOKEN",
"id": "github-personal-access-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-github": {
"args": [
"-y",
"@sumirati/mcp-github@2.2.0"
],
"command": "npx",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-personal-access-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-github]
command = "npx"
args = ["-y", "@sumirati/mcp-github@2.2.0"]
env = { "GITHUB_PERSONAL_ACCESS_TOKEN" = "<GITHUB_PERSONAL_ACCESS_TOKEN>" }For AI agents
- Ask the user for: GITHUB_PERSONAL_ACCESS_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: github_find_actions, github_execute_action, get_file_contents, get_repository, get_commit.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json