Requires Node 18+ on your system so npx can fetch the package on first run. Claude Code persists MCP servers via its CLI — no config file to edit, just run the command below once. Paste the config below, then follow the reload step to register @cyanheads/git-mcp-server.
Run the command below in your terminal — Claude Code persists it for you.claude mcp add git-mcp-server --env MCP_TRANSPORT_TYPE=stdio --env MCP_LOG_LEVEL=info --env GIT_BASE_DIR=~/Developer/ --env LOGS_DIR=~/Developer/logs/git-mcp-server/ --env GIT_USERNAME=cyanheads --env GIT_EMAIL=casey@caseyjhand.com --env GIT_SIGN_COMMITS=true -- npx @cyanheads/git-mcp-server@latest