Back to MCP Servers
🔀
Git MCP Server
by Anthropic
Reference implementation for Git operations. Read repository status, history, and diffs.
Reference Implementation
Developer Tools
Deployment Type
💻Local
Runs on your local machine
Authentication
✓No Auth Required
No authentication needed
Installation
Easy
Quick setup, minimal config
Use Cases
Common ways to use this MCP server
Repository analysis
Commit history
Diff review
Branch management
Ideal For
This server is perfect for these roles and teams
Developers
Code Reviewers
DevOps Engineers
Installation
Quick start guide for setting up this MCP server
1. Install via npx
npx -y @modelcontextprotocol/server-git2. Add to Claude Desktop config
Edit claude_desktop_config.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git"]
}
}
}3. Restart Claude Desktop
Close and reopen Claude Desktop to load the new MCP server.
Related MCP Servers
Other servers you might find useful
Learn More About Model Context Protocol
Understand how MCP works and how to build your own servers