Official server by GitHub
GitHub MCP server
Manage repositories, issues, pull requests, Actions and code search from your agent.
Install
Pick your agent and copy one line. Remote servers ask you to sign in on first use.
claude mcp add --transport http github https://api.githubcopilot.com/mcp/
codex mcp add github --url https://api.githubcopilot.com/mcp/
gemini mcp add --transport http github https://api.githubcopilot.com/mcp/
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/"
}
}
}code --add-mcp '{"name":"github","type":"http","url":"https://api.githubcopilot.com/mcp/"}'What it can do
From GitHub's own MCP documentation.
Sign in
OAuth or a GitHub personal access token. Remote: OAuth, or a PAT sent as Authorization: Bearer. Local: browser OAuth on first use, or the GITHUB_PERSONAL_ACCESS_TOKEN env var, which takes precedence over OAuth.
Tools
Options
- Toolsets: --toolsets flag or GITHUB_TOOLSETS env var. The env var wins over the flag.
- Local toolset names: context, actions, code_quality, code_security, copilot, copilot_issue_intents, dependabot, discussions, gists, git, issues, labels, notifications, orgs, projects, pull_requests, repos, secret_protection, security_advisories, stargazers, users. The remote server adds copilot_spaces and github_support_docs_search.
- Special values: all, and default (context, repos, issues, pull_requests, users).
- Single tools: --tools flag or GITHUB_TOOLS env var, added on top of toolsets.
- Read-only: --read-only flag. Write tools are skipped even if named in --tools.
- Insiders mode: https://api.githubcopilot.com/mcp/insiders, the X-MCP-Insiders: true header, or --insiders (or GITHUB_INSIDERS=true) locally.
Good to know
- An invalid tool name in --tools makes the server fail at startup. Names must match exactly.
- Renamed tools keep their old names as aliases.
- GitHub Enterprise Server needs an https:// prefix on GITHUB_HOST, or it defaults to http://.
- OAuth on GHES or ghe.com needs your own OAuth App or GitHub App.
- If Docker pulls fail with token errors, run docker logout ghcr.io.
Details
- Registry name
- io.github.github/github-mcp-server
- Latest version
- 2.1.0 (updated 2026-11-03)
- Endpoints
https://api.githubcopilot.com/mcp/ (streamable-http)
- Packages
ghcr.io/github/github-mcp-server:2.1.0 (oci)
- Links
- GitHub docsSource
More in Developer tools
Reviewed Oct 21, 2026. Official means published under GitHub's namespace in the MCP registry. It is not a security audit.
Built an MCP server? Get it listed everywhere →
Shipping an Android app? Google Play needs 12 testers for 14 days first. Get them with Tester Exchange →