MCP server Official

Git MCP Server

Reference MCP server with tools to read, search and change Git repositories: status, diff, log, commit, branch.

Author
Model Context Protocol
Works with
Any MCP client
License
MIT
Documented
Oct 2, 2026
Maintainer
Official vendor server
Last commit
Oct 28, 2026
Runs as
Local via uvx
Security scan
Not confirmed

What Git MCP Server is

mcp-server-git is a Python MCP server for Git repository interaction and automation. The README says it is in early development and tools may change.

What it does

How Git MCP Server plugs in: which agents run it and what it addsRUNS INYour agentAny MCP clientone host documentedMCP SERVER · OFFICIALGit MCP ServerConnect the agent to tools, data…4 install steps1 permission notelicense: MITWHAT IT ADDSWhat it doesShow status, staged and unstaged…Show commit logs with date filter…Stage files, commit and resetCreate and check out branchesagent → extension → new capability · from the official repository or docs
Where Git MCP Server runs and what it adds, from its documentation
  • Show status, staged and unstaged diffs, and diffs against a branch or commit
  • Show commit logs with date filtering
  • Stage files, commit and reset
  • Create and check out branches
  • Show the contents of a commit

When to use it

Good fit

  • Giving an agent structured Git access via MCP
  • Clients without a shell tool

Not for

  • Stable, production-grade automation: README says early development
  • Cases where the agent should not commit: it has git_commit and git_add

How to install Git MCP Server

You need: uv/uvx or pip with Python; MCP Python SDK 1.x (mcp>=1.29.0,<2); A local Git repository

Install in one click Add to Cursor

Cursor opens and asks you to confirm the server. For Claude Code or VS Code, paste the copied command into a terminal. For Claude Desktop, paste the configuration example below into Settings, Developer, Edit Config.

  1. Install uv or pip
  2. Run uvx mcp-server-git, or pip install mcp-server-git
  3. Add the command to your MCP client config
  4. Pass repo_path to each tool call
Configuration example (from the official docs)
{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": [
        "mcp-server-git"
      ]
    }
  }
}

Permissions and security

What it can access

  • Read and modify local Git repositories (add, commit, reset, branch, checkout)

Security notes from the maintainers

  • The root README says these are reference implementations meant as educational examples, not production-ready solutions.

Review the source before granting an agent access to credentials or production systems. We document what the maintainers state; we do not audit code.

Limitations

  • Early development; tools may change
  • Port to MCP SDK 2.0 is in progress

Frequently asked questions

Can the Git MCP server make commits?

Yes, it provides git_commit and git_add among its tools. source

Is the Git MCP server production ready?

The README says it is in early development and functionality may change. source

How do I install the Git MCP server?

Run uvx mcp-server-git or pip install mcp-server-git and add it to your MCP client config. source

Related guides

Sources and gaps

Not stated by the maintainers: Hosts other than generic MCP clients are not individually named as supported for Claude Code/Cursor/Windsurf/Codex in this README; last_release date not visible in the checked README.

More extensions to look at