Git MCP Server

Repository operations like status, diffs, and commits for MCP-compatible clients.

Data last scanned yesterday · Reviewed last month

01 dangerous tool14 tools2JavaScriptMIT

Overview

Git MCP Server enables AI models to interact directly with local Git repositories. It provides tools for status checks, log retrieval, branch management, and file diffing, allowing users to perform repository operations through an MCP-compliant interface.

Our verdict

This server carries a high-risk score of 18/100, primarily due to it being an unverified community project with no recent updates for over 400 days. Given the lack of editorial review and the potential for repository modification, it should only be used in isolated, low-stakes environments rather than production development workflows.

  • Uses only two direct dependencies
  • Provides comprehensive Git command coverage
  • Includes documented installation and usage instructions
  • Released under an MIT license
  • Last commit was 404 days ago
  • Only one contributor maintains the project
  • Security and authentication mechanisms remain unreviewed

Setup

Claude Desktop
{
  "mcpServers": {
    "git-mcp-server": {
      "args": [
        "-y",
        "git-mcp-server"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
git_statusGet current git statuslow
git_current_branchGet current branch namelow
git_staged_changesGet staged changeslow
git_working_directoryGet current working directory infolow
git_diffShow diff between branches/commitslow
git_logGet commit historylow
git_show_fileShow file contents at specific commitlow
git_branchesList all brancheslow
git_checkoutSwitch to different branch or create new branchmedium
git_addAdd files to staging areamedium

Compatibility

ClientLocalDockerRemoteRead-only
ChatGPT
Claude Desktop
Cursor
VS Code
Windsurf

Frequently asked questions

What software prerequisites are required to run this server?

You must have Node.js 18 or higher, npm or yarn, and Git installed on your system.

How does the server determine which repository to act upon?

The server automatically detects the Git repository based on your current working directory.

Can I use this server with multiple project directories?

Yes, the server supports multiple project directories and will work seamlessly across them based on the context of the current working directory.

Is it possible to perform remote operations like pushing or pulling?

Yes, the server supports remote operations including push, pull, and fetch commands.

Alternatives

Badge

Git MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.