GitHub
MCP server by github Community
GitHub MCP Server connects AI assistants to GitHub so they can read repositories, manage issues and pull requests, and check workflow runs. It is aimed at developers who want to work with GitHub context in natural language.
Install GitHub
Built from the published package, never by AI.
claude mcp add github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.2.0Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"github": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.2.0"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"github": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.2.0"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"github": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.2.0"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.2.0{
"mcpServers": {
"github": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.2.0"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add github docker run -i --rm ghcr.io/github/github-mcp-server:2.2.0Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the github block.
About
The GitHub MCP Server connects AI tools directly to GitHub's platform. It lets AI agents, assistants, and chatbots read repositories and code files, manage issues and pull requests, analyze code, and automate workflows through natural language. The source describes uses such as browsing commits, triaging bugs, monitoring GitHub Actions runs, reviewing Dependabot alerts, and accessing discussions and notifications.
GitHub hosts a remote version that MCP hosts can connect to by URL, with OAuth or a personal access token. A local version runs in a Docker container from the ghcr.io/github/github-mcp-server image. The source is written for developers who want to connect their AI tools to GitHub, from simple queries to multi-step agent workflows.
Written from the project's README and checked against it.
Tools it gives your assistant
Repository managementBrowse and query code, search files, analyze commits, and understand project structure.Issue and PR automationCreate, update, and manage issues and pull requests, and help triage bugs and review changes.CI/CD and workflow insightsMonitor GitHub Actions workflow runs, analyze build failures, and manage releases.Code analysisExamine security findings, review Dependabot alerts, and understand code patterns.Team collaborationAccess discussions, manage notifications, and analyze team activity.
What you need
- A GitHub account or a GitHub personal access token
- A compatible MCP host with remote server support, such as VS Code 1.101 or later
- Docker, for the local server
| Setting | Needed | What it is |
|---|---|---|
AuthorizationHeader, secret | Optional | Authorization header with authentication token (PAT or App token) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Summarize the open issues in my repository and suggest which to triage first.
- Explain why the latest GitHub Actions workflow run failed.
- Review the Dependabot alerts in this repo and list the highest-risk ones.
Good to know
- GitHub Enterprise Server does not support the remote server.
- The local server needs Docker to run.
- Local server OAuth tokens are kept in memory only, according to the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to GitHub
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
GitHub: common questions
Does GitHub MCP Server work with GitHub Enterprise Server?
The remote server is not supported on GitHub Enterprise Server. The source points to the local server configuration for that case, which requires a bring-your-own OAuth or GitHub App.
Can I use a personal access token instead of OAuth?
Yes. The local server accepts a GitHub personal access token set in GITHUB_PERSONAL_ACCESS_TOKEN, which takes precedence over OAuth. The remote server also supports PAT authentication through an Authorization header.
What is the difference between the remote and local server?
The remote server is hosted by GitHub at api.githubcopilot.com and is the easiest option. The local server runs in a Docker container for hosts that do not support remote MCP servers.
How do I install GitHub?
In Claude Code run claude mcp add github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.2.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is GitHub the official server?
GitHub is a community project by github, not verified by a company domain.
Is GitHub free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is GitHub safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to GitHub?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does GitHub work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
