Git MCP Server
Repository operations like status, diffs, and commits for MCP-compatible clients.
Data last scanned yesterday · Reviewed last month
Overview
Git MCP Server enables AI models to interact directly with local Git repositories. It provides tools for status checks, log retrieval, branch management, and file diffing, allowing users to perform repository operations through an MCP-compliant interface.
Our verdict
This server carries a high-risk score of 18/100, primarily due to it being an unverified community project with no recent updates for over 400 days. Given the lack of editorial review and the potential for repository modification, it should only be used in isolated, low-stakes environments rather than production development workflows.
- Uses only two direct dependencies
- Provides comprehensive Git command coverage
- Includes documented installation and usage instructions
- Released under an MIT license
- Last commit was 404 days ago
- Only one contributor maintains the project
- Security and authentication mechanisms remain unreviewed
Setup
{
"mcpServers": {
"git-mcp-server": {
"args": [
"-y",
"git-mcp-server"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| git_status | Get current git status | low |
| git_current_branch | Get current branch name | low |
| git_staged_changes | Get staged changes | low |
| git_working_directory | Get current working directory info | low |
| git_diff | Show diff between branches/commits | low |
| git_log | Get commit history | low |
| git_show_file | Show file contents at specific commit | low |
| git_branches | List all branches | low |
| git_checkout | Switch to different branch or create new branch | medium |
| git_add | Add files to staging area | medium |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| ChatGPT | ||||
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf |
Frequently asked questions
›What software prerequisites are required to run this server?
You must have Node.js 18 or higher, npm or yarn, and Git installed on your system.
›How does the server determine which repository to act upon?
The server automatically detects the Git repository based on your current working directory.
›Can I use this server with multiple project directories?
Yes, the server supports multiple project directories and will work seamlessly across them based on the context of the current working directory.
›Is it possible to perform remote operations like pushing or pulling?
Yes, the server supports remote operations including push, pull, and fetch commands.
Alternatives
Badge
Maintain this server? Add the live badge to your README.