GitHub MCP server: what it does and how to limit it
This page covers github/github-mcp-server v2.3.0, released November 24, 2026.
On a local official GitHub MCP server, pass --read-only or set GITHUB_READ_ONLY to 1. On the remote server, use a URL that ends in /readonly, such as https://api.githubcopilot.com/mcp/readonly, or send the header X-MCP-Readonly. The README says read-only mode skips write tools even when you name them with --tools.
The short answer
The repository github/github-mcp-server is published by the GitHub organization. Its repository description is GitHub's official MCP Server. It lets an AI tool read repositories and work with issues, pull requests, and workflows. You can use the copy GitHub hosts, or run a local copy from the container image or a binary.
Limit it in two more places. Use a token with only the permissions you mean to grant. Turn on only the toolsets you need.
OpsMCP lists it as a provisional D, 45. The tool list was not stored, so tool capability was not scored. The listing is on the GitHub MCP server page, and the system page is /systems/github.
What the official server does
The README says the server connects AI tools to GitHub's platform so they can read repositories and code files, manage issues and pull requests, analyze code, and automate workflows.
When you do not name toolsets, the default set is context, repos, issues, pull_requests, and users. The README lists more sets you can add, including actions, code_security, dependabot, discussions, gists, orgs, and projects. The special name all turns every set on. The name default keeps the default set, and you can add to it, as in GITHUB_TOOLSETS="default,stargazers".
If both the flag and the variable are set, GITHUB_TOOLSETS wins over --toolsets.
Remote server or a local one
The remote server is hosted by GitHub at https://api.githubcopilot.com/mcp/. The README says it is the easiest way to start, and that you need a host that can use a remote server, such as VS Code 1.101 or later, Claude Desktop, Cursor, or Windsurf. The remote doc says this hosted server is built from the repository and bound into GitHub's own infrastructure, which they update to the latest code.
Sign in with OAuth when the host app has a GitHub App or OAuth App set up for that. Or send a personal access token in an Authorization header on the remote URL. On a local server, set GITHUB_PERSONAL_ACCESS_TOKEN. The README says that variable takes precedence over OAuth.
The remote server has tools the local one does not. The remote doc names create_pull_request_with_copilot. Its toolset table adds copilot_spaces and github_support_docs_search as remote-only sets.
A local server runs on your machine. The image is ghcr.io/github/github-mcp-server. The registry record checked on November 22, 2026 names ghcr.io/github/github-mcp-server:2.2.0 with stdio, and the same record lists the remote URL. You can also build the binary and start it with github-mcp-server stdio.
GitHub Enterprise Server does not support the remote host. The README points those installs at the local server section. GitHub Enterprise Cloud with data residency uses its own remote URL, such as https://copilot-api.octocorp.ghe.com/mcp in the README example.
Least privilege: token, toolsets, read-only
The README's token section says to grant only the permissions you need. Under minimum scopes it names three classic scopes: repo, read:packages, and read:org. Those are classic personal access token scopes, not a fine-grained permission list.
Fine-grained tokens work differently. The scope-filtering doc says classic tokens (the ghp_ prefix) are checked at startup, and tools that need a scope the token lacks are hidden. Fine-grained tokens (the github_pat_ prefix), GitHub App installation tokens, and server-to-server tokens do not support that check, so every tool is shown. The API still enforces the token. A tool you can see can still fail. For org-owned Copilot Spaces, the README says a fine-grained token must be installed on the organization and include organization_copilot_spaces: read.
Toolsets are the next cut. Pass an allow list:
github-mcp-server --toolsets repos,issues,pull_requests Or set GITHUB_TOOLSETS to the same comma-separated list. On the remote server, send the header X-MCP-Toolsets. The remote doc says an empty list uses the default sets, and unknown set names are ignored. X-MCP-Tools names single tools. An unknown tool name stops the server from starting. You can also exclude named tools with --exclude-tools, GITHUB_EXCLUDE_TOOLS, or X-MCP-Exclude-Tools. The configuration doc says an excluded tool stays out even if its set is on.
Read-only mode is the hard cut for writes. Locally:
docker run -i --rm \
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
-e GITHUB_READ_ONLY=1 \
ghcr.io/github/github-mcp-server The flag form is --read-only. The README says write tools are skipped if read-only mode is set, even when --tools names them. On the remote server, add /readonly to the URL, or send X-MCP-Readonly. The default read-only URL is https://api.githubcopilot.com/mcp/readonly. A single set can be read-only too, such as https://api.githubcopilot.com/mcp/x/issues/readonly. The header is false for empty, false, f, no, n, 0, or off. Any other value turns it on.
Lockdown mode is a separate switch, not a substitute for read-only mode. The README says it limits content from public repositories when the author lacks push access, and that it does not change what the GitHub credential can read or write. The flag is --lockdown-mode. The Docker variable is GITHUB_LOCKDOWN_MODE. The remote header is X-MCP-Lockdown, and it cannot turn lockdown off if the operator already enabled it. Content from github-actions[bot] and copilot is not filtered.
Advisories
The repository's advisory list had two published advisories when checked on November 27, 2026. This page stays at a high level. Read each advisory for the technical write-up. Do not report new vulnerabilities in a public issue. SECURITY.md says to email the address on that page.
Lockdown cache in HTTP mode (GHSA-pjp5-fpmr-3349)
GHSA-pjp5-fpmr-3349 is CVE-2026-48529. GitHub labels it medium. The advisory's CVSS score is 6.0. It was published June 9, 2026.
The affected range on that page is versions from 0.22.0 up to but not including 1.1.2. The patched version is 1.1.2. In plain language from the advisory: with HTTP mode and lockdown mode on, one shared cache keeps the first user's GraphQL client, and later users' lockdown checks can run with that first client. OSV lists the same fix, 1.1.2. The v1.1.2 release was published May 29, 2026.
Nil pointer in completion (GHSA-w4q6-qw23-4rg7)
GHSA-w4q6-qw23-4rg7 is CVE-2026-47427. GitHub labels it high. The advisory's CVSS score is 7.5. It was published July 20, 2026.
In plain language from the advisory: a completion request with a missing ref can crash the process before authentication. The GitHub page lists the range as 0.33.0 and earlier and also says it affects latest main. That page lists no patched version. OSV lists a fix in 1.1.0 for the Go module. The v1.1.0 release was published May 28, 2026. The GitHub wording and the OSV range are not the same sentence. Read both before you decide which copy you run.
How OpsMCP grades it
The listing was scored on November 27, 2026 with the existing rubric. The result is provisional D, 45 out of 100. A grade is complete only when tool capability, access, maintenance, and publisher are all fully scored. An unknown factor counts as 0. If the percentage would still be an A, the letter is capped at B.
Tool capability was not scored. The extractor read source files and returned parameter names such as owner and repo, not the tool names in the README. Those names were not stored, so the factor is unknown and counts as 0. Its weight is 35. The README tool names are still the ones to use when you configure --tools.
Access is partly scored. Exposure is 3 of 8 because the registry record includes a remote URL. Scope and credentials were not scored. The same record also lists the local image. The rubric uses the remote result when a remote URL is present. The access weight is 25, and this listing contributes 3 points.
Maintenance is 20 of 20. The newest commit on main was November 27, 2026. The newest release, v2.3.0, was published November 24, 2026. Issue search that day showed 249 open issues and 978 closed issues.
Publisher is 20 of 20. The owner github is on the vendor allowlist in the scorer, so the kind points are 8 of 8 as official-vendor. The registry listing is 5 of 5. The license is MIT, 4 of 4. Stars were 34,802, which is 2 of 2. The repository was created March 4, 2025, which is 1 of 1 for age.
Advisories are a separate adjustment. The newest offered version is 2.3.0 from GitHub releases. The listed version before this check was 2.2.0. For GHSA-pjp5-fpmr-3349 the score adds 2, because 2.3.0 is outside the affected range and v1.1.2 shipped within 14 days of publication. For GHSA-w4q6-qw23-4rg7 the score adds 0. The scorer treats 2.3.0 as outside the numeric range and does not add the fast-fix credit, because v1.1.0 is more than 14 days before the July 20 publication. GitHub's medium label is shown as moderate. The four factors sum to 43, then the adjustment makes 45.
The system page asks whether an official vendor on the allowlist publishes a server here. The answer there is yes: github/github-mcp-server is published by GitHub and the github owner is on the vendor allowlist.
How the score is built is on /methodology.
Related OpsMCP pages
- /servers/github-github-mcp-server: the directory listing
- /systems/github: the GitHub system page
- /methodology: how a grade is built and what provisional means
Frequently asked questions
What does the official GitHub MCP server do?
The README says the GitHub MCP Server connects AI tools to GitHub's platform so they can read repositories and code files, manage issues and pull requests, analyze code, and automate workflows. The repository is github/github-mcp-server. Checked November 22, 2026.
How do I turn on read-only mode for the GitHub MCP server?
On a local server, pass --read-only or set GITHUB_READ_ONLY to 1. On the remote server, use a URL that ends in /readonly, or send the header X-MCP-Readonly. The README says read-only mode skips write tools even when you name them with --tools.
Does a fine-grained token hide GitHub MCP server tools it cannot use?
No. The scope-filtering doc says filtering applies to classic personal access tokens, the ones that start with ghp_. A fine-grained token, the github_pat_ kind, does not return those scopes, so the server shows every tool. GitHub's API still enforces the token permissions.
Which advisories are published for the GitHub MCP server?
Two GitHub advisories were on the repository when checked on November 27, 2026. GHSA-pjp5-fpmr-3349 (CVE-2026-48529) is medium, CVSS 6.0, for versions from 0.22.0 up to but not including 1.1.2, and the patched version is 1.1.2. GHSA-w4q6-qw23-4rg7 (CVE-2026-47427) is high, CVSS 7.5. Its GitHub page lists 0.33.0 and earlier and also says it affects latest main, and it lists no patched version. OSV lists a fix in 1.1.0.
What grade does OpsMCP give the GitHub MCP server?
Provisional D, 45 out of 100, scored November 27, 2026. Tool capability was not scored because no tool list was stored. Access is partly scored at 3 points from the remote registry URL. Maintenance is 20 of 20 and publisher is 20 of 20. The advisory adjustment is +2.
Is the remote GitHub MCP server the same program as the local one?
The remote server doc says the hosted server is built from this repository and bound into GitHub's own infrastructure. A local server runs the container image or a binary on your machine. The remote server adds tools that the local server does not have, including create_pull_request_with_copilot. GitHub Enterprise Server does not support the remote host.
Get the MCP server security checklist
OpsMCP Weekly is one email each Tuesday with score changes and new security advisories for the IT MCP servers OpsMCP grades. Sign up, confirm your address, and the free one-page checklist is yours.
One email a week. You can unsubscribe from any issue, and we never sell your address.
Sources (opened 2026-11-22)
- README on main: https://github.com/github/github-mcp-server/blob/main/README.md
- Remote server doc: https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md
- Server configuration: https://github.com/github/github-mcp-server/blob/main/docs/server-configuration.md
- Scope filtering: https://github.com/github/github-mcp-server/blob/main/docs/scope-filtering.md
- SECURITY.md: https://github.com/github/github-mcp-server/blob/main/SECURITY.md
- Advisory list: https://github.com/github/github-mcp-server/security/advisories
- GHSA-pjp5-fpmr-3349: https://github.com/github/github-mcp-server/security/advisories/GHSA-pjp5-fpmr-3349
- GHSA-w4q6-qw23-4rg7: https://github.com/github/github-mcp-server/security/advisories/GHSA-w4q6-qw23-4rg7
- OSV for GHSA-pjp5-fpmr-3349: https://osv.dev/vulnerability/GHSA-pjp5-fpmr-3349
- OSV for GHSA-w4q6-qw23-4rg7: https://osv.dev/vulnerability/GHSA-w4q6-qw23-4rg7
- Release v2.3.0: https://github.com/github/github-mcp-server/releases/tag/v2.3.0
- Release v2.2.0: https://github.com/github/github-mcp-server/releases/tag/v2.2.0
- Release v1.1.2: https://github.com/github/github-mcp-server/releases/tag/v1.1.2
- Release v1.1.0: https://github.com/github/github-mcp-server/releases/tag/v1.1.0
- Registry search: https://registry.modelcontextprotocol.io/v0.1/servers?version=latest&limit=20&search=github-mcp-server
- How we score: /methodology/