
Git
Tools to read, search, and manipulate Git repositories
Send to Your Agent
Copy this prompt and paste it into Claude, Cursor, or any MCP client to install instantly.
Install the Git MCP server for me.
Server: Git
Description: Tools to read, search, and manipulate Git repositories
Install command: npx -y @modelcontextprotocol/server-git
GitHub: https://github.com/modelcontextprotocol/servers/tree/main/src/git
Please install this MCP server and confirm when ready. Paste into any AI agent with MCP support — works with Claude Desktop, Cursor, Cline, and more.
Quick Install
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json
- Open Claude Desktop app
- Go to Settings → Developer → Edit Config
- Paste the config below into the file
- Restart Claude Desktop
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
} Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json
Installation Methods
npx -y @modelcontextprotocol/server-gitdocker run -i --rm mcp/gitTools (10)
git_status Shows the working tree status for a Git repository
git_diff_unstaged Shows changes in working directory not yet staged for commit
git_diff_staged Shows changes that are staged for commit
git_diff Shows differences between branches or commits
git_commit Commits staged changes with a message
git_add Stages files for commit
git_reset Unstages files or resets to a specific commit
git_log Shows commit history for a repository
git_branch Lists, creates, or deletes branches
git_checkout Switches branches or restores working tree files
Compatibility
About
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Key Features
- Repository status — Check working tree status at a glance
- Diff viewing — See unstaged, staged, and branch differences
- Commit management — Stage, commit, and view history
- Branch operations — List, create, switch, and delete branches
- Complete Git workflow — Full repository manipulation through natural language
Use Cases
- Code review assistance — "Show me what changed in the last commit"
- Commit message generation — "Stage these files and commit with a descriptive message"
- Branch management — "Create a feature branch and switch to it"
- History exploration — "Show me all commits from last week"
- Diff analysis — "What's the difference between main and this branch?"
Related Resources
GitHub
MCP ServerRepository management, file operations, and GitHub API integration
Git Workflow Expert
SkillImplement professional Git workflows including branching strategies, merge vs rebase decisions, conflict resolution, and team collaboration patterns.
Document Comparison Analyzer
PromptCompare multiple documents side-by-side to identify differences, contradictions, and align content using Gemini 3's multimodal capabilities.
Artificial Intelligence
GlossaryThe broad field of creating machines that can perform tasks requiring human-like intelligence, such as reasoning, learning, and perception.
GitLab
MCP ServerGitLab API, enabling project management
Compare LLM Pricing
This server works with Claude, GPT-4o, and other models. Compare API costs side-by-side to find the cheapest option for your workflow.