MCP Server

Git MCP Server
Inspect and operate on local Git repositories through tools for status, diffs, history, staging, commits, branches, and repository content.
What is Git MCP Server?
Git MCP Server is an official reference implementation that translates common local Git operations into structured MCP tools. It supports repository inspection and controlled mutations, making the configured repository boundary and client approval behavior important parts of deployment.
Key capabilities
Repository inspection
Exposes working-tree status, staged and unstaged diffs, logs, branches, and commit contents.
Git workflow actions
Can stage files, create commits, manage branches, and update the index through structured tool calls.
Use cases
Review repository state
Give an agent structured access to changes, history, branches, and commit details.
Automate local Git steps
Stage selected files, create commits, and manage branches through explicit tool calls.
MCP capabilities
Tools
git_status
git_diff
git_log
git_add
git_commit
git_create_branch
Connection and auth
- Git
- Python with uvx or pip
Client configuration
Claude Desktop
{
"command": "uvx",
"args": ["mcp-server-git", "--repository", "/path/to/repository"]
}