GitHub MCP Server
Lets your AI agent work with GitHub: read code, manage issues and pull requests, and check workflow runs.
34k stars on GitHubby GitHubLicense MITUpdated 18 days ago
How to install
This MCP has two ways to run: local or remote.
Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.
Paste in the terminal:
claude mcp add github -- docker run -i --rm -p 127.0.0.1:8085:8085 -e GITHUB_OAUTH_CALLBACK_PORT=8085 -e "GITHUB_PERSONAL_ACCESS_TOKEN=<token>" ghcr.io/github/github-mcp-server:2.1.0
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me the open issues in my repository and group them by topic
Review the latest pull request and point out risky changes
What it is
The GitHub MCP Server connects your AI tools directly to GitHub. Your agent can read repositories and code files, manage issues and pull requests, look at security findings and follow GitHub Actions runs. You ask in plain language and it uses your GitHub access.
What it can do
- Browse and search repositories, files and commits
- Create, update and manage issues and pull requests
- Monitor GitHub Actions runs and analyze build failures
- Manage releases
- Review code security findings and Dependabot alerts
- Access discussions and notifications
When to use
- βΊWhen you want your agent to triage bugs and open issues for you
- βΊWhen you need help reviewing the changes in a pull request
- βΊWhen a build fails and you want the agent to look at the workflow run
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
githubHelps your agent work with GitHub using the gh tool: open pull requests, triage issues, check Actions and review code.make-repo-contributionEnsures code contributions follow project rules. It helps create issues, commits, and pull requests correctly, following the repository's documentation.github-automationHelps your agent manage GitHub work, including pull requests, issues, code review and release steps.Frequently asked questions
Is there a hosted version?
Yes. The remote server is hosted by GitHub at https://api.githubcopilot.com/mcp/ and is described as the easiest way to start.
Can I run it locally?
Yes, with Docker using the image ghcr.io/github/github-mcp-server.
How do I log in?
With OAuth on first use, or with a GitHub Personal Access Token set as GITHUB_PERSONAL_ACCESS_TOKEN or as a header.
Does it work with GitHub Enterprise?
GitHub Enterprise Cloud with data residency (ghe.com) can use the remote server. GitHub Enterprise Server needs the local server.
Which clients work with it?
VS Code, Claude Desktop and Claude Code, Cursor, Windsurf, Codex, Copilot CLI, Zed and others.
How do I keep my token safe?
Store it in an environment variable, keep .env files out of git, grant only the scopes you need and rotate tokens regularly.
If it does not work
- βΊIf the Docker image will not pull, run docker logout ghcr.io, since an expired token can cause errors.
- βΊCheck that Docker is installed and running when you use the local server.
- βΊCheck that your token has the permissions you need, such as repo, and that your client supports remote MCP with OAuth (VS Code 1.101 or later).
5 new skills a week. 1 minute to read.