GitHub MCP Server
Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.
30-second check: should it make your shortlist?
GitHub's own official MCP server — not the archived MCP-org reference server. Ships…
Local + cloud · MCP server
Not checked
Read the original licence before commercial useDirect in mainland · Not in filing list
These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.
Information not confirmed
- The "dynamic tool discovery" capability (a
--dynamic-toolsetskind of thing): not stated in the current official README or docs (checked seven pages: README, server-configuration.md, remote-server.md, insiders-features.md, feature-flags.md, streamable-http.md, scope-filtering.md); the only runtime-adjustable mechanisms are Feature Flags (--features/X-MCP-Features) and Insiders mode - A tool-level human approval mechanism (not stated officially; the official docs offer only three narrowing controls: read-only / lockdown / OAuth challenges)
- SLA / rate-limit details of the hosted form (neither README nor remote-server.md gives numbers)
- The complete lockdown filtering matrix across tools (the official docs list only a few branches under issue_read / pull_request_read)
- Quota and operational details of the self-hosted HTTP mode behind a reverse proxy (the official docs give config knobs, no capacity numbers)
GitHub's official MCP server (repository description: "GitHub's official MCP Server"). It connects any MCP client to GitHub's platform: reading repositories and code files, managing issues and PRs, monitoring Actions, inspecting code-scanning / Dependabot findings, and reading notifications.
Two forms. The remote hosted server (https://api.githubcopilot.com/mcp/, Streamable HTTP) is "hosted by GitHub and provides the easiest method for getting up and running... no local setup or runtime required." The local server runs as an stdio process via Docker (ghcr.io/github/github-mcp-server) or a Go binary; GitHub Enterprise Server is only supported locally.
Toolsets are the headline mechanism: enable only what you need to help the LLM pick tools and shrink context. Default toolsets are context, repos, issues, pull_requests, users; 20+ groups exist in total, and the remote server adds extras (Copilot Spaces, Support Docs Search, create_pull_request_with_copilot).
Two caution notes. read-only mode is a "strict security filter" that takes precedence over everything else (write tools are skipped even if explicitly requested). Lockdown mode is explicitly "a best-effort content filter... not an authorization boundary."
Auth is OAuth (with scope challenges on the remote server) or a PAT (classic PATs get startup scope filtering; fine-grained PATs are not filtered). MIT licensed. Repository metadata (checked 2026-10-08): 33,446★, Go, latest release v2.0.2.
When to use it, when not to
Anyone who wants their MCP client (VS Code, Claude Desktop, Cursor, Windsurf, Codex, Gemini CLI, etc.) to work with GitHub in natural language — reading code and repo structure, managing issues and PRs, watching Actions, triaging code-scanning / Dependabot alerts. Users who do not want to run anything locally — pick the remote hosted form. GitHub Enterprise Server users, or anyone needing self-hosted HTTP / offline-controllable setups — pick the local form. Security-conscious setups that want read-only mode, toolset trimming and lockdown filtering.
China availability domestic / direct access / CAC filing · snapshot 2026-10-23
- Origin
- foreign-made foreign entity (no matching filing entity in the CAC registry).
- Direct access
- direct OK Hosted on GitHub — direct reachability from mainland fluctuates (200/000 mixed on the same day); npm / PyPI install routes measured stable.
- CAC filing
- not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.
Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
11 questions, one table
11 questions, each comparable item by item with its peers.
- Model & openness
It calls no model itself. It is an interface implementation called by clients — which model to pick is the client's business.
It wraps GitHub platform capabilities as MCP tools: repositories, issues, PRs, Actions, code scanning, etc. Two details:
- Tool schemas return typed
structuredContenton protocol version2026-07-28and later; older clients fall back to plain text
- Tool descriptions can be overridden via
github-mcp-server-config.jsonorGITHUB_MCP_*environment variables (useful for localization)
- Tool schemas return typed
- Where it runs
Two run forms: remotely hosted, or a local process.
Remote hosting is operated by GitHub itself, endpoint
https://api.githubcopilot.com/mcp/.The local form runs three ways:
- Docker image
ghcr.io/github/github-mcp-server - A
go buildbinary - Its built-in HTTP mode
github-mcp-server http(default port 8082)
⚠ GitHub Enterprise Server does not support remote hosting (stated explicitly by the official docs). Only the local form works.
ghe.comcan use remote hosting, but on a separate endpoint.The official wording on the remote form: "the easiest method for getting up and running" "no local setup or runtime required"
- Docker image
- Local files
It never touches your local file system.
It operates on the GitHub platform: remote repositories, issues, PRs. It has no direct relation to your local git repositories. For local git operations see this site's git entry.
The only capability close to "files" is operating on remote repository content:
get_file_contents— read a file or directorycreate_or_update_file/push_files— write filesdelete_file— delete a file
The scope is repos/branches on GitHub. The container form needs no local repository mount either.
- Tasks after shutdown
The remotely hosted form is independent of your client process. The service lives on GitHub's side; it stays online when you shut down.
The local form lives and dies with the client — the stdio child process stops on exit. The self-hosted HTTP mode is a resident service you operate yourself, i.e.
github-mcp-server httpbehind a reverse proxy.⚠ It offers no "background task resumption" semantics. Its modes are stateful HTTP / stdio sessions; there is no official checkpoint-resume mechanism. "Always on" refers to the availability of the remotely hosted form — and that availability depends on GitHub's service status.
- Tools & extensions
Toolsets are the core mechanism of this entry.
Narrowing capability has four layers of control:
--toolsets/GITHUB_TOOLSETS(remote: theX-MCP-Toolsetsheader, or the/x/{toolset}path)--tools/GITHUB_TOOLS— down to the individual tool--exclude-tools— exclude tools- In the remote form each toolset has its own URL, easy to combine per scenario
The default toolsets are 5 groups: context · repos · issues · pull_requests · users.
Another 20+ groups can be enabled: actions · code_security · dependabot · discussions · gists · git · governance · labels · notifications · orgs · projects · secret_protection · security_advisories · stargazers · code_quality · copilot, etc.
The remote form also has exclusive toolsets, e.g. Copilot Spaces and GitHub Support Docs Search.
- Context & memory
No cross-session memory. Each session is independent. State lives on the GitHub platform itself (persistent state of repos, issues, PRs), not in the server.
One official-specific context control exists. In Insiders mode
list_*tools can return CSV (thecsv_outputfeature flag), used to compress list-type responses.⚠ That is a response-format optimization, not a memory mechanism.
The official wording: "reduce response context for agents"
The README provides no built-in memory or retrieval layer.
- Permissions & limits
Permissions are determined by the GitHub token; the official docs add three narrowing controls.
- ① read-only mode —
--read-only/GITHUB_READ_ONLY/X-MCP-Readonly - ② lockdown mode —
--lockdown-mode/X-MCP-Lockdown - ③ scope filtering — classic PATs hide tools the token lacks at startup; OAuth uses on-demand scope challenges
read-only is an enforced filter with the highest precedence: even if you explicitly request write tools, they get disabled.
⚠ lockdown is not an authorization boundary. The official docs state it is only a best-effort content filter (filtering content produced by users without push access in public repositories); it does not change what the underlying credential can read or write.
Write and delete capabilities are complete: create / update / delete file,
push_files,merge_pull_request,create_repository,delete_repository, etc. High-risk tools require on-demand authorization (e.g. thedelete_reposcope).The official docs call read-only a "strict security filter"
- ① read-only mode —
- Best for
In one sentence: it lets any MCP client operate GitHub in natural language.
Clients include VS Code, Claude Desktop, Cursor, Windsurf, Codex, Gemini CLI, etc. What it can do: read code and repository structure, manage issues and PRs, monitor Actions. It can also check code scanning / dependabot security alerts and read notifications.
The remotely hosted form suits people who do not want to operate it themselves. The local Docker form suits: GitHub Enterprise Server users · people who need self-hosted HTTP · people who want offline control.
Not a fit for two kinds of scenarios. First, operating the local file system — that is the filesystem / git server's job. Second, scenarios needing cross-session memory.
- Transport
Two forms: local stdio, or remotely hosted HTTP.
The local form uses stdio, two ways to run: the Docker image
ghcr.io/github/github-mcp-server, or thegithub-mcp-server stdiobinary.The remotely hosted form uses Streamable HTTP, endpoint
https://api.githubcopilot.com/mcp/.You can also self-host the HTTP mode (
github-mcp-server http), with OAuth metadata endpoints and scope challenges.The remote form accepts URL path modifiers:
/readonly— read-only/insiders— insider features/x/{toolset}— expose only one toolset- These can be combined
⚠ The permission boundary differs between forms and must be configured separately.
Verified against: the official README and remote-server.md (2026-10-08)
- Authentication
Local stdio has three authentication methods.
- Browser OAuth — on github.com the official mirror ships app credentials; the token is kept in memory only
- PAT — environment variable
GITHUB_PERSONAL_ACCESS_TOKEN, takes precedence over OAuth - GitHub App — for non-interactive stdio
Remote hosting has two: OAuth (using GitHub credentials, with on-demand scope challenges when a scope is missing), or a PAT (the
Authorization: Bearerheader).⚠ An easy trap: the two PAT kinds behave differently.
- Fine-grained PATs (
github_pat_) do no scope filtering — all tools are shown, permissions are enforced API-side
- Only classic PATs (
ghp_) hide tools by scope at startup
GitHub Enterprise Server / ghe.com require your own OAuth App or GitHub App.
- Permission scope
The scope is the permission range of the GitHub token — it can read, and also write and delete.
Three layers can narrow it: read-only mode enforces read-only (highest precedence) · toolsets trimming shrinks the exposed surface · lockdown mode filters untrusted content (⚠ the official docs stress it is not an authorization boundary).
Write / delete capabilities are complete, for example:
- Files:
create_or_update_file/push_files/delete_file - Repositories:
create_repository/delete_repository(requiresdelete_repo) - PRs:
create_pull_request/merge_pull_request - Others:
label_write/projects_write/create_repository_ruleset
There is no independent approval mechanism.
delete_repositorygoes through multi-round confirmation, but that is interactive elicitation, not an approval layer — do not treat it as one.- Files:
Top misconception
- Mistaking it for the archived reference server in the MCP org — that one lives in
servers-archived; this is GitHub's official, actively maintained product line - Treating lockdown mode as a security boundary — the official text says it is best-effort content filtering and does not change what the credentials can read or write
- Assuming read-only is merely a default — it is enforced filtering: write tools stay disabled even when explicitly requested with
--tools
Evidence sources
Checked 2026-10-23,Content updated 2026-10-08。This is the date of the entry, not a claim that every field was rechecked that day.
| Type | Name | Link |
|---|---|---|
| repo | github/github-mcp-server · repository (33,871★, MIT, rolling re-check 2026-10-23) | https://github.com/github/github-mcp-server |
| docs | Main README (remote/local two forms, full toolsets table, read-only / lockdown, i18n overrides, authentication) | https://github.com/github/github-mcp-server/blob/main/README.md |
| docs | Remote Server docs (remote endpoint api.githubcopilot.com/mcp/, URL path modifiers, X-MCP-* headers) | https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md |
| docs | Server Configuration guide (configuration matrix for toolsets / tools / exclude / read-only / lockdown / insiders / scope filtering) | https://github.com/github/github-mcp-server/blob/main/docs/server-configuration.md |
| docs | PAT Scope Filtering (classic PAT hides tools by scope, OAuth scope challenge, fine-grained PAT no filtering) | https://github.com/github/github-mcp-server/blob/main/docs/scope-filtering.md |
| docs | Streamable HTTP Server (self-hosted HTTP mode, OAuth metadata endpoints, scope challenge) | https://github.com/github/github-mcp-server/blob/main/docs/streamable-http.md |
| docs | Insiders Features (CSV output compressing list responses, experimental feature flags) | https://github.com/github/github-mcp-server/blob/main/docs/insiders-features.md |
| changelog | Releases (latest v2.0.2 @ 2026-10-08) | https://github.com/github/github-mcp-server/releases |
Test notes
This site has not completed measured runs. The test protocol is at protocols/mcp/_protocol.md.
Suggested measurement: the focus for this server is "can it be reined in" —
| # | What to test | Why it is worth testing |
|---|---|---|
| 1 | With only the repos toolset + read-only, are write tools really disabled | The official docs claim read-only has the highest precedence; needs verification |
| 2 | Under lockdown, is content from unauthorized users' issues really filtered | The official docs already say it is not a security boundary; verify its actual strength |
| 3 | Tool-visibility differences between classic PAT vs fine-grained PAT | The official docs say fine-grained PATs do no scope filtering — easily misread as "identical permissions" |
| 4 | Toolset differences between remote hosting and local Docker (Copilot-exclusive tools) | The two forms expose different tool surfaces; confirm before choosing |
| 5 | Prerequisites of delete_repository's multi-round confirmation in HTTP mode | Requires GITHUB_MCP_SERVER_MRTR_STATE_KEY to be configured, otherwise the tool is not exposed |
⚠ First, the easiest mix-up to clear up
It is not the archived reference server from the MCP organization. The original github reference server was archived to servers-archived, while this entry refers to GitHub's own repository github/github-mcp-server — actively maintained (rolling re-check 2026-10-23: latest release v2.0.3 @ 2026-10-21), MIT, 33k+ stars.
The reason for fixing this entry is direct: the two entries share a name, and searching "github mcp server" hits both "the archived reference implementation" and "GitHub's official active product", whose capabilities and maintenance status are completely different.
The two forms
| Remotely hosted | Local | |
|---|---|---|
| Endpoint / command | https://api.githubcopilot.com/mcp/ | Docker ghcr.io/github/github-mcp-server / github-mcp-server stdio |
| Transport | Streamable HTTP | stdio |
| Who operates it | GitHub | You |
| Authentication | OAuth / PAT | OAuth (browser, token in memory only) / PAT |
| Prerequisite | The client supports remote MCP | Docker or the Go binary |
| GHES | Not supported | Supported (--gh-host / GITHUB_HOST) |
The official positioning of the remote form, original wording: "the easiest method for getting up and running", "no local setup or runtime required"; the local form is the fallback for clients that do not support remote MCP / for GHES.
Toolsets: the design most worth talking about in this server
Only 5 groups load by default (context / repos / issues / pull_requests / users); the rest must be enabled explicitly — the official rationale is "helping LLMs choose tools and reducing context". The configuration quartet:
--toolsets/GITHUB_TOOLSETS(remote: theX-MCP-Toolsetsheader or the/x/{toolset}URL)--tools/GITHUB_TOOLS(down to the individual tool)--exclude-tools/GITHUB_EXCLUDE_TOOLS(exclusions; takes precedence over the previous two)- The special value
allenables every toolset
Remote and local toolsets are not identical: remote additionally has Copilot Spaces and GitHub Support Docs Search, plus the create_pull_request_with_copilot tool that invokes the Copilot coding agent.
read-only and lockdown: two switches easy to overestimate
| Mode | Switch | Official characterization |
|---|---|---|
| read-only | --read-only / X-MCP-Readonly | strict security filter, highest precedence; explicitly requested write tools still get disabled |
| lockdown | --lockdown-mode / X-MCP-Lockdown | best-effort content filter, not an authorization boundary |
The official docs are concrete about lockdown's boundary. It reduces exactly one prompt-injection risk: content produced by users without push access in public repositories. It does not change what the underlying credential can read or write. Content hidden from filtered responses may still be reachable through other tools, or by calling the GitHub API directly (github-actions[bot] and copilot are exceptions, always treated as trusted).
Authentication and permissions: the token decides everything
- Classic PAT (
ghp_): at startup, tools the token lacks are hidden based onX-OAuth-Scopes. - OAuth (remote): no pre-hiding; instead a scope challenge — when a tool missing a scope is used, authorization is requested on demand.
- Fine-grained PAT (
github_pat_) / GitHub App: no tool filtering; everything is shown; permissions are enforced by the GitHub API side.
The official credential best practices: minimal scopes (repo / read:packages / read:org), separate tokens per environment, regular rotation, no hardcoding. Some hosts such as Windsurf can only hardcode, and the official docs call out that exception too.
Verification notes
The basis for confidence: partial (2026-10-08):
All eight dimensions and the three mcp dimensions carry conclusions, but in two places the official docs themselves have no content, leaving only "not stated officially": so-called "dynamic tool discovery" cannot be found in current official docs (see unknowns). The official docs also provide no tool-level approval mechanism. These are not evidence gaps but things the official side currently does not provide, which is why it cannot be raised to verified.
Official pages verified on 2026-10-08: README (two forms, the full toolsets table, authentication, read-only / lockdown, i18n overrides), docs/remote-server.md (endpoint, URL modifiers, X-MCP-* headers), docs/server-configuration.md, docs/scope-filtering.md, docs/streamable-http.md, docs/insiders-features.md, docs/feature-flags.md; repository metadata verified via the GitHub API (33,871★, MIT, Go, last push 2026-10-22, latest release v2.0.3; rolling re-check 2026-10-23).
Related entries
- Git MCP ServerThe entry to contrast most: the git server does local repository operations only, with no push/PR, and explicitly notes the original github reference server is archived; this entry is precisely the official replacement for that "remote GitHub operations" role.
- Filesystem MCP ServerScope/permission-design contrast: filesystem is a local directory allowlist; github-mcp is a remote GitHub token scope.
- Context7Same-kind contrast: Context7 is purely remotely hosted with no local permission risk; github-mcp is a "local + remote" dual form with full write/delete capability.
- GitHub CopilotOther layer · AI coding
Same-category peers
Look at these three before reading further
Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.
| Object | Where | Licence | Evidence / status | What it is for |
|---|---|---|---|---|
| 1Password Environments MCP Server | Local / self-hosted | Open licence | 8 questions checked Active | 1Password official Environments MCP server (local stdio, rides the deskt |
| Atlassian Remote MCP Server(Jira/Confluence) | Cloud / API | Commercial terms | 8 questions checked Active | Atlassian's official Remote MCP server: one endpoint covers Jira + Confl |
| Brave Search MCP Server | Local / self-hosted | Open licence | 8 questions checked Active | Brave's official search MCP server (MIT): an independent retrieval sourc |
Same vendor
More from GitHub
One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.
This page is generated from the ai-handbook data layer (CC BY 4.0).
For the judging criteria and method notes, see METHODOLOGY.md.