Git MCP server
Run git operations on a local repository. A reference server exposing git commands, status, diff, log, commit , so an assistant can inspect and manage version history directly.
Category
Dev toolsMaintained by
OfficialProtocol
Model Context ProtocolSource
modelcontextprotocol/servers
Dev toolsMaintained by
OfficialProtocol
Model Context ProtocolSource
modelcontextprotocol/servers
Installing Git
A Python server. Needs uv installed (uvx ships with it).
Claude Code
claude mcp add git -- uvx mcp-server-git --repository /path/to/repo
Claude Desktop ยท Cursor ยท VS Code ยท Windsurf
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Not sure where the config file lives, or it isn't picking the server up? Config paths for every client.
What it does
A reference server exposing git commands, status, diff, log, commit , so an assistant can inspect and manage version history directly.
Like any MCP server, Git plugs into MCP-compatible assistants (such as Claude and other clients) so the model can use it as a tool , no custom integration code required.
Related Dev tools MCP servers
- GitHubLet AI manage repos, issues, and pull requests.
- FilesystemRead and write local files, safely scoped.
- SentryPull error and performance context into the chat.
- JetBrainsGive the assistant context from your JetBrains IDE.
- CypressRun and inspect end-to-end tests from the assistant.
- Context7Pull up-to-date library docs into the model.