Cost Guard MCP

io.github.mcpsmiths/cost-guard-mcp

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "cost-guard-mcp": {
      "command": "uvx",
      "args": [
        "cost-guard-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<your GOOGLE_APPLICATION_CREDENTIALS>",
        "SNOWFLAKE_PRIVATE_KEY_PATH": "<your SNOWFLAKE_PRIVATE_KEY_PATH>",
        "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<your SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
        "SNOWFLAKE_PASSWORD": "<your SNOWFLAKE_PASSWORD>",
        "DATABRICKS_TOKEN": "<your DATABRICKS_TOKEN>",
        "DATABRICKS_CLIENT_SECRET": "<your DATABRICKS_CLIENT_SECRET>"
      }
    }
  }
}
Environment variables
  • GOOGLE_APPLICATION_CREDENTIALSsecretBigQuery: path to a service-account key file (Application Default Credentials). Required to use the bigquery engine.
  • SNOWFLAKE_PRIVATE_KEY_PATHsecretSnowflake: path to an RSA private key file for key-pair auth (preferred over SNOWFLAKE_PASSWORD). Either this or SNOWFLAKE_PASSWORD is required to use the snowflake engine.
  • SNOWFLAKE_PRIVATE_KEY_PASSPHRASEsecretSnowflake: passphrase for an encrypted SNOWFLAKE_PRIVATE_KEY_PATH key file, if the key is encrypted.
  • SNOWFLAKE_PASSWORDsecretSnowflake: password (discouraged; prefer SNOWFLAKE_PRIVATE_KEY_PATH). Either this or SNOWFLAKE_PRIVATE_KEY_PATH is required to use the snowflake engine.
  • DATABRICKS_TOKENsecretDatabricks: personal access token (simplest auth option). Either this or DATABRICKS_CLIENT_ID + DATABRICKS_CLIENT_SECRET is required to use the databricks engine.
  • DATABRICKS_CLIENT_SECRETsecretDatabricks: OAuth machine-to-machine service-principal client secret. Requires DATABRICKS_CLIENT_ID as well.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.6.0
Registry
active
Published
10/19/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that Cost Guard MCP is listed here — it’s also the link we check for a free listing.

Cost Guard MCP — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-mcpsmiths-cost-guard-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Cost Guard MCP — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Cost Guard MCP — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-mcpsmiths-cost-guard-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.