Requires Node 18+ on your system so npx can fetch the package on first run. Claude Desktop only speaks stdio locally; HTTP servers are wrapped via npx mcp-remote automatically. Paste the config below, then follow the reload step to register @cyanheads/git-mcp-server.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"@cyanheads/git-mcp-server@latest"
],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"GIT_BASE_DIR": "~/Developer/",
"LOGS_DIR": "~/Developer/logs/git-mcp-server/",
"GIT_USERNAME": "cyanheads",
"GIT_EMAIL": "casey@caseyjhand.com",
"GIT_SIGN_COMMITS": "true"
}
}
}
}