What it is
GitHub's own MCP server exposes the GitHub API as tools, grouped into toolsets such as repos, issues, pull requests, Actions and code security. It runs locally in Docker or as a hosted endpoint, with an OAuth or token login.
- Maintainer
- Official (vendor)github on GitHub (organisation account, project of the same name)
- Source
- github/github-mcp-server35,003 GitHub stars · MIT licence
- Transport
- stdio (Docker or binary), Streamable HTTP (hosted endpoint)Hosted endpoint: https://api.githubcopilot.com/mcp/
- Packages
- github.com/github/github-mcp-server go
- Latest release
- GitHub MCP Server 2.3.0 2026-11-24
- Public advisories
- 2GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: yes
- Network: no
- Sends: yes
The write tools act under your identity. Comments, reviews and pushed files appear as you, and an issue or PR body that your agent reads can try to steer it.
| Tool | What it can do | Notes |
|---|---|---|
delete_repository | Deletes | Deletes a repository. Not annotated read-only. |
merge_pull_request | Writes | Merges a pull request. |
push_files | Writes | Pushes multiple files in one commit. |
create_or_update_file | Writes | |
delete_file | Deletes | |
create_repository | Writes | |
create_pull_request | Writes | |
create_issue | Writes | |
add_issue_comment | Writes, Sends | Posts a public comment. |
actions_run_trigger | Runs code, Writes | Triggers a workflow run. |
create_gist | Writes | Can publish content publicly. |
run_automation | Runs code | |
update_pull_request_branch | Writes | |
| Read-annotated tools 71 tools | Reads | Annotated read-only in the repo's tool snapshots. get_file_contents, list_issues, get_pull_request, search_code |
| Other write and update tools 88 tools | Writes | Issues, PRs, reviews, notifications, security alerts, projects. Some list-style tools here lack a read-only hint in their snapshot. update_issue_*, update_pull_request_*, pull_request_review_write, label_write |
Counted from the 159 tool snapshots in pkg/github/__toolsnaps__ in the repo. Which tools load depends on your toolsets, read-only flag and lockdown mode.
Credentials and least privilege
The token decides what the server can do, so it is the control that matters most.
| Credential | What it is for | Least privilege |
|---|---|---|
GITHUB_PERSONAL_ACCESS_TOKEN | Authenticates API calls as you. OAuth is also supported on the hosted server. | Use a fine-grained token on only the repositories you need, with the smallest permissions. The README lists repo, read:packages and read:org as the minimum classic scopes to consider, and says to use separate tokens per project and rotate them. |
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-w4q6-qw23-4rg7 · CVE-2026-47427 | High | Nil Pointer Dereference DoS in completion/complete Handler | <= 0.33.0 (also affects latest main) | n/a |
| GHSA-pjp5-fpmr-3349 · CVE-2026-48529 | Moderate | Lockdown mode singleton in HTTP server causes cross-user GraphQL client confusion | >= 0.22.0, < 1.1.2 | 1.1.2 |
What stands out
- The docs say
--read-only(orGITHUB_READ_ONLY) acts as a strict filter that takes precedence over other configuration, by disabling write tools even if requested. - Toolsets let you load only some groups. When none are given, a default set loads.
- GitHub lists 2 advisories for this repo (one high, one moderate), fixed in 1.1.0 and 1.1.2.
- Public issues, PR comments and READMEs are untrusted text your agent reads, so private repo content can be exposed if it also has a tool to post publicly.
Safe-install checklist
Install command from the project's docs: docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server.
- Pin the version. Use an exact version, not
latest:docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server:v2.3.0. Pin the image tag, or a digest, and add --read-only to args when you do not need writes. - Scope the credential. Use a fine-grained token on only the repositories you need, with the smallest permissions. The README lists
repo,read:packagesandread:orgas the minimum classic scopes to consider, and says to use separate tokens per project and rotate them. - Create a fine-grained token with access to selected repositories only, and give it read permissions unless you need writes.
- Start with
--read-onlyand--toolsetsfor just what you use (for example repos and issues). - Do not mix a token that can read private repos with tools that can post to public ones, without approving each post.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itgithub-mcp-server:{ "permissions": { "deny": [ "mcp__github-mcp-server__delete_repository", "mcp__github-mcp-server__merge_pull_request", "mcp__github-mcp-server__push_files", "mcp__github-mcp-server__create_or_update_file", "mcp__github-mcp-server__delete_file", "mcp__github-mcp-server__create_repository", "mcp__github-mcp-server__create_pull_request", "mcp__github-mcp-server__create_issue" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can GitHub MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data; runs commands, scripts or code; sends messages, posts or publishes for you. The write tools act under your identity. Comments, reviews and pushed files appear as you, and an issue or PR body that your agent reads can try to steer it.
Does GitHub MCP server need a token or API key?
Yes, depending on setup: GITHUB_PERSONAL_ACCESS_TOKEN. The token decides what the server can do, so it is the control that matters most.
Has GitHub MCP server had public security advisories?
Yes. 2 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep GitHub MCP server from changing under me?
Pin the version, for example docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server:v2.3.0. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
