Back to MCP Servers

GitHub MCP Server

OFFICIAL

GitHub's official MCP server. Manage issues, PRs, branches, workflows, and code scanning — or just let the agent read your repos.

Category: Development · Works with: Claude Code, Grok Build, Claude Desktop, Cursor, VS Code, Codex CLI

What it does

Connects agents directly to GitHub for repository operations, issue tracking, code review, and CI visibility. Replaces the archived @modelcontextprotocol/server-github.

Install

Remote: https://api.githubcopilot.com/mcp/  ·  Local: docker run ghcr.io/github/github-mcp-server

Setup Instructions

claude Code
# Easiest: the hosted remote server (OAuth)
claude mcp add --transport http github https://api.githubcopilot.com/mcp/
grok Build
Grok Build supports MCP out of the box. Point it at the hosted remote server (https://api.githubcopilot.com/mcp/) or the local Docker server — the same config works as for any other runner.
claude Desktop
Run the local server with a Personal Access Token:

{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..." }
    }
  }
}
cursor
Add the remote server URL https://api.githubcopilot.com/mcp/ in Cursor's MCP settings and sign in with GitHub.
Official documentation