Skip to content

Git MCP Server

Read history, diffs and branches and make commits in a local Git repository.

Reference serverby Model Context ProtocolRuns on your computerChecked November 8, 2026

The Git reference server (mcp-server-git) is the MCP project's own git MCP server: it gives Claude 14 fixed tools for local repositories, covering status, diffs, history, branches, merges, staging and commits. It cannot push, pull or fetch, and it never talks to GitHub. It is handy in chat apps such as Claude Desktop that cannot run shell commands, while Claude Code can already run git on its own.

Who is Git MCP for?

  • Claude Desktop users working with a local repository
  • Developers who want a small, predictable set of Git actions
  • People learning how MCP servers are built

What can you ask Git MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Show me what changed in this repository since yesterday and summarize it in plain English.
Prompt 2
Create a branch called fix-typos, stage the edited README and commit it with a short message.
Prompt 3
Which branches contain the commit that added the login page?

How to add the Git MCP server to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the Git MCP server to Claude Code for me: run this command: claude mcp add --transport stdio git -- uvx mcp-server-git --repository /ABSOLUTE/PATH/TO/REPO
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add --transport stdio git -- uvx mcp-server-git --repository /ABSOLUTE/PATH/TO/REPO

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

If commits come out under your system user name, set GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL and the matching GIT_COMMITTER values in the server's env block. A Docker image (mcp/git) is also available.

How did we check Git MCP?

On November 8, 2026 we read the server's README in the modelcontextprotocol/servers repo (last change to the folder on November 4, 2026; 91,868 stars) and PyPI: mcp-server-git 2026.11.4, published November 4, 2026, MIT, for Python 3.10 or newer. The README still calls it early development. On November 22, 2026 PyPI listed mcp-server-git 2026.11.18, published November 18, 2026, as the latest release.

Source: github.com/modelcontextprotocol/servers/tree/main/src/git

What do people ask about Git MCP?

Is this the same as GitHub's own server?

No. GitHub's server works through the GitHub API with issues, pull requests and Actions, and needs a GitHub sign-in. This one reads and writes the Git history of a folder on your computer, with no account.

Is it the same as GitMCP?

No. GitMCP (gitmcp.io) is a separate hosted service: you swap github.com for gitmcp.io in a public repository's address so AI tools can read that project's docs. It reads documentation and never touches your local repository.

Can the Git MCP server push my commits to GitHub?

No. Its 14 tools stop at local commits, branches and merges, with no push, pull or fetch. Push from a terminal or a Git app, or use Claude Code, which runs git commands directly.

What happens if I leave out --repository?

Each tool call then names its own repo_path, and the server can read and write any Git repository the process can reach, commits included. Pass --repository /path/to/repo to keep it inside one.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Using servers like Git from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.