mcp-server-git
A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs
What it is and what it does
mcp-server-git is a Model Context Protocol server that bridges Git repositories and Large Language Models. It exposes a set of Git operations—status, diff, commit, branch management, log queries, and more—as callable tools that an LLM can invoke to read and modify repositories. The server runs as a separate process and communicates with LLM clients (Claude Desktop, VS Code, Zed, etc.) via the MCP protocol, allowing an AI assistant to interact with Git repositories as if it were a developer at the command line.
The package is designed for automation and AI-assisted development workflows. It depends on gitpython for Git operations, mcp for protocol handling, pydantic for validation, and click for CLI argument parsing. It is currently in early development, meaning the tool set and behavior may change. Installation is straightforward via pip or uv, and configuration varies by host application (Claude Desktop, VS Code, Zed, etc.).
Use it for:
- Let an LLM assistant read repository status, diffs, and logs to understand code changes and history without manual context-gathering.
- Automate commit workflows where an AI agent stages files, writes commit messages, and records changes based on analysis.
- Enable branch creation and switching via LLM commands for multi-branch development or experiment isolation.
- Query commit history with date filtering to analyze trends, blame, or revert decisions programmatically.
- Integrate Git operations into AI-driven code review or refactoring pipelines that need to inspect and modify repositories.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Exposes Git repository operations as tools for Large Language Models via the Model Context Protocol, allowing LLMs to read, search, and manipulate repositories programmatically.
Yes, if you are building LLM-integrated development tools or AI assistants that need programmatic Git access. The package is actively maintained, has low install friction, and carries no security vulnerabilities. The MIT license poses no restrictions. The main caveat is that it is explicitly in early development—expect the tool set and behavior to evolve, and validate LLM-generated Git commands before execution in production repositories.
Install
mcp-server-git on PyPI
pip
pip install mcp-server-gituv
uv add mcp-server-gitpoetry
poetry add mcp-server-gitInstalling mcp-server-git
Before you install
Low friction install with a pure-Python wheel. Actively maintained with recent releases; last commit 2026-08-10. Requires Python 3.10+. Four runtime dependencies (click, gitpython, mcp, pydantic) are all stable, widely-used libraries.
License in practice
MIT license is permissive—you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install mcp-server-git
# Run as a server (typically configured in Claude Desktop, VS Code, or Zed)
python -m mcp_server_git --repository /path/to/repo
# Or via uvx (recommended)
uvx mcp-server-git --repository /path/to/repo
Requires Python 3.10 or later. Git must be installed on the system. The server is designed to run as a background process managed by an MCP client (Claude Desktop, VS Code, Zed, etc.), not as a standalone library in your own Python code.
Verify before relying
- Whether the package handles large repositories efficiently or has known performance limits.
- Whether all Git operations (especially git_commit, git_add, git_reset) are safe to invoke from untrusted LLM outputs without additional validation.
- Stability guarantees beyond 'early development' status—what breaking changes are expected.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — click, gitpython, mcp, pydantic |
| Maintenance | actively maintained — 35 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 774,459/month — #5,094 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mcp_server_git-2026.7.10-py3-none-any.whl
Keywords: automation, git, llm, mcp
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
cli-mcp-serverProvides a secure Model Context Protocol (MCP)…
unclear · top 15,000 on PyPI
mcp-server-fetchProvides a Model Context Protocol server that…
permissive · top 5,000 on PyPI
mcp-server-timeProvides a Model Context Protocol server that…
permissive · top 15,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
mcp-server-appwriteExposes Appwrite's backend-as-a-service…
unclear · top 15,000 on PyPI
airbyte-internal-opsProvides MCP (Model Context Protocol) server…
permissive · top 15,000 on PyPI
tilt-mcpTilt MCP Server exposes Tilt development…
permissive · top 15,000 on PyPI
wikipedia-mcpExposes Wikipedia search, article retrieval,…
permissive · top 15,000 on PyPI
blender-mcpBlenderMCP is a Model Context Protocol server…
permissive · top 15,000 on PyPI
fastapi-mcpAutomatically exposes FastAPI endpoints as…
permissive · top 5,000 on PyPI