Skip to content
Cursor

Cost Guard MCP for Cursor

io.github.mcpsmiths/cost-guard-mcp

Pre-flight query cost and result-size guardrails for AI agents on BigQuery, Snowflake, Databricks

client:Cursor transport:stdio runtime:pypi

Install Cost Guard MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "cost-guard-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cost-guard-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "SNOWFLAKE_ACCOUNT": "<SNOWFLAKE_ACCOUNT>",
        "SNOWFLAKE_USER": "<SNOWFLAKE_USER>",
        "SNOWFLAKE_ROLE": "<SNOWFLAKE_ROLE>",
        "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
        "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
        "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
        "DATABRICKS_SERVER_HOSTNAME": "<DATABRICKS_SERVER_HOSTNAME>",
        "DATABRICKS_HTTP_PATH": "<DATABRICKS_HTTP_PATH>",
        "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
        "DATABRICKS_CLIENT_ID": "<DATABRICKS_CLIENT_ID>",
        "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Cost Guard MCP in other clients