Skip to content
AI Dev Toolkit.
Esc
  • Loading…

MCP server · Code and developer tools

GitHub MCP server

The GitHub MCP server is GitHub’s official MCP server. It lets Claude Code, Cursor and other MCP apps read code, manage issues and pull requests, and check Actions runs in repositories you can access. It runs remotely at https://api.githubcopilot.com/mcp/ with OAuth or a personal access token, or locally with Docker.

Maintainer
GitHub (official)
Licence
MIT
Runs
Remote (URL)
Sign-in
OAuth sign-in in the app
Registry version
2.3.0 (updated 2026-11-24)
Last activity
2026-10-13

Overview

What can the GitHub MCP server do?

GitHub’s own MCP server connects an assistant to the GitHub API. GitHub hosts a remote version at api.githubcopilot.com that signs you in with OAuth or accepts a personal access token in an Authorization header. A local version runs as a Docker image (ghcr.io/github/github-mcp-server) or a Go binary, and reads a token from GITHUB_PERSONAL_ACCESS_TOKEN or signs you in through the browser on first use.

Tools are grouped into toolsets such as repos, issues, pull_requests, actions, code_security, dependabot, discussions, projects and governance. Only context, repos, issues, pull_requests and users load by default, which keeps the tool list short. Pick it when you want an assistant to triage issues, review or open pull requests, or explain a failing workflow without leaving the editor. Extra toolsets are switched on with a flag, an environment variable or a URL path, and adding /readonly to any remote URL exposes read tools only. GitHub Enterprise Server and ghe.com hosts are supported with the local server.

Tools

Tools it gives the assistant

  • Browse repositories, files, branches and commits
  • Create, update and comment on issues
  • Open, review and merge pull requests
  • List GitHub Actions workflows, runs and job logs
  • Read code scanning, secret scanning and Dependabot alerts
  • Work with Discussions, Gists, Projects and notifications
  • Manage repository rulesets and custom properties (governance toolset)

Install

How do I install GitHub MCP in Claude Code, Cursor or VS Code?

You need:

  • A GitHub account
  • An MCP client with remote server support (OAuth needs a client that has registered a GitHub or OAuth app; any remote-capable client can use a personal access token instead)
  • Docker, only if you run the local server

Run in your project. --scope local keeps the servers private to you in this project; use user for every project.

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

Need another app? Open GitHub MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.

Is the GitHub MCP server safe? Check before you install

  • With the default toolsets the assistant can create issues, comment, and open or merge pull requests in any repository your account can write to. Use a fine-grained token limited to the repositories and permissions you need.
  • For read-only use, add /readonly to the remote URL, or run the local server with --read-only (GITHUB_READ_ONLY=1 in Docker).
  • Issue, pull request and comment text from public repositories can carry prompt injection. Lockdown mode (--lockdown-mode or GITHUB_LOCKDOWN_MODE=1) filters content from people without push access, but GitHub notes it is not an access boundary.
  • A remote server sees whatever the assistant sends it. Sign in with the narrowest access the service offers. See how to choose a safe server.

FAQ

GitHub MCP questions

Is the GitHub MCP server official?

Yes. GitHub publishes and maintains it, under the MIT licence. Install it only from the source linked on this page, not from a copy in another directory.

Is GitHub MCP server remote or local?

Remote. Your MCP app connects to https://api.githubcopilot.com/mcp/ over HTTP, so nothing runs on your machine and the service sees the requests the assistant sends.

Does GitHub MCP server need an API key or account?

Yes, a sign-in. Your MCP app opens an OAuth sign-in to the service the first time it connects, and the server then acts with that account’s permissions. You also need: A GitHub account; An MCP client with remote server support (OAuth needs a client that has registered a GitHub or OAuth app; any remote-capable client can use a personal access token instead); Docker, only if you run the local server.

Why it’s listed

Why we list it

The vendor’s own server for the most widely used code host, with toolsets and read-only and lockdown modes that let you scope what an assistant can do.

Related

All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?