Back to MCP ServersOfficial documentation
mcp-server-git
OFFICIALReference Git server. Status, diff, log, branch, commit, and search — structured Git operations for repos the agent works in.
Category: Development · Works with: Claude Code, Grok Build, Claude Desktop, Cursor, Codex CLI
What it does
Gives agents first-class Git tooling beyond raw shell commands: read history, inspect diffs, and stage changes with structured, predictable output.
Install
uvx mcp-server-git --repository /path/to/repo
Setup Instructions
claude Code
claude mcp add git -- uvx mcp-server-git --repository ~/projects/my-repo
claude Desktop
Requires uv (https://docs.astral.sh/uv/):
{
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "/Users/you/projects/my-repo"]
}
}
}Compatible Agents
Claude CodeGrok BuildClaude DesktopCursorCodex CLI
Related MCP Servers
@modelcontextprotocol/server-filesystem
Reference filesystem access for agents. Read, write, list, move, and search files within explicitly allowed directories.
GitHub MCP Server
GitHub's official MCP server. Manage issues, PRs, branches, workflows, and code scanning — or just let the agent read your repos.
Supabase MCP
Supabase's official server. Query the database, apply migrations, manage config, fetch logs, and generate TypeScript types from your agent.