Git MCP Server
ECOSYSTEM REFERENCENO AUTHMITOriginally built by @Anthropic
Let your AI assistant interact with Git repositories directly. Status, diff, commit, branch, and log — all accessible to your LLM through 12 Git tools.
Setup Guide
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository", "/path/to/your/repo"
]
}
}
}
Tools
git_status
Shows the working tree status of a Git repository.
git_diff_unstaged
Shows changes in the working directory that are not yet staged for commit.
git_diff_staged
Shows changes that are staged and ready to be committed.
git_diff
Shows differences between branches or commits with configurable context lines.
git_commit
Records staged changes to the repository with a commit message.
git_add
Adds specified file paths to the Git staging area.
git_reset
Unstages all currently staged changes.
git_log
Shows commit history with optional max count and date range filtering.
git_create_branch
Creates a new branch from the current or specified base branch.
git_checkout
Switches the working directory to a different branch.
git_show
Shows the full contents of a specific commit by hash, branch, or tag.
git_branch
Lists local, remote, or all branches with optional commit containment filtering.
Compatibility
About
The Git MCP Server is part of the official MCP server collection maintained by Anthropic. It gives your AI assistant full read and write access to Git repositories — from checking status and viewing diffs to creating branches and making commits.
When to use this vs built-in Git
Most AI-powered IDEs (Cursor, Claude Code) already have some Git awareness. This server is useful when you want your AI to have explicit, granular Git control — staging specific files, creating branches, viewing commit logs with date filtering, or comparing diffs between arbitrary revisions.
12 Git tools at a glance
The server exposes a comprehensive Git toolkit:
| Tool | What it does |
|---|---|
git_status | Working tree status |
git_diff_unstaged | Unstaged changes |
git_diff_staged | Staged changes |
git_diff | Diff between any two refs |
git_commit | Create a commit |
git_add | Stage files |
git_reset | Unstage all changes |
git_log | Commit history with date filters |
git_create_branch | Create a new branch |
git_checkout | Switch branches |
git_show | View a commit's contents |
git_branch | List branches |
Python requirement
This server is Python-based. Install with uvx (recommended — zero setup) or pip install mcp-server-git.
Docker installation (sandboxed)
json{ "mcpServers": { "git": { "command": "docker", "args": [ "run", "--rm", "-i", "--mount", "type=bind,src=/path/to/your/repo,dst=/workspace", "mcp/git" ] } } }
Security considerations
This server can write to your repository — it can stage, commit, create branches, and reset changes. Only point it at repositories where you're comfortable with AI-initiated writes. Review any AI-generated commits before pushing.
Common issues
"Repository not found"
Pass the absolute path to your repo via --repository /absolute/path. Relative paths can fail depending on the working directory the server starts in.
Commits not showing your name
The server uses your local Git config (user.name and user.email). Make sure these are set in the target repo or globally.
This server can be set up manually using the configs above. Browse AgenticMarket for servers you can install in one command with zero config.
BROWSE INSTALLABLE SERVERS →Fetch MCP Server
Give your AI assistant the ability to read any web page. The official Fetch server converts HTML to markdown so your LLM can process web content, read documentation, and scrape data in real time.
Filesystem MCP Server
Give your AI assistant read and write access to local files and directories. The most-used MCP server — lets Claude, Cursor, and other AI tools work with your filesystem directly.
Everything MCP Server
The official MCP reference server that exercises every protocol feature — prompts, tools, resources, sampling, and all transports. Built for MCP client developers and testing.
Time MCP Server
Give your AI assistant awareness of the current time and timezone conversions. Query the current time in any timezone and convert between timezones using IANA names.
AgenticMarket