Back to MCP Servers
Git Server
Git repository operations including status, diff, commit, branch management, and history
gitvcsversion-controlofficial
By Anthropic
Installation
npm install -g @anthropic-ai/mcp-server-gitConfiguration
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@anthropic-ai/mcp-server-git",
"--repository",
"/path/to/your/repo"
]
}
}
}How to use
- Run the installation command above (if needed)
- Open your Claude Code settings file (~/.claude/settings.json)
- Add the configuration to the mcpServers section
- Restart Claude Code to apply changes