Skip to main content
📖 The AI Tool Bible
MCP Git Server logo

MCP Git Server

Not yet source-checked

Reference MCP server that lets any LLM read, search, and manipulate local Git repositories.

Machine-drafted from the vendor's site · not yet source-checkedProfile updated Link checked How we rate

Free· Free and open source (MIT License). Self-hosted; you pay only for the compute wherever you run it.MCP Servers

In short

MCP Git Server is a free, open-source tool that lets LLMs read and manipulate local Git repositories. It supports status, diffs, logs, and commits without remote access.

Best for

Developers using Claude Desktop, Claude Code, VS Code, or Cursor who want the assistant to inspect diffs, walk history, stage files, and draft commits directly against a local Git repo.

Skip if

Teams that need remote Git operations (push, PR review, issue triage) or hosted collaboration features - reach for the GitHub or GitLab MCP servers instead.

MCP Git Server (mcp-server-git) is a reference Model Context Protocol server, maintained inside the official modelcontextprotocol/servers repository, that exposes a local Git repository to any MCP-capable LLM host. Once wired into Claude Desktop, Claude Code, VS Code, Cursor, Zed, or your own agent runtime, the assistant can call a set of ~12 Git tools that mirror the everyday porcelain commands: git_status, git_diff_unstaged, git_diff_staged, git_diff (between refs), git_log with author/date filters, git_show, git_add, git_reset, git_commit, git_create_branch, git_checkout, and git_init. Each tool takes a repo_path argument, so the LLM operates against a working directory you point it at rather than a hosted service, which keeps the code, credentials, and .git metadata entirely on your machine or CI runner. The server is written in Python, installed via pip or uv (pip install mcp-server-git / uvx mcp-server-git), and wired into a client through a small JSON stanza in the host's MCP config. It is intentionally minimal: it does not push, pull, merge, or rebase; it does not talk to GitHub/GitLab APIs; and it does not manage remotes. That scope makes it a safe primitive to compose with heavier agent tooling such as a filesystem MCP server, a shell-execution server, or a platform-specific server like the GitHub MCP server for anything that has to leave the local repo. Typical workflows include letting Claude summarise unstaged changes before you commit, drafting a conventional-commit message from the staged diff, walking a bug back through git log and git show, opening a scratch branch for an experimental refactor, or blaming a regression across a range of commits during a code review. Because it is part of Anthropic's official reference set, it also doubles as a canonical example for developers learning how to build their own MCP servers.

Editor's take

This is the plumbing you want the moment an MCP client stops feeling useful for real coding work. It is deliberately boring - twelve Git verbs, local-only, MIT - and that is exactly why it belongs in almost every developer's MCP config alongside a filesystem server. Pair it with github-mcp-server when you also need to open PRs.

— The AI Tool Bible editorial team

Pros

  • ✅ Official reference implementation maintained in the modelcontextprotocol/servers monorepo, so it tracks the spec closely and is a safe example to copy.
  • ✅ Covers the everyday Git verbs an assistant actually needs (status, diff, log, show, add, reset, commit, branch, checkout, init) in one small binary.
  • ✅ Runs fully local against a repo_path you control, so source code and .git history never leave your machine.
  • ✅ Trivial to install (pip install mcp-server-git or uvx mcp-server-git) and to wire into Claude Desktop, VS Code, Cursor, or any MCP host with a few lines of JSON.
  • ✅ MIT-licensed and open source, easy to fork if you want to add extra subcommands or tighten permissions.
  • ✅ Composes cleanly with other MCP servers (filesystem, shell, GitHub) rather than trying to be a monolithic dev-agent.

Cons

  • ⚠️ Scope is intentionally narrow: no push/pull/fetch, no merge, rebase, stash, cherry-pick, tag, or submodule support.
  • ⚠️ Does not talk to GitHub/GitLab/Bitbucket APIs; PRs, issues, and code review still need a separate server such as github-mcp-server.
  • ⚠️ Marked as early development in the README, so tool names and argument shapes can shift between releases.
  • ⚠️ No built-in authorisation model - if the LLM can call git_commit or git_reset it can rewrite your working tree, so you rely on the host client's approval prompts.
  • ⚠️ Python runtime requirement (uv/pip) is an extra dependency compared with the single-binary Go/Node MCP servers some teams prefer.

Facts

API available
Yes
Open source
Yes (license: NOASSERTION)
GitHub stars
91,651 (checked Oct 29, 2026)
Last GitHub push
Oct 29, 2026
First commit
Nov 2024
Package downloads (30 d)
175,042 · pypi mcp-server-git · checked Oct 15, 2026

Where this tool sits

Use cases

AI-drafted commit messages from staged diffsAssistant-led code review of unstaged changesWalking git log and git show to find a regressionCreating and checking out scratch branches from chatSummarising what changed between two refsStaging or resetting files during a refactor sessionReference implementation for building custom MCP serversLocal repo introspection inside Claude Desktop or Cursor

Frequently asked

How much does MCP Git Server cost?
It is free and open source under the MIT License. You only pay for the compute resources where you self-host it, such as your local machine or CI runner.
Can it push code or create pull requests?
No. It is intentionally minimal and does not push, pull, merge, rebase, or talk to GitHub/GitLab APIs. For remote operations, use the GitHub or GitLab MCP servers instead.
Which applications support this server?
It integrates with Claude Desktop, Claude Code, VS Code, Cursor, Zed, and custom agent runtimes. You wire it in via a JSON stanza in the host's MCP configuration.
Is it difficult to install?
Installation is straightforward using pip or uv. You run commands like 'pip install mcp-server-git' or 'uvx mcp-server-git' to set it up for your LLM host.
What specific Git commands can the AI perform?
It supports about 12 tools including git_status, git_diff, git_log, git_show, git_add, git_reset, git_commit, git_create_branch, git_checkout, and git_init for local repository manipulation.

Compare MCP Git Server with similar tools

All alternatives →

Explore related

Reviews