SkillMaxx / Development / MCP git (reference)

MCP git (reference) logo

MCP git (reference)

Last tested 2026-12-05

Read, search and manipulate Git repositories

MCP serverDevelopmentSource ↗github.com ↗

Stars
★ 92k
Last updated
Hands-on tests
Tested ✓ in 5 of 5

Does MCP git (reference) work in Claude Code, Codex, Grok Build, Cursor and Pi?

As of Dec 5, 2026: yes in Claude Code, Codex, Grok Build, Cursor and Pi.

From our nightly clean-sandbox install test on 2026-12-05. See also the best development add-ons.

Install

Tested ✓✓ Verified from docsOfficial docs ↗
claude mcp add git -- uvx mcp-server-git

Tested ✓ on 2026-12-05: installed and loaded in a throwaway sandbox with no credentials.

Log excerpt
Added stdio MCP server mcpgit with command: uvx mcp-server-git to local config
File modified: /home/sbx/.claude.json [project: /home/sbx]
$ verify:
mcpgit: uvx mcp-server-git - ✔ Connected
10 runs, latest 2026-12-05

mcp-server-git: A git MCP server

Overview

A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.

Source: https://github.com/modelcontextprotocol/servers/tree/main/src/git

Requires MCP Python SDK 2.x (mcp>=2.3,<3). The server is built on the SDK's high-level MCPServer: each tool is a typed Python function, and the SDK derives its input schema from the signature.

Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

Tools
  1. git_status

    • Shows the working tree status
    • Input:
      • repo_path (string): Path to Git repository
    • Returns: Current status of working directory as text output
  2. git_diff_unstaged

    • Shows changes in working directory not yet staged
    • Inputs:
      • repo_path (string): Path to Git repository
      • context_lines (number, optional): Number of context lines to show (default: 3)
    • Returns: Diff output of unstaged changes
  3. git_diff_staged

    • Shows changes that are staged for commit
    • Inputs:
      • repo_path (string): Path to Git repository
      • context_lines (number, optional): Number of context lines to show (default: 3)
    • Returns: Diff output of staged changes
  4. git_diff

    • Shows differences between branches or commits, or across a revision range
    • Inputs:
      • repo_path (string): Path to Git repository
      • target (string): Target branch or commit to compare with, or a revision range: a..b (from a to b) or a...b (from the merge base of a and b to b). An omitted endpoint means HEAD; each endpoint must resolve and cannot start with -
      • context_lines (number, optional): Number of context lines to show (default: 3)
    • Returns: Diff output comparing the working tree with target, or the two endpoints of a range with each other
  5. git_commit

    • Records changes to the repository
    • Inputs:
      • repo_path (string): Path to Git repository
      • message (string): Commit message
    • Returns: Confirmation with new commit hash; an error if nothing is staged (as git commit without --allow-empty), except while a merge is in progress (MERGE_HEAD present), where git also allows an empty commit. While a merge is in progress the commit concludes it: its parents are HEAD and every MERGE_HEAD commit, and the merge state is cleared
Read the full README on GitHub →

Preview from the source repo. Images are removed.

Similar alternatives

MCP everything (reference)

MCP server · Development

Reference/test server exercising prompts, resources and tools

★ 92kTested ✓ in 5

GoVisit Search Documentation

Agent Skill · Development

Find relevant published documentation linked from the current GoVisit documentation index. Use it to locate a...

Tested ✓ in 5

Sourcegraph

Plugin · Development

Code search and understanding across codebases. Search, read, and trace references across repositories;...

★ 4Tested ✓ in 2

GoVisit Get Page FAQ

Agent Skill · Development

Read the published questions and answers on the current GoVisit blog or documentation page. Use it to find an...

Tested ✓ in 5

Get the weekly install scorecard

What broke, what's flaky, what's safe to install across Claude Code, Codex, Grok Build, Cursor and Pi. Free, every Tuesday.

↑↓ to move · Enter to open · Esc to close