# Git Courer

> Git Courer is an open-source MCP server for developer tools. Git MCP server giving AI agents structured, auto-backed-up access to repositories. It is available on CLI, macOS, Linux and self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, self-hosted
- **Repository:** https://github.com/alejandro-m-p/git-courer
- **MCP Registry name:** io.github.Alejandro-M-P/git-courer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says git-courer is an MCP server that exposes most of Git's day-to-day surface to coding agents, from status and diff through branches, stashes, history and remote sync. Every write operation is backed up before it runs, and the project states that commands do not route through Bash, so agents don't run raw commands like hard resets on the side.

Results come back as structured JSON rather than raw Git text. Agents work in isolated worktrees created by a session command, and commit messages are drafted by a local LLM through Ollama when that option is enabled. Commit type classification is handled by the Go code using AST analysis, with the agent able to override it.

The README describes it as aimed at developers who run coding agents against their own repositories and want more control over what those agents change. It also notes an LLM-free mode for machines without a GPU, in which the agent writes commit messages itself.

## Features

- **Structured Git tool surface:** Thirteen MCP tools cover status, diff, branch, stash, history, sync, rewrite and integration operations.
- **Automatic backups:** Every mutating operation is backed up before it executes, and a restore command can undo it.
- **Isolated agent worktrees:** Session commands create a separate worktree and branch per agent, then clean them up on finish or discard.
- **Deterministic commit typing:** Commit type is decided by AST and dependency analysis, with an override parameter for the agent.
- **Optional local LLM messages:** Commit messages can be written by a local model through Ollama, or by the agent when the LLM toggle is off.
- **Client setup and diagnostics:** A setup command configures supported agent clients and a doctor command reports their configuration state.

## Good for

- Letting a coding agent commit, branch and sync without running raw git commands
- Isolating parallel agent sessions in separate worktrees
- Recovering from an agent's history rewrite through backup restore
- Running pull request checks that combine tests, conflicts and diff stats
- Generating release changelogs from commit history with a local model

## Tools

- `status`: Full repository state including branch, changes, conflicts and stash.
- `diff`: Diff output annotated with AST tags.
- `commit`: Three-phase preview, review and apply commit pipeline.
- `branch`: Create, switch, delete, rename and list branches.
- `stage`: Remove, restore and clean staging area entries.
- `stash`: Save, pop and show stashes.
- `history`: Log, reflog and blame inspection.
- `sync`: Push, pull and fetch against remotes.
- `pr-review`: Tests, conflicts, diff stats and divergence in one call.
- `backup`: Restore or list automatic backups.
- `rewrite`: Amend, revert, soft and hard reset operations.
- `integrate`: Merge, update, pick, continue and abort integration operations.
- `session`: Start, finish, status, select and discard isolated worktree sessions.

## FAQ

### Does it need a GPU or a local LLM?

No. The README says the LLM toggle can be turned off, in which case the agent writes commit messages directly. Release is not available without an LLM.

### Does code leave my machine?

The README says everything runs locally, including git-courer and Ollama.

### Which agent clients are supported?

The README lists OpenCode, Claude Code, Codex, pi and Antigravity as auto-configured by the setup command.

### How is a breaking change marked?

Using feat! or a BREAKING CHANGE line in the commit body, which the README says is detected automatically.

### Is Git Courer free?

Yes. Git Courer is open source, so you can use and self-host it for free.

### What are the best alternatives to Git Courer?

The closest alternatives to Git Courer are Git MCP, Git MCP Server, GitEasy MCP, Coding Tools MCP and Agentic MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [Git MCP](https://ai-powered.com/mcp/git-mcp): Git MCP is an open-source MCP server for developer tools.
- [Git MCP Server](https://ai-powered.com/mcp/git-mcp-server): Git MCP Server is an open-source MCP server for developer tools.
- [GitEasy MCP](https://ai-powered.com/mcp/giteasy-mcp): GitEasy MCP is a freemium MCP server for developer tools.
- [Coding Tools MCP](https://ai-powered.com/mcp/coding-tools-mcp): Coding Tools MCP is an open-source MCP server for developer tools.
- [Agentic MCP](https://ai-powered.com/mcp/agentic-mcp): Agentic MCP is an open-source MCP server for developer tools.
- [Carbon Forge](https://ai-powered.com/mcp/carbon-forge): Carbon Forge is a freemium MCP server for developer tools.
- [Git Tools](https://ai-powered.com/mcp/git-tools): Git Tools is an open-source MCP server for developer tools.
- [Advanced GitLab MCP server](https://ai-powered.com/mcp/advanced-gitlab-mcp-server): Advanced GitLab MCP server is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/git-courer
