Install guide · Claude Desktop
Install Cost Guard MCP for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
Add to Cursor: Cost Guard MCPInstall in VS Code: Cost Guard MCPInstall in VS Code Insiders: Cost Guard MCP
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "mcpsmiths-cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "YOUR_GOOGLE_APPLICATION_CREDENTIALS", "SNOWFLAKE_ACCOUNT": "", "SNOWFLAKE_USER": "", "SNOWFLAKE_ROLE": "", "SNOWFLAKE_SECONDARY_ROLES": "", "SNOWFLAKE_PRIVATE_KEY_PATH": "YOUR_SNOWFLAKE_PRIVATE_KEY_PATH", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "YOUR_SNOWFLAKE_PRIVATE_KEY_PASSPHRASE", "SNOWFLAKE_PASSWORD": "YOUR_SNOWFLAKE_PASSWORD", "SNOWFLAKE_EDITION": "", "DATABRICKS_SERVER_HOSTNAME": "", "DATABRICKS_HTTP_PATH": "", "DATABRICKS_TOKEN": "YOUR_DATABRICKS_TOKEN", "DATABRICKS_CLIENT_ID": "", "DATABRICKS_CLIENT_SECRET": "YOUR_DATABRICKS_CLIENT_SECRET", "COST_GUARD_ALLOW_MULTI_STATEMENT_SQL": "", "COST_GUARD_ALLOW_WRITE_STATEMENTS": "", "COST_GUARD_MAX_IN_FLIGHT_QUERIES": "", "COST_GUARD_DATABRICKS_ALLOW_WAREHOUSE_START": "", "COST_GUARD_SNOWFLAKE_ALLOW_WAREHOUSE_RESUME": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |