Skip to content
Skillpedia
βœ“ Official Β· GitHub● Free and open sourceπŸ’»β˜οΈ Local / RemoteπŸ”‘ Needs an API keyProgramming

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

A GitHub account and an MCP client. The remote server uses OAuth or a Personal Access Token. The local server needs Docker.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.