Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 35k stars
  • MIT
  • Updated

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.0

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install GitHub in Claude Code

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
SettingNeededWhat it is
AuthorizationHeader, secretOptionalAuthorization 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

A

No 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 →

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.

GitHub Install

Add to stack

Loading.