The GitHub MCP server is GitHub's official MCP server: point your agent at https://api.githubcopilot.com/mcp/, authenticate with your GitHub account, and it reads files, commits, pull requests and issues on every repository your token can reach. Two limits are worth knowing before you rely on it. A diff is read one commit or one pull request at a time, and every person who asks needs GitHub credentials of their own.
This guide is for developers, and for the CTO who decides what the rest of the company gets. Every fact about the server comes from the github/github-mcp-server repository, checked on 17 November 2026; reread the current version before you rely on a detail.
Keep one question in mind as you read: “What changed in the product?” It decides whether this server is enough for you. Here it is, asked through DeployIt by someone who holds no GitHub access.
What changed this month in the checkout flow?
Three deliveries. Payment in three instalments is offered from a €150 basket. The delivery address is validated before payment, no longer after. The promo code can be entered on the basket page.
How do you set up the GitHub MCP server?
There are two ways to run it. The remote server is hosted by GitHub, with nothing to install:
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" }
}
}
}
- Cursor: that block goes in
~/.cursor/mcp.json, then restart. The install guide asks for Cursor v0.48.0 or newer. - VS Code: version 1.101 or greater, which can sign in with OAuth instead of a token.
- Claude Desktop: the install guide says the remote server is not currently supported there, and points to the local setup.
- Claude Code (2.1.1 or newer): one command, run in the terminal.
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
The local server runs on your machine from the public image ghcr.io/github/github-mcp-server. It is the only route on GitHub Enterprise Server, which the remote server does not serve. It signs in through a browser OAuth login whose token is kept in memory only, or with a personal access token in GITHUB_PERSONAL_ACCESS_TOKEN, which takes precedence.
One setting is useful from the first day. The server groups its tools into toolsets, more than twenty of them in the remote server's documentation; five are on by default: context, repos, issues, pull_requests and users. Set your own list with GITHUB_TOOLSETS="repos,pull_requests" locally, or with a toolset address on the remote side, such as https://api.githubcopilot.com/mcp/x/repos.
What does the GitHub MCP server answer well?
On a repository your token can reach, the agent becomes capable. A few questions it handles without trouble:
- “Where is VAT calculated?” Code search, then file reads.
- “What does PR 412 do, and who reviewed it?” The pull request, its reviews, its commits, its diff.
- “List this week's commits on
main.” A date-filtered list, up to a hundred per page. - “Is the
mainbuild green?” With theactionstoolset switched on. - “Any open Dependabot alerts?” With the
dependabottoolset.
For a developer with access, that is a clear gain: a repository stops being something you read and becomes something you query. If that is your whole need, stop here and install it.
Why does “what changed this week?” go wrong? The call log
It answers that one badly. Not because it is forbidden: because it is expensive. Follow the calls the agent has to make (the numbers are an example; swap in your own and the shape holds).
- The agent calls
list_commitswithsinceset to Monday. It gets 40 commits: SHA, author, date, message. - It reads the messages. Twelve say something (“add CSV separator option”); twenty-eight say “fix”, “wip”, “review comments”.
- To learn what those twenty-eight did, it needs the diffs. It calls
get_commit, one commit at a time. - By default,
get_commitreturns thestatslevel: file names and line counts, no content. - The content takes an explicit parameter,
detail: "full_patch", and the documentation warns that it “can be very large”. - Twenty-eight full patches do not fit in the context window. The agent truncates, gives up, or answers from the twelve readable messages.
What comes back looks like an answer. It lists what the commit messages already said.
Reading by pull request (pull_request_read, method get_diff) changes the unit, not the arithmetic: one diff per call, and nothing that turns forty of them into a list of behaviour changes. You often read that this server only sees metadata. That is wrong: it sees diffs, and serves them whole on request. What it does not do is aggregate.
Better commit messages help, and a team that enforces them gets decent answers from the list alone. But a message says what its author meant to do, not what the code does now. A fix typo that changes a default value stays a fix typo in the list.
Who can ask? One credential per person
The first limit yields to patience. The second does not move.
The GitHub MCP server acts with the rights of the token it is given. Every person who wants to ask a question therefore needs repository access of their own. For a developer, that is one more token in a configuration file. For support, customer success, product or sales, it is a wall, and it should be: few companies open their repositories to answer questions about the product.
How do you narrow what the server can do?
If you install it, install it tight. Three settings, all documented:
--read-only, orGITHUB_READ_ONLY=1in Docker: the server offers read tools only. The flag takes priority: a write tool requested by name is still skipped.- Read-only addresses on the remote side, such as
https://api.githubcopilot.com/mcp/x/issues/readonly, or theX-MCP-Readonlyheader. - The toolset list above, or a list of named tools with
--tools.
An agent that answers questions needs no write access at all.
Beyond the GitHub MCP server: what DeployIt does here
The two limits describe what is missing: something that has already read the code and what landed in it, and that answers people who hold no access to the repository.
DeployIt is an MCP server. Your company gets one link, https://mcp.deployit.ai/<company>/<code>; each person adds it to Claude (on the web, on the desktop or in Claude Code) and signs up with a name and an email, which is not verified; their questions are logged under that name. Everyone starts with the Everyone profile: questions about the product, answered from the code; a filter removes the code, the file paths and the names of team members it recognises from the answers, without proving their absence, and a leak test tells you what still gets through. An administrator gives the Developers profile (excerpts) or the Leadership profile (developer statistics) to whoever needs it. Repositories are connected from GitHub or GitLab; DeployIt makes no commit, branch or pull request, and only adds one webhook per repository.
The weekly question goes to the recent_changes tool: what landed on the tracked branch over 1 to 90 days, grouped into deliveries, with no person's name. A question about behaviour goes to ask_code, which investigates the code and labels its answer: Verified, Backend only, Not found or Inconclusive.
DeployIt reads your repository too, and you should know on what terms. A working copy of the code is kept while a repository is connected, hosted by DigitalOcean in London (UK); at indexing, each source file is sent to the model to be summarised, then the passages needed for an answer and the diffs of the commits that are scored; OpenAI's models by default, or the provider whose key you bring. Removing the repository from DeployIt erases that copy; the full path is on the security page.
The two tools live together. Keep the GitHub MCP server in your editor, where it shines: one developer, real credentials. DeployIt covers the people who hold none, and the questions that span a release. To compare the routes, read connect Claude to your GitHub repo: three ways, and who sees what and Claude project knowledge vs an MCP server; the whole product is in DeployIt: ask your code from Claude.
To judge the difference on a real exchange, add the demo address below to your Claude connectors and ask “What changed this week?”. Then connect your own repositories and add your company link to Claude in three steps.
Price. Free plan: 15 questions a week for the whole company. A 30-day trial, no card. Plans from €290 a month excluding tax for up to 25 tracked developers: see pricing.
Ask your code from Claude
30-day trial, no card. Or try the demo first: add https://mcp.deployit.ai/demo to your Claude connectors.
Frequently asked questions
What is the GitHub MCP server?
It is GitHub's official MCP server: it gives an AI agent tool-based access to the GitHub API, on the repositories your account can reach. A remote version is hosted by GitHub at api.githubcopilot.com/mcp/, and a local version runs from a public Docker image. Checked on 17 November 2026 in the github/github-mcp-server repository.
Should I use the remote or the local GitHub MCP server?
The remote one by default: GitHub hosts it and there is nothing to maintain. The local one on GitHub Enterprise Server, which the remote server does not serve, or with Claude Desktop, for which the install guide points to Docker. Both accept a list of toolsets and a read-only mode.
Can the GitHub MCP server read diffs?
It can. The get_commit tool returns per-file statistics by default, and the full patch when its detail parameter is set to full_patch; a pull request's diff is read with pull_request_read. Each diff is one call, and the documentation warns that a full patch can be very large.
Can a support or product team use the GitHub MCP server?
Only if each person holds GitHub credentials on the repository, because the server acts with the rights of the token it is given. Most companies do not open their code to support or sales. With an answers layer such as DeployIt, those people sign up from Claude and ask without any access to the repository.
How is the GitHub MCP server different from Claude's GitHub integration?
Claude's GitHub integration syncs the names and contents of the files of one branch into a chat or a project, without commit history or pull requests. The GitHub MCP server calls the GitHub API through tools: commits, pull requests, issues, code search. Both act with one person's GitHub access (Claude Help Center and the github/github-mcp-server repository, checked on 17 November 2026).
Continue reading
How to connect Claude to a private GitHub repo without sharing the code
For a CTO: two ways to connect Claude to a private GitHub repo. Claude's own connector hands the files to whoever connects, with that person's GitHub access; one company link gives each person a profile and, with the Everyone profile, answers from which a filter removes the code (filtered and tested). The steps, in order.
MCP server security testing: how a leak test works, and how to read it
For a security lead or a CTO: most MCP server security testing checks who gets in. A leak test checks what gets out: trap questions fired at each profile that must not see code, a sorted report, and a warning that blocks nothing.
DeployIt: ask your code from Claude, and follow each developer's work
For the person who decides, CTO, CEO or head of product: the whole of DeployIt in one read. One link for your company's Claude, answers from the code without giving access to it, statistics on each developer, what happens to your code, and the price.