Git MCP Server
Lets agents read, search and change local Git repositories.
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?
Can I limit the Git MCP server to one repository?
--repository.How do I run mcp-server-git?
Does the Git MCP server need authentication?
Sources
Checked October 2, 2026.
Reference servers
View all- Fetch MCP ServerFetches a URL and converts the page to markdown for the model, in chunks.Official
- Filesystem MCP ServerGives agents controlled read and write access to files in directories you allow.Official
- Memory MCP ServerGives the model persistent memory as a local knowledge graph of entities, relations and observations.Official
- Sequential Thinking MCP ServerGives the model a structured tool for step-by-step reasoning that it can revise and branch.Official
