Remote OpenClaw Blog
Best GitHub MCP Servers in 2026
7 min read ·
The official GitHub MCP Server is the best GitHub MCP server in 2026: with 30,943 GitHub stars as of July 2026, it is the most-starred git-focused server in the Remote OpenClaw directory, and it lets an agent read code, triage issues, manage pull requests, and inspect Actions runs on any repository you can access. It is not the only option worth installing, though: GitMCP turns any public repo into a documentation source, and the git reference server handles local commits and branches without ever touching GitHub. Below are the six best GitHub and git MCP servers, ranked by stars with verified install commands.
How We Ranked the Best GitHub MCP Servers
GitHub MCP servers are Model Context Protocol servers that give an AI agent access to git and GitHub operations, from reading a repository to opening a pull request. This list ranks git-focused servers by GitHub stars, verified against each repository on July 4, 2026, and splits them by job: GitHub API access, documentation lookup, and local git operations are three different needs that different servers solve.
Most of these servers live in the Remote OpenClaw Developer Tools category, which holds 1,127 servers. We picked one clear winner per job rather than stacking five near-identical GitHub wrappers, so the list works as a starter kit for anyone building code-aware agents.
The 6 Best GitHub MCP Servers in 2026
These six servers cover the GitHub API, documentation retrieval, local git, repository ingestion, and GitLab. Install commands were verified against each repository's README in July 2026.
1. GitHub MCP Server - the official standard
The official GitHub MCP Server (30,943 stars) lets agents browse code, search files, triage issues, manage pull requests, and analyze Actions runs and security alerts. The hosted remote endpoint at https://api.githubcopilot.com/mcp/ uses OAuth, or you can run it locally in Docker with a personal access token. Directory page: github/github-mcp-server.
claude mcp add --transport http github https://api.githubcopilot.com/mcp/
2. GitMCP - documentation for any repository
GitMCP (8,205 stars) is a free, open-source remote server that turns any public GitHub project into a documentation hub, so your agent reads a library's real code and docs instead of hallucinating an old API. Use the generic endpoint https://gitmcp.io/docs, or a per-repo endpoint like https://gitmcp.io/{owner}/{repo}. Directory page: idosal/git-mcp.
claude mcp add gitmcp -- npx -y mcp-remote https://gitmcp.io/docs
3. Git reference server - local commits and branches
Anthropic's git reference server runs local git operations, reading status and diffs, staging files, committing, and managing branches, all inside your working directory with no network calls. It ships in the official servers monorepo, which holds tens of thousands of stars. Directory page: modelcontextprotocol/server-git.
claude mcp add git -- uvx mcp-server-git --repository /path/to/your/repo
4. cyanheads git-mcp-server - richer local git toolkit
cyanheads/git-mcp-server (223 stars) is a fuller local git server that adds stashing, tag management, and worktree support on top of the basics, which suits agents that run more elaborate branch workflows. Directory page: cyanheads/git-mcp-server.
claude mcp add git-tools -- npx -y @cyanheads/git-mcp-server
5. mcp-git-ingest - read a whole repo into context
mcp-git-ingest (313 stars) clones a GitHub repository and returns its directory tree plus selected file contents, which is handy when you want to feed an entire small project into an agent for review or onboarding. Directory page: adhikasp/mcp-git-ingest.
claude mcp add git-ingest -- uvx --from git+https://github.com/adhikasp/mcp-git-ingest mcp-git-ingest
6. GitLab MR MCP - for teams not on GitHub
If your code lives on GitLab, gitlab-mr-mcp (92 stars) reads merge requests and diffs, adds line-level review comments, and edits MR titles and descriptions, giving GitLab users the review workflow the GitHub server offers. It authenticates with a GitLab token and host. Directory page: kopfrechner/gitlab-mr-mcp.
npx -y @kopfrechner/gitlab-mr-mcp
Comparison Table: Best GitHub MCP Servers at a Glance
The table below compares all six picks on job, stars, and hosting model, with star counts current as of July 4, 2026.
| Rank | Server | Best for | Stars (Jul 2026) | Auth | Runs |
|---|---|---|---|---|---|
| 1 | GitHub MCP Server | GitHub API | 30,943 | OAuth or PAT | Remote or Docker |
| 2 | GitMCP | Repo docs | 8,205 | None | Remote |
| 3 | Git reference server | Local git | Monorepo | None | Local |
| 4 | cyanheads git-mcp-server | Advanced local git | 223 | None | Local |
| 5 | mcp-git-ingest | Repo ingestion | 313 | None | Local |
| 6 | GitLab MR MCP | GitLab reviews | 92 | GitLab token | Local |
Remote vs Local: Which to Install
Install the remote GitHub MCP Server for anything involving the GitHub platform, and a local git server for anything that touches your working tree. The remote endpoint handles issues, pull requests, and Actions without a local process, and OAuth means no token to leak. It cannot, however, stage or commit changes in your local checkout, which is exactly what the git reference server is for.
Many real agent setups run both at once: the GitHub server to open and review pull requests, and a local git server to create branches and commits. GitMCP is a third, non-overlapping layer that supplies up-to-date documentation for the libraries your code depends on. Our GitHub MCP code review automation guide shows how these fit into a review workflow.
Whichever you add, use the standard flow. Our Claude Code MCP servers guide covers scopes and tokens, and the full cross-category ranking lives in Best MCP Servers in 2026.
Limitations and Tradeoffs
A GitHub token is a broad key, so scope it carefully. A personal access token with repo-wide write access lets an agent push to any branch, so prefer fine-grained tokens limited to the specific repositories and permissions the task needs, and prefer OAuth on the remote server where possible. Prompt injection from a malicious issue or README is a real risk once an agent can act on a repo, which our MCP security guide addresses.
Stars measure popularity, not maintenance. The official GitHub server's 30,943 stars reflect genuine adoption, but smaller servers like mcp-git-ingest carry more key-person risk, so pin versions and review the source before wiring one into an automated pipeline. When a star count belongs to a monorepo rather than a single server, the table says so.
Related Guides
- GitHub MCP: Code Review Automation with Claude
- Best MCP Servers for Claude Code in 2026
- Claude Code MCP: How to Add and Manage MCP Servers
- Best MCP Servers in 2026: The Complete Ranked List
Go deeper
The operator playbooks
Production-ready PDF guides for OpenClaw and Hermes Agent — $19.99 each.
Skills for this topic
Browse all skills →Frequently Asked Questions
What is the best GitHub MCP server in 2026?
The official GitHub MCP Server is the best GitHub MCP server in 2026, with 30,943 GitHub stars as of July 2026, because it covers repositories, issues, pull requests, and Actions and runs as a hosted remote endpoint with OAuth. For local commits and branches you also want the git reference server, and for library documentation you want GitMCP.
Is there an official GitHub MCP server?
Yes. GitHub publishes an official MCP server at github/github-mcp-server , which you can use as a hosted remote endpoint at https://api.githubcopilot.com/mcp/ with OAuth or run locally in Docker with a personal access token. It is the most-starred git-focused server in our Developer Tools directory .
What is the difference between a GitHub MCP server and a git MCP server?
A GitHub MCP server talks to the GitHub platform (issues, pull requests, Actions) over the network, while a git MCP server runs local git commands (status, diff, commit, branch) inside your working directory with no network calls. The official GitHub MCP Server covers the first job and the git reference server covers the second, and many setups run both.
How do I install the GitHub MCP server in Claude Code?
Run claude mcp add --transport http github https://api.githubcopilot.com/mcp/ to connect to the hosted endpoint, then authorize with OAuth. To run it locally instead, use the Docker image ghcr.io/github/github-mcp-server with a personal access token. Our Claude Code MCP guide walks through scopes and tokens.





