
GitHub MCP Server
by githubio.github.github/github-mcp-serverv2.0.2
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
context tax
~11,509 tok/turn46 tools
security
100/100
cold start
164 ms
freshness
Active26d ago
Our reading of GitHub, from the data
GitHub is a version control MCP server from github, listed in the official MCP Registry.
Its 46 tools add about 11,509 tokens to every model turn, heavier than the version control median of 1,256 tokens across 54 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 26 days ago (2026-10-15). For comparison, 65% of version control servers are active or maintained.
With 33,740 GitHub stars it ranks #3 of 725 version control servers we index.
It runs either locally over stdio or as a hosted endpoint.
Install GitHub MCP server
Install in Claude Code
claude mcp add github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.0.2Install in Cursor
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.0.2"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.0.2"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"github": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.0.2"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/github/github-mcp-server:2.0.2"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test ghcr.io/github/github-mcp-server:2.0.2
Remote endpoints
- streamable-http
https://api.githubcopilot.com/mcp/
Context tax
Connecting this server adds ~11,509 tokens of tool definitions to every model turn (heavy, 46 tools). Measured 2026-10-23 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $46.04 | $2.30 |
| Claude Sonnet 5.5 | $23.02 | $2.30 |
| Claude Haiku 5.5 | $1.15 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (46)
issue_write803 tokCreate a new or update an existing issue in a GitHub repository.
pull_request_read557 tokGet information on a specific pull request in GitHub repository.
list_issues545 tokList issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.
pull_request_review_write476 tokCreate and/or submit, delete review of a pull request. Available methods: - create: Create a new review of a pull request. If "event" parameter is provided, the review is submitted. If "event" is omitted, a pending review is created. - submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The "body" and "event" parameters are used when submitting the review. - delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the curren
search_issues436 tokSearch issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. "login fails after password reset"). Already scoped to is:issue.
search_pull_requests400 tokSearch for pull requests in GitHub repositories using issues search syntax already scoped to is:pr
list_commits398 tokGet list of commits of a branch in a GitHub repository. Returns at least 30 results per page by default, but can return more if specified using the perPage parameter (up to 100).
search_code381 tokFast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.
search_commits375 tokSearch for commits across GitHub repositories using GitHub's commit search syntax. Useful for finding specific changes, authors, or messages across one or many repositories. Searches the default branch only.
list_pull_requests374 tokList pull requests in a GitHub repository. If the user specifies an author, then DO NOT use this tool and use the search_pull_requests tool instead.
sub_issue_write373 tokAdd a sub-issue to a parent issue in a GitHub repository.
create_or_update_file367 tokCreate or update a single file in a GitHub repository. If updating, you should provide the SHA of the file you want to update. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations. To obtain the current blob SHA before updating, call the get_file_contents tool with the same owner, repo, and path, and set its ref parameter to this tool's branch value. The first text result reports the blob SHA for the requested path. SHA MUST be provided for existing file updates.
issue_read332 tokGet information about a specific issue in a GitHub repository.
add_comment_to_pending_review330 tokAdd review comment to the requester's latest pending pull request review. A pending review needs to already exist to call this (check with the user if not sure).
add_issue_comment270 tokAdd a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required.
get_file_contents269 tokGet the contents of a file or directory from a GitHub repository
search_repositories262 tokFind GitHub repositories by name, description, readme, topics, or other metadata. Perfect for discovering projects, finding examples, or locating specific repositories across GitHub.
add_reply_to_pull_request_comment256 tokAdd a reply and/or reaction to an existing pull request comment. This can create a new comment linked as a reply to the specified comment, add an emoji reaction to the specified comment, or do both. At least one of body or reaction is required.
get_commit242 tokGet details for a commit from a GitHub repository
list_repository_collaborators241 tokList collaborators of a GitHub repository. Results are paginated; the response includes `nextPage`, `prevPage`, `firstPage`, and `lastPage` fields. To get the next page, use the `nextPage` value as the `page` parameter.
assign_copilot_to_issue233 tokAssign Copilot to a specific issue in a GitHub repository. This tool can help with the following outcomes: - a Pull Request created with source code changes to resolve the issue More information can be found at: - https://docs.github.com/en/copilot/concepts/agents/cloud-agent/about-cloud-agent
update_pull_request224 tokUpdate an existing pull request in a GitHub repository.
list_releases210 tokList releases in a GitHub repository
create_pull_request195 tokCreate a new pull request in a GitHub repository.
search_users194 tokFind GitHub users by username, real name, or other profile information. Useful for locating developers, contributors, or team members.
push_files182 tokPush multiple files to a GitHub repository in a single commit
merge_pull_request167 tokMerge a pull request in a GitHub repository.
list_issue_fields151 tokList issue fields for a repository or organization. Returns field definitions including name, type (text, number, date, single_select), and for single_select fields the list of valid option names. When repo is omitted, returns org-level fields directly.
ui_get150 tokFetch UI data for MCP Apps (labels, assignees, milestones, issue types, branches, issue fields, reviewers).
update_issue_comment144 tokUpdate the body of an existing issue or pull request conversation comment. This tool cannot update pull request review comments.
create_repository127 tokCreate a new GitHub repository in your account or specified organization
delete_filefile write126 tokDelete a file from a GitHub repository
list_branches125 tokList branches in a GitHub repository
list_tags125 tokList git tags in a GitHub repository
update_pull_request_branch119 tokUpdate the branch of a pull request with the latest changes from the base branch.
list_issue_types115 tokList supported issue types for a repository or its owner organization. When repo is omitted, returns org-level issue types directly.
request_copilot_review111 tokRequest a GitHub Copilot code review for a pull request. Use this for automated feedback on pull requests, usually before requesting a human reviewer.
create_branch107 tokCreate a new branch in a GitHub repository
get_release_by_tag104 tokGet a specific release by its tag name in a GitHub repository
get_label90 tokGet a specific label from a repository.
get_tag89 tokGet details about a specific git tag in a GitHub repository
fork_repository88 tokFork a GitHub repository to your account or specified organization
get_team_members77 tokGet member usernames of a specific team in an organization. Limited to organizations accessible with current credentials
get_latest_release73 tokGet the latest release in a GitHub repository
get_teams63 tokGet details of the teams the user is a member of. Limited to organizations accessible with current credentials
get_me55 tokGet details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls.
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 26d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-15 · 26d ago · GitHub
Latest release
2026-10-08 · 33d ago · GitHub · v2.0.2
Package published
no data · npm/PyPI
Registry entry updated
2026-10-08 · 33d ago · official registry · v2.0.2
How it compares in Version Control
Against the most-starred version control servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| GitHub (this) | 33,740 | 46 | 11,509 | Active | local + hosted |
| Gitcompare | 91,356 | 12 | 1,139 | Active | local |
| PostHog | 40,338 | — | not measured | Active | local + hosted |
| GitDiagram | 18,313 | 3 | 864 | Active | hosted |
| Skill Seekers | 15,180 | — | not measured | Active | — |
| Plg Handler | 14,805 | — | not measured | Active | — |
FAQ
›How do I install the GitHub MCP server in Claude Code?
Run: claude mcp add github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.0.2. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does GitHub require an API key?
No required environment variables are declared in its published metadata.
›Can I use GitHub as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is GitHub in the official MCP registry?
Yes, as io.github.github/github-mcp-server.
›How many tokens does GitHub add to my context?
Its tool definitions total about 11,509 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-08
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to GitHub
Other version control MCP servers.
Comparing GitHub servers? All GitHub MCP servers, official and community.