MCP server · Developer tools

ReferenceSource ValidatedRead-writeMITUpdated August 2026

Git

Reference MCP server for reading, searching and changing a local Git repository — status, diffs, log, commits, branches and checkouts.

Quick verdict

A small, well-scoped tool set that pairs naturally with the Filesystem server for an offline coding loop, maintained in the reference repository.

  • MaintainerModel Context Protocol reference servers (reference)
  • Security scopeRead-write
  • Transportsstdio
  • Install channelpypi · mcp-server-git
  • EvidenceSource Validated
  • LicenseMIT · Open source

The Model Context Protocol reference server for Git. Pointed at a repository path (--repository, or a repo_path per call), it exposes read tools (git_status, diffs, git_log, git_show, git_branch) and mutating tools (git_add, git_commit, git_reset, git_create_branch, git_checkout). It is a Python package run with uvx. Upstream describes it as early in development, with tools subject to change.

MCP security best practices

Install Git

uvx mcp-server-git --repository

Config entry (mcpServers)
{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "<PATH_TO_GIT_REPO>"]
    }
  }
}

Runs with uvx (uv); pip install mcp-server-git + python -m mcp_server_git also works.

Credentials

No credentials required.

Verified configurations

Not run by us yet. This profile is Source Validated: the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.

Best for

Local coding agents that need to inspect history and stage or commit changes in a repository on your machine.

Why use it

A small, well-scoped tool set that pairs naturally with the Filesystem server for an offline coding loop, maintained in the reference repository. Everything runs against a repository path you name.

Tradeoffs

Read-write: git_add, git_commit, git_reset (unstages everything) and git_checkout change repository state, so pair it with a client that shows each tool call for approval. Requires uv/uvx or Python 3. Upstream flags it as early development. Note that a copy of this server also sits in the archived reference repository; the actively maintained one is in modelcontextprotocol/servers.

Upstream state

pypi package published · repository active. Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.

Editorial review

Reviewed byOpenSourcesAI EditorialLast updatedAugust 2026Sourcessrc/git/README.md — tools, uvx/pip/Docker configs, early-development note; PyPI: mcp-server-git

Grade B — Source Validated. Re-review is due by 2027-02-16. Config entries, credential names and package status can change upstream; verify against the source repository before granting an agent access.

Sources

Related guides

All MCP servers →