Works with local git repositories: list repos, list commits, create and push tags, and refresh.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add git --env GIT_REPOS_PATH='<GIT_REPOS_PATH>' -- uvx git-mcp~/.codex/config.toml
[mcp_servers.git]
command = "uvx"
args = ["git-mcp"]
env = { GIT_REPOS_PATH = "<GIT_REPOS_PATH>" }
# codex mcp add git --env GIT_REPOS_PATH='<GIT_REPOS_PATH>' -- uvx git-mcp~/.cursor/mcp.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"git-mcp"
],
"env": {
"GIT_REPOS_PATH": "<GIT_REPOS_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"git": {
"type": "stdio",
"command": "uvx",
"args": [
"git-mcp"
],
"env": {
"GIT_REPOS_PATH": "<GIT_REPOS_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"git-mcp"
],
"env": {
"GIT_REPOS_PATH": "<GIT_REPOS_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"git-mcp"
],
"env": {
"GIT_REPOS_PATH": "<GIT_REPOS_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"git-mcp"
],
"env": {
"GIT_REPOS_PATH": "<GIT_REPOS_PATH>"
}
}
}
}Environment variables
GIT_REPOS_PATH
Replace the placeholders with your own credentials and keep them out of version control.