Developer ToolsFreeactiveReviewed by MCPIndex

GitHub MCP Server

Official GitHub MCP Server for repositories, issues, pull requests, and code search, distributed via a Docker image.

Looking for more MCP servers? Browse the full MCP tools directory or explore more tools in Developer Tools.

Reviewed by MCPIndex

MCPIndex assessment

GitHub MCP is one of the strongest starting points for teams that already manage engineering work in GitHub. It is especially valuable when the assistant needs to move beyond passive code explanation into real repository operations such as reviewing pull requests, checking issues, and navigating active development context. Its main advantage is workflow proximity: instead of copying links and context manually, teams can keep source control activity inside the same AI-assisted loop. It is less compelling for teams that do not live in GitHub every day or only need occasional read-only repository context.

Quick overview

GitHub MCP Server is the official server maintained by GitHub with over 23K stars on GitHub. It enables AI assistants like Claude to manage repositories, open and merge pull requests, create and close issues, manage branches, and run code search queries. It works with Claude Desktop, Cursor, VS Code, Windsurf, and all MCP-compatible clients using a GitHub Personal Access Token.

Best for

The teams and workflows that benefit most from this tool.

Engineering teams that work in GitHub every day.

Pull request review, issue triage, and repository navigation inside an AI workflow.

Developers who want direct GitHub context instead of chat-only code assistance.

What this MCP server is best for

  • Managing repositories, pull requests, issues, and branches directly through GitHub MCP Server.
  • Reviewing code changes, checking CI status, and commenting on PRs without leaving your AI client.
  • Supporting GitHub-heavy development teams that want AI-assisted repository operations end to end.

When to choose it

Choose GitHub MCP Server when your repositories, pull requests, and issues already live in GitHub and you want direct AI-assisted repository operations.

Good fit

githubapiissuespull-requestsrepos

Limitations

Things to watch before choosing this tool.

Best value appears only when GitHub is already central to the team workflow.

Authentication and repository permission setup can become a friction point.

Less useful for teams that mainly need local file access or non-GitHub tooling.

GitHub MCP Server Configuration

Use the following configuration as a starting point for Claude Desktop or any compatible MCP client, then replace placeholder credentials with your own values.

claude_desktop_config.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"
        }
      }
    }
  }

How to set up GitHub MCP Server

These setup steps cover the typical installation flow for this MCP server.

  1. 1

    Install Docker Desktop from https://www.docker.com/products/docker-desktop and make sure it is running.

  2. 2

    Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic). Click Generate new token.

  3. 3

    Select scopes: repo (full), read:org, and read:user. Copy the token immediately — it will not be shown again.

  4. 4

    Open your Claude Desktop config file. On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\Claude\claude_desktop_config.json.

  5. 5

    Paste the Docker configuration above and replace YOUR_GITHUB_PAT with your actual token.

  6. 6

    Save the file and fully restart Claude Desktop.

  7. 7

    Test by asking Claude: "List my GitHub repositories" — if the GitHub tools appear, the server is connected successfully.

Compatibility

Supported environments for GitHub MCP Server.

Claude Desktop

Yes

Cursor

Yes

VS Code

Yes

Strong fit for MCP clients used in engineering workflows, especially where GitHub context is part of daily work.

Frequently asked questions

Common questions for GitHub MCP Server.

Is GitHub MCP Server free to use?

Yes. The server is free and open-source under MIT license. You need a GitHub account and a Personal Access Token to authenticate. Docker Desktop is also free for personal use.

Why does this server use Docker instead of npx?

GitHub migrated development from the deprecated @modelcontextprotocol/server-github npm package to their own repository (github/github-mcp-server) in April 2025. The official distribution is now a compiled binary shipped as a Docker image.

Can GitHub MCP Server access private repositories?

Yes. As long as your Personal Access Token has the repo scope, it can access all repositories your GitHub account has permission to view, including private and organization repos.

GitHub MCP Server vs Competitors

FeatureGitHub MCP ServerCompetitor
Cloud-hosted repository workflows GitHub MCP GitLab MCP
Self-hosted instance support GitHub MCP GitLab MCP
Integrated CI/CD workflows GitHub MCP GitLab MCP

Related Guides