GitHub MCP Server
GitHub's official MCP server for repositories, issues, pull requests, Actions and more (local Docker image or the hosted api.githubcopilot.com/mcp/ endpoint). Version 2.3.0 (Nov 24, 2026) adds tools to update Dependabot, code scanning and secret scanning alerts, experimental pull request artifact tools, and Swift in global security advisories. Version 2.2.0 (Nov 16, 2026) adds opt-in Skills over MCP (18 bundled GitHub workflows, filtered to the tools your connection has; turning skills on replaces the server's instructions), an optional hide_secret input for the secret scanning alert tools, and eleven Copilot Automation tools in the non-default copilot_automations toolset (they also need the agent_automations opt-in flag). Version 2.1.0 (Nov 3, 2026) adds two experimental, opt-in issue artifact tools (create/read/update/delete attachments on an issue; enable the issue_artifacts flag) and fixes list_pull_requests reporting merged pull requests as unmerged. Integers at or above 2^63 are rejected.
Install
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN -e GITHUB_HOST ghcr.io/github/github-mcp-serverExample config (Cursor / Claude Desktop)
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"-e",
"GITHUB_HOST",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-value>",
"GITHUB_PAT": "<your-value>"
}
}
}
}The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).
At a glance
| Repository | github/github-mcp-server |
| GitHub stars | 34,859 |
| Last commit | 2026-11-27 (3 days ago) |
| Status | maintained |
| Security advisories | Latest advisory published 2026-07-20: GHSA-w4q6-qw23-4rg7 (high), fixed in 1.1.0. 2 published advisories found as of 2026-11-30. Details |
| Clients mentioned in README | Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, Codex, Gemini CLI |
| Auth | OAuth or API key/token · GITHUB_PERSONAL_ACCESS_TOKEN GITHUB_PAT |
| Language / License | Go / MIT |
| Official MCP registry | Listed ✓ |
Security advisories
Latest: GHSA-w4q6-qw23-4rg7 (CVE-2026-47427), published 2026-07-20 high
Nil Pointer Dereference DoS in completion/complete Handler
Fixed in: 1.1.0 or later. Update before using it.
2 published advisories found (newest 2 shown)
- 2026-07-20: GHSA-w4q6-qw23-4rg7 (high): Nil Pointer Dereference DoS in completion/complete Handler
- 2026-06-09: GHSA-pjp5-fpmr-3349 (medium): Lockdown mode singleton in HTTP server causes cross-user GraphQL client confusion
Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for github.com/github/github-mcp-server (Go). No advisory doesn't prove a server is safe. How to stay updated.
Common problems
- MCP server not showing in Cursor (or showing a red dot)
- MCP server can't see my API key (env vars not passed)
- Too many MCP tools: trimming tools in Cursor, VS Code, Codex and Devin Desktop
- Claude Code: MCP server added but not available ("No MCP servers configured")
- Claude Code: MCP server connects but shows no tools (or every tool call fails)
- VS Code ignores my MCP config ("servers" vs "mcpServers")
- GitHub MCP server: "Bad credentials" / 401 errors
- Claude Code: project MCP server stuck on "Pending approval"
- Claude Desktop on Windows: ENOENT with ${APPDATA} in the path
- Claude Code: MCP tool output is too large (MAX_MCP_OUTPUT_TOKENS)
- Codex: "MCP client for `server` timed out after 10 seconds"