OfficialReference serverslocal stdio

Git MCP Server

Lets agents read, search and change local Git repositories.

Install

Claude Desktop

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

Copilot (VS Code)

{"servers":{"git":{"command":"uvx","args":["mcp-server-git"]}}}

Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.

Git MCP Server is a Python reference server (mcp-server-git) for working with local Git repositories.

The Git MCP server lets agents read, search and change local Git repositories. Published as mcp-server-git among the Model Context Protocol reference servers under the MIT license, it runs locally over stdio with no authentication, via uvx, pip or Docker, and can be pinned to one repository. The configuration below covers Claude Desktop and Copilot in VS Code.

Tools include git_status, the git_diff variants, git_commit, git_add, git_reset, git_log, git_create_branch, git_checkout, git_show and git_branch.

Questions

What tools does the Git MCP server provide?
Tools include git_status, the git_diff variants, git_commit, git_add, git_reset, git_log, git_create_branch, git_checkout, git_show and git_branch.
Can I limit the Git MCP server to one repository?
Yes. It can be pinned to one repository, as the Claude Desktop configuration does with --repository.
How do I run mcp-server-git?
It runs via uvx, pip or Docker; the configurations here use uvx.
Does the Git MCP server need authentication?
No. It runs locally over stdio without authentication.

Sources

Checked October 2, 2026.

Reference servers

View all
Aftergradient

What are you looking for?

Search commands, errors, tools