GitHub

v2.3.0
io.github.github/github-mcp-server Checked 6 hours ago Published 6 days ago

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

Has high-severity static-analysis findings pending human review.

Docker verified

Requires Docker

Run in a terminal
claude mcp add github-mcp-server -- docker run -i --rm ghcr.io/github/github-mcp-server:2.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "github-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/github/github-mcp-server:2.3.0"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "github-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/github/github-mcp-server:2.3.0"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "github-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/github/github-mcp-server:2.3.0"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.github-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/github/github-mcp-server:2.3.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http github-mcp-server https://api.githubcopilot.com/mcp/ --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "github-mcp-server": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.githubcopilot.com/mcp/",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "github-mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "github-mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.github-mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://api.githubcopilot.com/mcp/", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: add_comment_to_pending_review, add_issue_comment, add_reply_to_pull_request_comment, assign_copilot_to_issue, create_branch, create_or_update_file, create_pull_request, create_repository, ….
  4. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json