Git MCP Server Configuration & Usage Guide
Installationuvx
Risk LevelLow Risk
API KeyNot Required
Clients3 supported
Git repository operations, supporting commit history, diff, branches, and file content reading
Supported Clients
- Claude Desktop
- Cursor
- VS Code / Cline
Installation Command
uvx mcp-server-gitConfiguration Example
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}Permission Scope & Security Notes
只读取 Git 仓库信息,不执行写入操作
- file-read
Risk Score:1/10
Common Errors
- 不是 Git 仓库
- 确认 --repository 路径是有效的 Git 仓库
- uvx 找不到
- 安装 uv:curl -LsSf https://astral.sh/uv/install.sh | sh
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.