Skip to main content

GitHub MCP Server Setup: Repos, Issues & PRs in Claude (2026)

Use the official GitHub MCP server so Claude can work with repos, issues, and pull requests. Covers the remote (GitHub-hosted) and local (Docker) setup and auth.

ByUpdated

The GitHub MCP server is GitHub's official server that lets Claude work with GitHub repos, issues, pull requests, and more. You can connect it two ways — remote (GitHub-hosted) or local (Docker). (Note: the GitHub Actions flow that auto-reviews PRs when you mention @claude is separate and is covered in the GitHub Actions guide.)

🟢 Model references match the current lineup · model notice · Fable subscription
🟢 Model references match the current lineup · Claude Opus 5 / Claude Sonnet 5 / Claude Haiku 4.5 (higher tier: Claude Fable 5.1). This notice changes only when Anthropic ships a new model.

Fable 5 and 5.1 subscription (updated September 7, 2026): Claude Fable 5.1, released September 1, 2026, is the current Fable model and Fable 5 is now legacy. Plan terms are the same for both — Max and Team Premium plans include Fable at up to 50% of the weekly usage limit; Pro and Team Standard use usage credits (

🟢 Model references match the current lineup · Claude Opus 5 / Claude Sonnet 5 / Claude Haiku 4.5 (higher tier: Claude Fable 5.1). This notice changes only when Anthropic ships a new model.
0/M input, $50/M output tokens). The one-time
🟢 Model references match the current lineup · Claude Opus 5 / Claude Sonnet 5 / Claude Haiku 4.5 (higher tier: Claude Fable 5.1). This notice changes only when Anthropic ships a new model.
00 credit applied only to the Fable 5 transition and is not offered for 5.1. Some coding and debugging requests may be answered by an Opus model due to a security classifier (both models). See the Fable 5.1 guide and the Fable 5 availability guide for details.

GitHub MCP — 4 stepsGitHub MCP — 4 steps1. Choose moderemote / local2. RegisterURL or Docker3. AuthenticateOAuth or PAT4. Workrepos · issues · PRs

What you can do

It provides tools for browsing repos, viewing and creating issues and PRs, and searching code. Features are grouped into "toolsets," so you can enable only what you need (the actual tools depend on the toolsets you turn on).

Option 1 — Remote GitHub MCP server (simple)

This server is hosted by GitHub. The URL is https://api.githubcopilot.com/mcp/; add it in a host that supports remote MCP (for example, Claude Desktop) and sign in to GitHub with OAuth. In Claude (web/desktop), add this URL as a custom connector — see How to connect.

Option 2 — Local GitHub MCP server (Docker)

This runs the server yourself with Docker. It needs a GitHub personal access token (PAT), passed via the GITHUB_PERSONAL_ACCESS_TOKEN environment variable. A claude_desktop_config.json example:

{
  "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>"
      }
    }
  }
}

Issue the token with the least privileges needed and keep it from being exposed.

In Claude Code

Register it with claude mcp add — see Claude Code MCP setup for details.

Two ways to connectOption 1 — Remote (simple)Hosted by GitHub itselfapi.githubcopilot.com/mcp/Log in via OAuthNo token to manageOption 2 — Local (Docker)Run it yourself with DockerNeeds a personal access tokenPassed as GITHUB_PERSONAL_ACCESS_TOKEN env varEither way, keep tokens and scopes minimal

Try it

Ask things like "summarize the open issues in this repo" or "highlight the review points in the latest PR," and Claude will ask to approve, then work in GitHub.

Staying safe · troubleshooting

Keep the token and its scope minimal (MCP connector security). If the server does not appear or errors out, see the troubleshooting guide.

Looking for more connectors? Browse the connector directory to search and filter common connectors by use case.

For auto-review with @claude on PRs see GitHub Actions integration; for other servers see Filesystem server and recommended servers; for the full map see the connector & MCP catalog, and to build your own see Build your own MCP server. The official source is github/github-mcp-server.

Written July 2026; re-checked against the official README on September 9, 2026 (remote URL, Docker image, PAT variable and toolsets unchanged). Server URL, options, and toolsets follow the official repository and may change between versions, so check the official docs as you configure. This is an unofficial guide.

Was this helpful?

Keep reading