Does Git have an MCP server?
Git does not maintain an official MCP server. Community-built servers exist.
mcp-server-git is the MCP project's actively maintained reference server — official to the protocol project, not to the git project itself.
- Access
- Local server
- Repository
- modelcontextprotocol/servers
- Maintainer
- Model Context Protocol
- License
- NOASSERTION
- Language
- TypeScript
- Stars
- 91k
- Last commit
- yesterday
- Category
- Developer Tools
What it does
Model Context Protocol Servers
Project site: modelcontextprotocol.io
The receipts
Model Context Protocol Servers
Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP.
Connect it
Runs on your machine over stdio, launched by your MCP client.
Add it from the terminal, then restart your session:
claude mcp add git -- npx -y <package-from-readme>Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable.
Add --scope user to make it available in every project.
Open Settings → Developer → Edit Config and add the server to claude_desktop_config.json:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
],
"env": {
"API_KEY": "…"
}
}
}
}Restart Claude Desktop after saving.
Add to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for
every project:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
],
"env": {
"API_KEY": "…"
}
}
}
}A green dot in Settings → MCP means it connected.
Add to .vscode/mcp.json:
{
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
]
}
}
}Then pick the server from the tools menu in Copilot's agent mode.
Before you connect this
A community server is unaudited third-party code that will hold your Git API credentials and see whatever data they unlock. Independent research puts SSRF vulnerabilities in roughly a third of public MCP servers, and 41% ship with no authentication at all.
- Read the source before running it — especially any network calls it makes.
- Check who maintains it and whether commits are recent (this one: yesterday).
- Issue a scoped, revocable API key rather than an account-wide token.
- Prefer read-only credentials until you trust it with writes.
Questions
Does Git have an official MCP server?
No. Git does not maintain one. Third-party developers have built community servers, the most established being modelcontextprotocol/servers, but they are not endorsed or supported by Git.
How do I connect Git to Claude?
Run the server locally and register it in Claude's MCP config. In Claude Code that's a single "claude mcp add" command; in Claude Desktop you add it to claude_desktop_config.json.
Is it safe to use a community Git MCP server?
Treat it like any dependency that gets your API keys. Community MCP servers are unaudited third-party code: independent research has found roughly a third of public MCP servers carry SSRF vulnerabilities and 41% ship with no authentication. Read the source, check the maintainer and commit recency, and scope the credentials you hand it.
How is this verdict verified?
The git project (git-scm.com) publishes no MCP server. The de facto standard is mcp-server-git in the modelcontextprotocol/servers monorepo, maintained by the MCP project. GitHub metadata is refreshed every six hours.
How we know
The git project (git-scm.com) publishes no MCP server. The de facto standard is mcp-server-git in the modelcontextprotocol/servers monorepo, maintained by the MCP project.
- GitHub data refreshed on 2026-10-08, and again every six hours.
- Vendor docs checked by hand on 2026-08-10.
Work at Git? The moment you ship an official server this page flips to Official — send us the link.