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
- 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
claude mcp add --scope project git -- uvx mcp-server-git --repository path/to/git/repo
Cursor
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"path/to/git/repo"
]
}
}
}
Codex
[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "path/to/git/repo"]
Other servers in dev tools
Everything
Reference test server from the MCP project that exposes every protocol feature, for checking that a client works.
GitHub
GitHub's own server for repos, issues, pull requests, Actions and code search, with switchable toolsets.
GitLab
GitLab's built-in endpoint for issues, merge requests, pipelines and search, with selectable toolsets.
Figma
Feeds coding agents frames, variables and components from Figma files so the code they write matches the design.
Context7
Pulls current, version-specific library docs and code examples into the prompt. Hosted, with an optional API key.
Docker MCP Gateway
Runs servers from Docker's MCP catalogue in containers behind one gateway endpoint.