MCP server · Reference servers
Git MCP server
Reference MCP server that lets an agent run common git operations against a local repository.
Verified · editorial policy
Git MCP server TL;DR
- Server
- Git MCP server
- Vendor
- Anthropic (reference)
- Category
- Reference servers
- Distribution
- npm package (runs locally)
- TL;DR
- The Git reference server wraps the local git CLI in MCP tools so an agent can read history, inspect diffs, stage changes, and create commits without shelling out. Pairs naturally with the Filesystem server when an agent is editing code in a repo. The right baseline for any code-editing workflow that needs version control awareness.
- Founder fit
- If you are shipping daily on your indie SaaS and want Claude to help you review what changed, draft commit messages, or trace a regression to its introducing commit, this server gives the assistant first-class git access against your local repo.
- Last verified
- May 22, 2026
What an agent can do with it
Read history and diffs
Walk commits, inspect diffs, blame lines.
Stage and commit
Stage selected paths, draft commit messages, commit.
Branch inspection
List branches, switch context, compare branches.
Why an indie SaaS founder cares
If you are shipping daily on your indie SaaS and want Claude to help you review what changed, draft commit messages, or trace a regression to its introducing commit, this server gives the assistant first-class git access against your local repo.
Install
Access: Local, free, requires git installed on the host.
Claude Desktop
Add the following block to your claude_desktop_config.json and restart Claude:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git"]
}
}
}Cursor
Add the following block to .cursor/mcp.json in your home directory or project root:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git"]
}
}
}Install snippets are derived from the vendor's published distribution shape. If your client is neither Claude Desktop nor Cursor, see the vendor docs for client-specific configuration.
Git MCP server – FAQ
Does the Git server push to remotes?
Out of the box it focuses on local operations; review the latest tool list before relying on push semantics in automated flows.
Can I scope it to one repository?
Yes – pass the repository path at startup and the server operates against that working tree.
Related MCP servers
Filesystem MCP server
Reference MCP server that gives an agent scoped read and write access to a directory on the local filesystem.
Memory MCP server
Reference MCP server that gives an agent a persistent key-value knowledge graph it can read and write across sessions.
Fetch MCP server
Reference MCP server that lets an agent fetch a URL and convert the response to a representation suited to the model.
Want an agent that knows your SaaS offer?
Install the UnlockSaaS MCP server alongside this one and the assistant can diagnose your live landing page, pull funnel and pricing teardowns of competitors, and walk the Brunson Playbook with you.