Skip to content

GitHub MCP Server

Manage repositories, issues, pull requests and Actions on GitHub from Claude.

Officialby GitHubHosted or on your computerChecked October 18, 2026

GitHub's official MCP server lets Claude work with repositories, issues, pull requests, Actions runs and security alerts through the GitHub API. You can use the hosted endpoint or run the open-source server yourself in Docker, and you choose which toolsets it exposes.

Who it is for

  • Developers who host code on GitHub
  • Maintainers triaging issues and pull requests
  • Teams that run CI on GitHub Actions

Prompts to try

Once it is connected, ask in plain words. Claude decides when to use the server and asks before it changes anything important.

Prompt 1
List the open issues labeled bug in my-org/my-repo and summarize the three oldest.
Prompt 2
Open a pull request from my feature branch to main with a short summary of the changes.
Prompt 3
Why did the last GitHub Actions run on main fail? Show me the log of the failing step.

How to connect it

In Claude Code

  1. claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_GITHUB_PAT"

In the Claude desktop app

Add this to claude_desktop_config.json, then restart the app:

json
{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT"
      }
    }
  }
}

Hosted address: https://api.githubcopilot.com/mcp/

Good to know

GitHub's guide says the hosted server does not work in Claude Desktop, so use the Docker config there; a classic token needs at least the repo, read:org and read:packages scopes.

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 150 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you the course and AI tips.

How we checked it

Checked the GitHub repo (MIT, 33.7k stars, release v2.0.2 on 2026-10-08), its Claude install guide and the registry entry io.github.github/github-mcp-server; the hosted endpoint answers with an OAuth challenge.

Source: github.com/github/github-mcp-server