drio
Open app

Git MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

Git MCP Server is a Model Context Protocol server that provides comprehensive Git functionality to Large Language Models (LLMs), enabling them to perform version control operations through a secure and standardized interface.

To use Git MCP Server, clone the repository, install dependencies, build the project, and configure it in your MCP client settings to interact with the server for Git operations.

  • Core Git operations including repository management, file staging, and committing. - Bulk operations for executing multiple Git commands in sequence. - Safety features like path validation and comprehensive error reporting.
  1. Enabling LLMs to manage Git repositories effectively.
  2. Facilitating version control operations in AI-driven development environments.
  3. Providing a secure interface for LLMs to interact with external systems.

Add to your AI client

Use these steps to connect Git MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "cyanheads-git-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cyanheads-git-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol?

The Model Context Protocol (MCP) is a standardized communication protocol that allows LLMs to interact with external systems securely.

Is Git MCP Server open source?

Yes! Git MCP Server is open source and available under the Apache License 2.0.

How can I contribute to the project?

You can contribute by forking the repository, creating a feature branch, and submitting a pull request.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":670,"uuid":"23219623-281b-4396-b056-a478ca7bd816","name":"cyanheads_git-mcp-server","title":"Git MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:25:59.066Z","updated_at":"2025-02-23T07:15:12.256Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"git,mcp,version-control,llm","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/cyanheads_git-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/ddf9d95e0bc00f1978f55318172b6e41110b72526ba6fab0a0b7c1716623a9af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d352e332d626c75652e737667","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]