git-mcp-server MCP Server

A Model Context Protocol (MCP) server for Git operations that provides comprehensive Git functionality to MCP clients like Claude Desktop.

Local serverstdioMIT

What is the git-mcp-server MCP Server?

git-mcp-server is an MCP project maintained in the danyelkirsch/git-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server for Git operations that provides comprehensive Git functionality to MCP clients like Claude Desktop”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using git-mcp-server. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
git_statusGet current git status
git_current_branchGet current branch name
git_staged_changesGet staged changes
git_working_directoryGet current working directory info
git_diffShow diff between branches/commits
git_logGet commit history
git_show_fileShow file contents at specific commit
git_branchesList all branches
git_checkoutSwitch to different branch or create new branch
git_addAdd files to staging area
git_commitCreate commits with message and files
git_pullPull changes from remote repository
git_fetchFetch changes from remote without merging
git_initInitialize a new git repository

How to install the git-mcp-server MCP Server

{
  "mcpServers": {
    "git": {
      "command": "git-mcp-server",
      "args": []
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.