A Model Context Protocol (MCP) server for Git repository interaction and automation, written in Go. This server provides tools to read, search, and
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.
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.
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 serverTesting — The server includes comprehensive tests for all Git operations. The tests are designed to run against both implementation modes: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.
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.
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.
| Tool | What it does |
|---|---|
| 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: |
```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.
| Variable | Description | Required |
|---|---|---|
| DOWNLOAD_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.