Git MCP Server
Reference MCP server with tools to read, search and change Git repositories: status, diff, log, commit, branch.
- Author
- Model Context Protocol
- Works with
- Any MCP client
- License
- MIT
- Documented
- Oct 2, 2026
What Git MCP Server is
mcp-server-git is a Python MCP server for Git repository interaction and automation. The README says it is in early development and tools may change.
What it does
- Show status, staged and unstaged diffs, and diffs against a branch or commit
- Show commit logs with date filtering
- Stage files, commit and reset
- Create and check out branches
- Show the contents of a commit
When to use it
Good fit
- Giving an agent structured Git access via MCP
- Clients without a shell tool
Not for
- Stable, production-grade automation: README says early development
- Cases where the agent should not commit: it has git_commit and git_add
How to install Git MCP Server
You need: uv/uvx or pip with Python; MCP Python SDK 1.x (mcp>=1.29.0,<2); A local Git repository
- Install uv or pip
- Run uvx mcp-server-git, or pip install mcp-server-git
- Add the command to your MCP client config
- Pass repo_path to each tool call
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git"
]
}
}
}Permissions and security
What it can access
- Read and modify local Git repositories (add, commit, reset, branch, checkout)
Security notes from the maintainers
- The root README says these are reference implementations meant as educational examples, not production-ready solutions.
Review the source before granting an agent access to credentials or production systems. We document what the maintainers state; we do not audit code.
Limitations
- Early development; tools may change
- Port to MCP SDK 2.0 is in progress
Frequently asked questions
Can the Git MCP server make commits?
Yes, it provides git_commit and git_add among its tools. source
Is the Git MCP server production ready?
The README says it is in early development and functionality may change. source
How do I install the Git MCP server?
Run uvx mcp-server-git or pip install mcp-server-git and add it to your MCP client config. source
Related guides
Sources and gaps
- https://raw.githubusercontent.com/modelcontextprotocol/servers/main/src/git/README.md readme, checked Oct 2, 2026
- https://raw.githubusercontent.com/modelcontextprotocol/servers/main/README.md readme, checked Oct 2, 2026
Not stated by the maintainers: Hosts other than generic MCP clients are not individually named as supported for Claude Code/Cursor/Windsurf/Codex in this README; last_release date not visible in the checked README.