SkillMaxx / Development / MCP git (reference)

MCP git (reference) logo

MCP git (reference)

Read, search and manipulate Git repositories

MCP serverDevelopmentSource ↗github.com ↗

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

Install

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

Tested ✓ on 2026-10-16: 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
1 run, latest 2026-10-16

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 1.x (mcp>=1.29.0,<2). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress.

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
    • Inputs:
      • repo_path (string): Path to Git repository
      • target (string): Target branch or commit to compare with
      • context_lines (number, optional): Number of context lines to show (default: 3)
    • Returns: Diff output comparing current state with target
  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
  6. git_add

    • Adds file contents to the staging area
    • Inputs:
      • repo_path (string): Path to Git repository
      • files (string[]): Non-empty array of file paths to stage; ["."] stages everything
    • Returns: Confirmation of staged files, or a message saying nothing was staged when the call left the index unchanged
Read the full README on GitHub →

Preview from the source repo. Images are removed.

Similar alternatives

Sourcegraph

Plugin · Development

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

★ 4Tested ✓ in 2

MCP everything (reference)

MCP server · Development

Reference/test server exercising prompts, resources and tools

★ 91kTested ✓ in 2

Cds MCP

Plugin · Development

AI-assisted development of SAP Cloud Application Programming Model (CAP) projects. Search CDS models and CAP...

★ 116Tested ✓ in 2

Sap Cds MCP

Plugin · Development

AI-assisted development of SAP Cloud Application Programming Model (CAP) projects. Search CDS models and CAP...

★ 116Tested ✓ in 2

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