Skip to content

GitHub MCP Server

Manage repositories, issues, pull requests and Actions on GitHub from Claude.

Officialby GitHubHosted or on your computerChecked November 8, 2026

The GitHub MCP server is GitHub's own connector that lets Claude read and change repositories, issues, pull requests and Actions runs through the GitHub API. GitHub says it is available to every user on any plan, either as a hosted endpoint at api.githubcopilot.com or as an open-source server you run in Docker or as a binary. Out of the box it loads five toolsets (context, repos, issues, pull requests and users), and you can switch it to read-only or add others such as Actions and code security.

Who is GitHub MCP for?

  • Developers and small teams who host code on GitHub
  • Maintainers triaging issues and reviewing pull requests
  • Anyone chasing a failed GitHub Actions run

What can you ask GitHub MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
List the open issues labeled bug in my-org/my-repo and summarize the three oldest.
Prompt 2
Read pull request 128 in my-org/shop-site, summarize what it changes and list anything that looks risky before I merge it.
Prompt 3
Why did the last GitHub Actions run on main fail? Show me the log of the failing step.

How to connect GitHub to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, ChatGPT, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the GitHub MCP server to Claude Code for me: run this command: claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'

Type /mcp inside Claude Code, pick the server and choose Authenticate to sign in.

Hosted address: https://api.githubcopilot.com/mcp/

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

This is the add-json form GitHub's guide gives for Claude Code 2.1.1 and newer (checked November 22, 2026). On older versions, or if add-json returns Invalid input on Windows, use: claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_GITHUB_PAT". Keep your token out of files you share or commit, such as a project's .mcp.json.

How did we check GitHub MCP?

On November 8, 2026 we read the GitHub repo through the GitHub API (MIT, 34,321 stars, release v2.1.0 on November 3, 2026), its Claude install guide, its remote server and configuration docs, and GitHub's docs page on using the server. A plain MCP request to the hosted address returned 401 with an OAuth challenge, which means the endpoint is live and expects a sign-in.

Source: github.com/github/github-mcp-server

What do people ask about GitHub MCP?

Is the GitHub MCP server free?

Yes. GitHub's docs say it is available to all GitHub users regardless of plan. A tool that drives a paid feature, such as handing work to Copilot's cloud agent, needs the same paid plan as that feature.

Should I use the hosted GitHub server or run it in Docker?

Hosted is simplest in Claude Code, Cursor and VS Code: one address and nothing to install. GitHub's Claude guide says the hosted server cannot be added as a custom connector in Claude Desktop, because it needs OAuth through a registered GitHub app, so Desktop users run the Docker image or the release binary.

How do I stop Claude from changing my repositories?

Turn on read-only mode. On the hosted server use https://api.githubcopilot.com/mcp/readonly or send the X-MCP-Readonly header; on your own computer start it with --read-only or set GITHUB_READ_ONLY=1. Only the tools that read are then offered.

Do I still need a personal access token?

Not for the local server: it can sign you in through the browser on first use and keeps that token in memory only, while a token still works and takes priority. GitHub's Claude Code guide for the hosted address passes a token in an Authorization header. A classic token needs at least the repo, read:org and read:packages scopes.

Can it work on a repository that is only on my computer?

No. It talks to github.com through the API: issues, pull requests, Actions and alerts. For a local folder with no GitHub account, use the Git reference server from this directory, which handles status, diffs, branches and commits.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Using servers like GitHub from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.