Git MCP Go MCP Server

A Model Context Protocol (MCP) server for Git repository interaction and automation, written in Go. This server provides tools to read, search, and

Local serverstdioGo

What is the Git MCP Go MCP server?

Git mcp go mcp server connects Git MCP Go to AI assistants that speak the Model Context Protocol. A Model Context Protocol (MCP) server for Git repository interaction and automation, written in Go. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.

What Git MCP Go does

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

Key capabilities

  • git_status — Shows the working tree status
  • git_diff_unstaged — Shows changes in the working directory that are not yet staged
  • git_diff_staged — Shows changes that are staged for commit
  • git_diff — Shows differences between branches or commits
  • git_commit — Records changes to the repository
  • git_add — Adds file contents to the staging area
  • git_reset — Unstages all staged changes
  • git_log — Shows the commit logs

Tools it exposes

Once connected, the assistant can call these 5 tools directly:

  • allow-read-only — Auto-approve all read-only tools (git_status, git_diff_unstaged, git_diff_staged, git_log, git_show, git_diff)
  • allow-local-only — Auto-approve all local-only tools (incl. git_commit, git_add, git_reset, but not git_push)
  • comma — separated list**: Auto-approve specific tools (e.g., git_status,git_log)
  • Prerequisites — The Prerequisites tool exposed by this server
  • Testing — The server includes comprehensive tests for all Git operations. The tests are designed to run against both implementation modes:

Installing the git mcp go mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

Before the server will start you need to supply one environment variable: DOWNLOAD_URL. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  • Go 1.18 or higher - Git installed on your system

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Git MCP Go sits in that group, and the shape of its toolset — allow-read-only, allow-local-only, comma among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by geropl, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the git mcp go mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
allow-read-onlyAuto-approve all read-only tools (git_status, git_diff_unstaged, git_diff_staged, git_log, git_show, git_diff)
allow-local-onlyAuto-approve all local-only tools (incl. git_commit, git_add, git_reset, but not git_push)
commaseparated list**: Auto-approve specific tools (e.g., git_status,git_log)
PrerequisitesThe Prerequisites tool exposed by this server.
TestingThe server includes comprehensive tests for all Git operations. The tests are designed to run against both implementation modes:

How to install the Git MCP Go MCP server

```json
"mcpServers": {
  "git": {
    "command": "/path/to/git-mcp-go",
    "args": ["serve", "-r", "/path/to/git/repository"]
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Go 1.18 or higher - Git installed on your system
VariableDescriptionRequired
DOWNLOAD_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Git MCP Go to allow-read-only.
  • Use Git MCP Go to allow-local-only.
  • Use Git MCP Go to comma.

Frequently asked questions

It connects Git MCP Go to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (allow-read-only, allow-local-only, comma, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Git MCP Go directly.