GitHub MCP Server
GitHub's official MCP server: let AI agents read repos, manage issues and PRs, and run Actions.
Install
Transport: both
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
Tools (8)
context
Context about the current user and GitHub session
repos
Browse repositories, read files, search code and inspect commits
issues
Create, read, comment on and manage GitHub issues
pull_requests
Create, review and manage pull requests
users
Look up users, organisations and profiles
actions
Trigger and inspect GitHub Actions workflows and runs
code_security
Code scanning alerts and security advisories
search
Search repositories, code, issues and users across GitHub
Quality and security
GitHub MCP Server Review: Give Your AI Agent the Keys to GitHub
Most AI coding assistants can read the code on your disk, but they go blind the moment the work leaves your machine. They cannot open a pull request, triage the issue backlog, check whether CI is green, or find the file in a repository they have never cloned. The conversation stops at the edge of your local checkout, and you become the copy-and-paste bridge between the agent and GitHub.
GitHub MCP Server is GitHub's own official MCP server, and it closes that gap. It connects Claude, Cursor, VS Code, Windsurf and other MCP clients directly to the GitHub platform, so an agent can browse repositories, read code, manage issues and pull requests, and inspect Actions runs through natural language. It is the most installed and most actively maintained GitHub integration in the MCP ecosystem, with version 2.1.0 released in November 2026.
What is GitHub MCP Server?
GitHub MCP Server is a Model Context Protocol server maintained by GitHub itself. It ships in two forms: a hosted remote server at api.githubcopilot.com/mcp, which you connect to with one click and GitHub OAuth, and a local server distributed as a Docker image (ghcr.io/github/github-mcp-server) that runs on your machine with a personal access token. Both expose the same capabilities; the remote server is the easiest way to start, while the local server suits Enterprise Server and air-gapped setups.
Its tools are organised into toolsets. The default toolset covers context, repositories, issues, pull requests and users, and you can add more, such as Actions, code security, discussions, gists, search and notifications, or enable everything with the all toolset. Because the server is official, it tracks the GitHub API closely, supports GitHub Enterprise Cloud, and ships security fixes quickly.
Key Features
1. Official, Actively Maintained Integration
This is not a community wrapper. It is built and shipped by GitHub, with 34,000 GitHub stars, a 2.1.0 release in November 2026, and a dedicated security policy. When GitHub ships a new API capability, this server is the first place it appears.
2. Remote Server With One-Click Connect
The hosted remote server needs no Docker, no token management and no local process. Connect it from VS Code, Claude Desktop or Cursor, sign in with GitHub OAuth, and the agent can immediately work with any repository you can access.
3. Full Repository and Code Access
Agents can browse repository trees, read file contents, search code across repositories, inspect commits and compare branches. That turns questions like "where is the retry logic implemented" into something the agent can answer from the real codebase, not from your memory of it.
4. Issue and Pull Request Workflows
Create issues from a bug report, summarise a long discussion thread, open a pull request from a local branch, review diffs and request changes. The agent works through the same objects your team already uses, so nothing is lost in translation.
5. Toolsets Keep Context Small
Instead of registering every tool at once, you enable only the toolsets you need, for example repos and issues for triage work, or actions and code security for CI review. Fewer tools means faster tool choice, smaller prompts and lower token costs.
How It Works
The server speaks MCP over streamable HTTP when remote, or over stdio when local. Your client authenticates with OAuth for the remote server or with a personal access token for the local one, and the server translates tool calls into GitHub API requests. A read-only mode is available for agents you want to keep away from write operations.
To install the local server in Claude Code, run:
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_TOKEN -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
For VS Code, Cursor or Claude Desktop, add the remote server with this URL and sign in with GitHub:
https://api.githubcopilot.com/mcp/
To limit the tools, set the GITHUB_TOOLSETS environment variable, for example "repos,issues,pull_requests,actions,code_security". Start with the default toolset and add more only when the agent asks for a capability it does not have.
Who Should Use GitHub MCP Server?
- Developers who live in GitHub: Triage issues, review PRs and check CI without leaving the agent chat.
- Engineering leads: Ask for a summary of the open backlog, the oldest unreviewed PRs, or the failing workflows this week.
- Open-source maintainers: Let the agent draft issue replies, label new reports and prepare release notes from merged PRs.
- Teams on GitHub Enterprise Cloud: The remote server and OAuth flow work with Enterprise Cloud accounts.
GitHub MCP Server Pricing
GitHub MCP Server is free and open source under the MIT license. The remote server is included with your GitHub account, and the local server is a free Docker image. There is no paid tier for the server itself; GitHub Copilot or API rate limits of your account still apply.
GitHub MCP Server Pros and Cons
Pros
- Official GitHub project with fast updates and a real security process.
- Remote server with one-click OAuth connect, no local setup required.
- Covers the full workflow: repos, issues, PRs, Actions, code security and search.
- Toolsets and read-only mode keep the agent's power under your control.
- Free and open source under the MIT license.
Cons
- Needs a GitHub token or OAuth login; it cannot access private repositories anonymously.
- The local server needs Docker, which is an extra install on some machines.
- Enabling every toolset at once floods the agent with tools and wastes context.
- GitHub Enterprise Server cannot use the hosted remote server.
Final Verdict
If your code lives on GitHub, this is the first MCP server to install. It is official, actively maintained, free, and it covers the whole development workflow instead of one corner of it. Start with the remote server and the default toolset, keep write access read-only until you trust the agent's judgement, and expand the toolsets as your workflows grow. Few MCP servers earn their place this quickly.
