
Git
@modelcontextprotocol
About Git
Model Context Protocol Servers
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"path/to/git/repo"
]
}
}
}Tools
24`repo_path` (string): Path to Git repository
Current status of working directory as text output
`repo_path` (string): Path to Git repository
Diff output of unstaged changes
`repo_path` (string): Path to Git repository
Diff output of staged changes
`repo_path` (string): Path to Git repository
Diff output comparing current state with target
`repo_path` (string): Path to Git repository
Confirmation with new commit hash
`repo_path` (string): Path to Git repository
Confirmation of staged files
`repo_path` (string): Path to Git repository
Confirmation of reset operation
`repo_path` (string): Path to Git repository
Array of commit entries with hash, author, date, and message
`repo_path` (string): Path to Git repository
Confirmation of branch creation
`repo_path` (string): Path to Git repository
Confirmation of branch switch
`repo_path` (string): Path to Git repository
Contents of the specified commit
`repo_path` (string): Path to the Git repository.
List of branches
Overview
What is Git?
A Model Context Protocol (MCP) server that provides tools for LLMs to read, search, and manipulate Git repositories. It enables automated repository interaction and version control operations through a standard MCP interface.
How to use Git?
Install with uvx mcp-server-git (no explicit install needed) or via pip install mcp-server-git. Add the server configuration to your MCP client (Claude Desktop, VS Code, Zed, or Zencoder) specifying the repository path with --repository. Run directly with python -m mcp_server_git if installed via pip.
Key features of Git
- Show working tree status with
git_status - View unstaged, staged, or branch/commit diffs
- Stage and commit changes with
git_addandgit_commit - Create and switch branches with
git_create_branchandgit_checkout - List branches with flexible filtering via
git_branch - View commit logs with optional date range filtering
Use cases of Git
- Allow LLM agents to automatically stage and commit code changes
- Enable code review by comparing branches or commits
- Automate repository workflows like branch creation and checkout
- Provide commit history analysis for debugging or reporting
- Let non-technical users interact with git via natural language
FAQ from Git
What does this server do vs using git directly?
It wraps Git operations into MCP tools that LLMs can call programmatically, allowing automated repository interaction without manual command-line input.
What are the runtime requirements?
Python and either uv (recommended) or pip. For Docker usage, Docker must be installed, and directories are mounted as bind mounts for repository access.
How do I install it?
Use uvx mcp-server-git (no explicit install) or pip install mcp-server-git. For Docker, build with docker build -t mcp/git . from the source directory.
How can I debug the server?
Run the MCP inspector: npx @modelcontextprotocol/inspector uvx mcp-server-git. Or check Claude logs with tail -f ~/Library/Logs/Claude/mcp*.log.
Is this stable?
The server is currently in early development; tools and functionality are subject to change and expansion.
More Version Control MCP servers

Github
modelcontextprotocolModel Context Protocol Servers
MCP Atlassian Server (by phuc-nt)
phuc-ntMCP server connecting AI assistants with Jira & Confluence for smart project management.
Atlassian Jira MCP Server
aashariNode.js/TypeScript MCP server for Atlassian Jira. Equips AI systems (LLMs) with tools to list/get projects, search/get issues (using JQL/ID), and view dev info (commits, PRs). Connects AI capabilities directly into Jira project management and issue tracking workflows.
GitMCP
idosalPut an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
MCP Linear
tacticlaunchMCP server that enables AI assistants to interact with Linear project management system through natural language, allowing users to retrieve, create, and update issues, projects, and teams.
Comments