Git (Reference) vs GitHub MCP Server
A side-by-side comparison of two Files & Storage servers — tools, transport, auth, maintenance, and copy-paste config for each.
| Git (Reference) Official MCP server for reading, searching, and manipulating a local Git repository's files and history. Verified stdio (local) No auth Python | GitHub MCP Server GitHub's official server for repos, issues, PRs, and Actions — local Docker or hosted remote. Verified stdio (local) API key Go | |
|---|---|---|
| Category | Files & Storage | DevOps & Cloud |
| Language | Python | Go |
| Transport | stdio (local) | stdio (local) |
| Auth | None | API key |
| GitHub stars | 74k | 31k |
| Last commit | 5 months ago | 5 days ago |
| Verified | ||
| Actively maintained | ||
| Install | uvx mcp-server-git --repository /absolute/path/to/repo | docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server |
| Repo | Open | Open |
Verdict
Pick Git (Reference) if you prefer the more popular, battle-tested option, and you want zero-setup with no API key.
Pick GitHub MCP Server if you prefer its approach (github's official server for repos, issues, prs, and actions — local docker or hosted remote).
Add Git (Reference)
uvx mcp-server-git --repository /absolute/path/to/repoPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"git-reference": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/absolute/path/to/repo"
]
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
Add GitHub MCP Server
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-serverPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"github-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-pat>"
}
}
}
}Requires Docker to be installed and running.
FAQ
Git (Reference) or GitHub MCP Server — which is better?
Pick Git (Reference) if you prefer the more popular, battle-tested option, and you want zero-setup with no API key. Pick GitHub MCP Server if you prefer its approach (github's official server for repos, issues, prs, and actions — local docker or hosted remote).
Can I use both Git (Reference) and GitHub MCP Server?
Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.
Do Git (Reference) and GitHub MCP Server work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.