vibedonaldsvibedonalds.com
Git MCP Server screenshot

Git MCP Server

Reference MCP server in Python that lets an LLM read, diff, stage, commit and branch in a Git repository.

What is Git MCP Server, in two sentences

Git MCP Server (mcp-server-git) is a reference server in the modelcontextprotocol/servers GitHub repository with tools to read, search and manipulate Git repositories: status, diffs, staging, commits, branches, checkout, logs and git show. Its README says the server is in early development and licensed under the MIT License.

About Git MCP Server

Its tools are git_status, git_diff_unstaged and git_diff_staged, git_diff against a branch or commit, git_add, git_reset, which unstages all staged changes, git_commit, git_log with optional date filters, git_create_branch, git_checkout, git_show for a commit or for a file at a revision, and git_branch for local, remote or all branches. Every tool takes a repo_path, the path to the repository it works on.

The README recommends running it with uvx mcp-server-git, which needs no separate installation; it can also be installed with pip install mcp-server-git and run as python -m mcp_server_git, or run as the mcp/git Docker image. The --repository (-r) argument accepts any path inside a Git working tree: at startup the server walks up to the repository root, and tool calls are then allowed anywhere in that repository. Without --repository, each tool call's repo_path decides which repository it touches.

Its README has entries for Claude Desktop (claude_desktop_config.json, with uvx, Docker or pip), VS Code (the user mcp.json opened with MCP: Open User Configuration, or a workspace's .vscode/mcp.json), Zed and Zencoder, and suggests the MCP inspector for debugging. The server speaks the 2026-07-28 and 2025-11-25 versions of the protocol over stdio with nothing to configure, and it never asks a client for Roots.

The modelcontextprotocol/servers README lists Git among a small number of reference servers maintained by the MCP steering group to demonstrate MCP features and the official SDKs, and says the repository is managed by Anthropic but built together with the community. The server's README puts it under the MIT License; the repository README puts new contributions under the Apache License 2.0 and existing code under MIT.

Sources: github.com/modelcontextprotocol/servers/tree/main/src/git and /modelcontextprotocol/servers, read 2026-10-27

Git MCP Server pros and cons

Pros

  • Passing --repository confines tool calls to that repository: a repo_path outside it comes back as an error.
  • A failed call returns a result marked isError whose text names the tool and the error, so the model can read it and correct the call.
  • git_log filters commits by start and end timestamps given in ISO 8601, as relative dates such as '2 weeks ago' or as absolute dates.
  • The README's configuration entries need no API key or token.

Cons

  • Its functionality and tools are subject to change and expansion while it is in early development.
  • The repository README presents its servers as educational examples, not production-ready solutions, and tells developers to evaluate their own security requirements.
  • A --repository path inside a subdirectory still allows tool calls anywhere in the enclosing repository, not only under that subdirectory.

Tagged

  • Self-hostable
  • CLI
  • MCP Support
  • Git Integration
  • Open Source

Git MCP Server alternatives

More from MCP Servers.

  1. 01
    Sequential Thinking MCP Server

    Reference MCP server with one sequential_thinking tool for step-by-step reasoning that can revise and branch.

    Free →
  2. 02
    Memory MCP Server

    Reference MCP server that keeps an AI client's memory in a local knowledge graph of entities and relations.

    Free →
  3. 03
    Fetch MCP Server

    Reference MCP server in Python that fetches a URL and returns the page as markdown, readable in chunks.

    Free →
  4. 04
    GitHub MCP Server

    GitHub's official MCP server, hosted by GitHub or run locally, with toolsets for repos, issues, PRs, Actions.

    Free →
  5. 05
    Filesystem MCP Server

    Reference MCP server in Node.js that lets AI clients read, write, edit and search files in folders you allow.

    Free →
  6. 06
    Scento Perfume API

    Free perfume knowledge connector for AI assistants: 1,400+ perfumes and 400+ raw materials over MCP or REST.

    →

Related reading

Reviews
No reviews yet — be the first to rate Git MCP Server.

Featured on Vibedonalds

Own Git MCP Server? Add this badge to your site to show you’re listed — and link back to your profile here.

Git MCP Server — Featured on Vibedonalds
<a href="https://vibedonalds.com/tools/mcp-git" target="_blank" rel="noopener nofollow">
  <img src="https://vibedonalds.com/badge/featured-on-vibedonalds.svg" alt="Git MCP Server — Featured on Vibedonalds" width="240" height="60" loading="lazy" />
</a>

Frequently asked questions

What is Git MCP Server?
Git MCP Server is a reference MCP server in Python that lets an LLM read, diff, stage, commit and branch in a Git repository.
Is Git MCP Server free?
Git MCP Server is free to use. There is no paid tier as of the last index update.
What are the alternatives to Git MCP Server?
Similar tools in MCP Servers on vibedonalds: Sequential Thinking MCP Server, Memory MCP Server, Fetch MCP Server, GitHub MCP Server.
What are the downsides of Git MCP Server?
Its functionality and tools are subject to change and expansion while it is in early development. The repository README presents its servers as educational examples, not production-ready solutions, and tells developers to evaluate their own security requirements. A --repository path inside a subdirectory still allows tool calls anywhere in the enclosing repository, not only under that subdirectory.
How do I install the Git MCP Server?
The README recommends uv: uvx mcp-server-git runs the server with no separate installation. Otherwise, pip install mcp-server-git and run python -m mcp_server_git, or use the mcp/git Docker image with the folder you want it to reach mounted. Adding --repository path/to/git/repo limits it to one repository.
How do I use it with Claude Desktop or VS Code?
For Claude Desktop, add an mcpServers entry to claude_desktop_config.json that runs uvx mcp-server-git --repository path/to/git/repo. In VS Code, run MCP: Open User Configuration from the Command Palette and add a servers entry that runs uvx mcp-server-git to your user mcp.json, or put it in .vscode/mcp.json to share it with others.
Can I use it with Cursor or Claude Code?
The README has no Cursor or Claude Code instructions: it covers Claude Desktop, VS Code, Zed and Zencoder. The repository README's general advice is that a server should be configured into an MCP client rather than run on its own.
Does the Git MCP Server have a blame or push tool?
No, the README lists neither: its tools are git_status, git_diff_unstaged, git_diff_staged, git_diff, git_commit, git_add, git_reset, git_log, git_create_branch, git_checkout, git_show and git_branch.
Is the Git MCP Server free, and who maintains it?
Its README says it is licensed under the MIT License, so you are free to use, modify and distribute it, and the repository README puts new contributions under the Apache License 2.0. It is one of the reference servers in modelcontextprotocol/servers, maintained by the MCP steering group.