Servers › Dev Tools › GitHub

● MaintainedDev Tools

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-server

Example 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

Repositorygithub/github-mcp-server
GitHub stars34,859
Last commit2026-11-27 (3 days ago)
Statusmaintained
Security advisoriesLatest 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 READMEClaude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, Codex, Gemini CLI
AuthOAuth or API key/token · GITHUB_PERSONAL_ACCESS_TOKEN GITHUB_PAT
Language / LicenseGo / MIT
Official MCP registryListed ✓

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

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.