About
Overview
The Git MCP Server enables AI agents to perform Git operations on local repositories. It provides tools for reading repository status, viewing diffs, creating commits, managing branches, and browsing commit history. Focuses on read operations and safe write operations.
Capabilities
Tools & Capabilities
⚡status
Get the current repository status
⚡diff
Show changes between commits or working tree
⚡log
View commit history
⚡show
Show the contents of a commit
⚡branch
List or create branches
⚡commit
Create a new commit with staged changes
Setup
Installation
bash
Install
npx -y @modelcontextprotocol/server-gitExamples
Example Usage
javascript
Usage
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git", "--repository", "/path/to/repo"]
}
}
}Quick Info
AuthorAnthropic
LanguageTypeScript
StatusStable
Stars★ 680
Last UpdatedFeb 12, 2026