Git MCP Server
ECOSYSTEM REFERENCENO AUTHApache-2.0Open SourceSource: @agenticmarket· community reference
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-mcp-server": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"path/to/git/repo"
]
}
}
}Tools
git_status
Shows the current working tree status of a Git repository, including tracked, untracked, modified, and staged files.
git_diff_unstaged
Displays differences in the working directory for changes that have not yet been staged for commit.
git_diff_staged
Displays differences for changes that have been staged and are ready to be committed.
git_diff
Shows differences between commits, branches, or files with configurable context lines for detailed comparison.
git_commit
Creates a new commit with staged changes, typically including a commit message describing the changes.
git_add
Adds specified file paths to the Git staging area in preparation for committing.
git_reset
Unstages changes that are currently in the staging area, optionally resetting them to a previous state.
git_log
Displays commit history with options for limiting the number of commits and filtering by date range.
git_create_branch
Creates a new branch from the current branch or a specified base branch.
git_checkout
Switches the working directory to a different branch or commit.
git_show
Shows detailed information about a specific commit, branch, or tag, including diffs and metadata.
git_branch
Lists local and remote branches with optional filtering, and can show branch relationships or commit containment.
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.
Install and Troubleshooting Intent Coverage
Developer-install and troubleshooting intent for community MCP server listings.
install mcp server / mcp server setup guide
mcp json config example / vscode mcp setup
mcp server not working / mcp tools not showing
mcp server compatibility matrix / cursor vs vscode mcp compatibility
mcp server monetization options / convert community mcp server to paid listing
Related Setup, Debug, and Learning Links
Server registry requirements
Devtool listings often graduate from explore to registry.
Publish server guide
Action path for maintainers ready to list production versions.
CLI installation guide
Install baseline for all IDEs before listing-specific setup.
Using servers guide
Covers runtime usage patterns and auth flow.
Cursor setup walkthrough
High-intent setup path for developer troubleshooting journeys.
Troubleshooting: server not working
Common failure modes for install and runtime issues.
Troubleshooting: tools not showing
Covers discovery/listing failures across major IDEs.
Related explore entry: FreshContext
Keeps same-intent users on matched category and tool shape.
Related explore entry: Memory
Keeps same-intent users on matched category and tool shape.
Related explore entry: Roundtable MCP
Keeps same-intent users on matched category and tool shape.
Related explore entry: Sequential Thinking
Keeps same-intent users on matched category and tool shape.
Install this server instantly with the AgenticMarket CLI — zero config, auto-detects your IDE.
$npx agenticmarket install git-mcp-serverFreshContext
Freshness-aware MCP server with 21 tools for timestamped, decay-ranked retrieval signals across GitHub, HN, jobs, research, market data, and more.
Memory
Give your AI assistant persistent memory across conversations. The Memory server stores entities, relations, and observations in a local knowledge graph that persists between sessions.
Roundtable MCP
Multi-model AI council MCP server that enables collaborative reasoning for architecture, debugging, code review, and engineering decisions.
Sequential Thinking
Enhance your AI assistant's reasoning with structured, step-by-step thinking. Supports revisions, branching, and dynamic adjustment of reasoning depth.
AgenticMarket