GitHub MCP Server

Official

Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.

Local + remotestreamable-httpstdioGoMIT★ 20.0k

What is the GitHub MCP Server?

GitHub’s official MCP server connects an assistant to repository content and development workflows. Its tools cover issues, pull requests and other GitHub resources, with the available operations determined by the selected toolsets and the authenticated account.

Investigate an issue with repository context

Start with a repository and issue URL. Ask the assistant to inspect the issue, find the relevant files and explain the connection using file paths or commit references. A follow-up can prepare a pull request or comment, but the destination and proposed change should be explicit. An account with access to one repository does not automatically have access to another.

Select hosted or local authentication

The hosted endpoint is https://api.githubcopilot.com/mcp/. OAuth availability depends on the client’s GitHub integration; a personal access token is another documented route. The local server runs through Docker or a release binary and now also documents OAuth, alongside token authentication. Follow the current client guide rather than assuming that every local installation requires a personal access token.

Setup and tool documentation. Explore related MCP servers.

How to install the GitHub MCP Server

claude mcp add --transport http github https://api.githubcopilot.com/mcp/

Use the README’s client-specific authentication instructions; GitHub OAuth support is not identical across clients.

Configuration

A GitHub account with access to the repositories you need. Use a client with the documented OAuth integration, or follow the token authentication instructions.

VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENPAT for local mode (remote mode uses OAuth instead)e.g. github_pat_...Optional
GITHUB_TOOLSETSComma-separated toolsets to enable (e.g. repos,issues,pull_requests)e.g. repos,issues,pull_requests,actionsOptional

Example prompts to try

  • “Read this GitHub issue and identify the repository files most relevant to the reported error.”

Frequently asked questions

Yes. GitHub documents Docker and binary installations, with OAuth and personal access token authentication options.