---
title: "Git: setup for Claude, Cursor, Codex · DotsAgent"
description: "Works with a local Git repository from the agent: status, diffs, history, branches and commits, on a repo path you choose. Set up Git in 13 MCP clients."
url: https://dotsagent.io/mcp/servers/git
---

Dev tools · MCP Steering Group

# Set up Git

Works with a local Git repository from the agent: status, diffs, history, branches and commits, on a repo path you choose.

- **Publisher**: MCP Steering Group Official
- **Run locally**: `uvx mcp-server-git --repository path/to/git/repo`
- **Transports**: stdio
- **Authentication**: None. It acts on the repository path you pass in.
- **What it can touch**: Reads the repository and can stage, commit and create branches.
- **Licence**: MIT (existing) / Apache-2.0 (new contributions)
- **Source**: [github.com/modelcontextprotocol/servers/tree/main/src/git](https://github.com/modelcontextprotocol/servers/tree/main/src/git)
- **Status**: Active

## Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

### Claude Code

`shell`

```
claude mcp add --scope project git -- uvx mcp-server-git --repository path/to/git/repo
```

### Cursor

`.cursor/mcp.json`

```
{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "path/to/git/repo"
      ]
    }
  }
}
```

### Codex

`~/.codex/config.toml`

```
[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "path/to/git/repo"]
```

[Config for other clients →](https://dotsagent.io/mcp/config#add=git)

## Other servers in dev tools

- [Everything](https://dotsagent.io/mcp/servers/everything): Reference test server from the MCP project that exposes every protocol feature, for checking that a client works.

- [GitHub](https://dotsagent.io/mcp/servers/github): GitHub's own server for repos, issues, pull requests, Actions and code search, with switchable toolsets.

- [GitLab](https://dotsagent.io/mcp/servers/gitlab): GitLab's built-in endpoint for issues, merge requests, pipelines and search, with selectable toolsets.

- [Figma](https://dotsagent.io/mcp/servers/figma): Feeds coding agents frames, variables and components from Figma files so the code they write matches the design.

- [Context7](https://dotsagent.io/mcp/servers/context7): Pulls current, version-specific library docs and code examples into the prompt. Hosted, with an optional API key.

- [Docker MCP Gateway](https://dotsagent.io/mcp/servers/docker-mcp-gateway): Runs servers from Docker's MCP catalogue in containers behind one gateway endpoint.

## Sources

1. [github.com](https://github.com/modelcontextprotocol/servers)/modelcontextprotocol/servers

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
