← Back to browse

git-mcp-server

Indexed by io.github.cyanheads

About

Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsMCP_LOG_LEVEL GIT_BASE_DIR
Claude Code
claude mcp add --env MCP_LOG_LEVEL= --env GIT_BASE_DIR= git-mcp-server -- npx @cyanheads/git-mcp-server
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"git-mcp-server","command":"npx","args":["@cyanheads/git-mcp-server"],"env":{"MCP_LOG_LEVEL":"","GIT_BASE_DIR":""}}'
JSON
{
  "mcpServers": {
    "git-mcp-server": {
      "command": "npx",
      "args": [
        "@cyanheads/git-mcp-server"
      ],
      "env": {
        "MCP_LOG_LEVEL": "",
        "GIT_BASE_DIR": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.