ClaudeMap

Git MCP Server

Official reference MCP server for working with local Git repositories.

MCP Serversofficialgitreference

A Python-based MCP server from the official modelcontextprotocol/servers collection that exposes Git operations — status, diffs, staging, commits, branch creation, and log inspection — as model tools. It drives a local checkout through the git binary, so Claude can read and manipulate repo state without shell access. Use it for commit hygiene, change review, and history archaeology inside your working tree.

What it does

  • Full git toolset: status, diff (staged/unstaged/branch), commit, add, reset, log, branch, checkout, show
  • Python server (`mcp-server-git`), runs via uvx — pass --repository to scope it to one repo
  • git_log accepts ISO dates, relative dates ('2 weeks ago') and absolute dates

When to use it

Gives Claude a structured way to read history, diff branches, and stage/commit — safer than raw shell because every op is an explicit tool call you can see in the transcript.

Getting started

Add to .mcp.json under mcpServers.git:

{
  "command": "uvx",
  "args": ["mcp-server-git", "--repository", "/path/to/repo"]
}

Git itself must be installed and on PATH.

Things to know

Marked 'early development' upstream — the toolset is subject to change. Requires MCP Python SDK 1.x. Commits created through it are real commits: keep them on a branch or worktree if you want a review gate.

Repository

modelcontextprotocol/servers

Charted

Related on the map

  • Blitz Strike

    MCP Server

    A penetration-testing methodology delivered as one MCP server: BLITZ maps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE live-verifies every finding before it is reported.

    • mcp-server
    • security
    • pentest
    • methodology
  • Ripwire

    MCP Server

    Red Hat's "ripgrep for AI context" — a C++23 zero-dependency CLI that also speaks MCP.

    • mcp
    • code-context
    • cli
    • red-hat
  • Deja Vu

    MCP Server

    One shared session memory for 25+ coding agents — Claude Code, Codex, and Cursor finally remember the same project.

    • mcp
    • memory
    • cross-agent
    • context