Cost Guard MCP server
io.github.mcpsmiths/cost-guard-mcp·v0.6.0·1 starsPre-flight query cost and result-size guardrails for AI agents on BigQuery, Snowflake, Databricks
not scanned yet
1 stars
Reviews
Write oneNobody has reviewed Cost Guard MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Cost Guard MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
How Cost Guard MCP compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 55% of 802 Databases servers
- GitHub stars
- 1
- more than 45% of 602 Databases servers
Release history: 6 versions in the registry since 2026-09-14, latest 2026-10-19, typically one every 4 days.
Install Cost Guard MCP in Claude Code, Cursor or VS Code
claude mcp add cost-guard-mcp -- uvx cost-guard-mcp
What the publisher says
From the Cost Guard MCP repository's README, as published. We do not edit it. Read it on GitHub
cost-guard-mcp
<!-- mcp-name: io.github.mcpsmiths/cost-guard-mcp -->
Pre-flight query cost & result-size guardrails for AI agents, across BigQuery, Snowflake, and Databricks — before the query ever runs.
Why
An AI agent using a warehouse MCP can silently trigger a full-table scan that costs hundreds of dollars, or return millions of rows that flood its own context window. No existing warehouse MCP tells the agent "how much will this cost" or "how much data will this return" before running the query.
What makes this different
- Every cost estimate discloses its accuracy tier — PRECISE (BigQuery dryRun), UPPER_BOUND (Snowflake EXPLAIN), or HEURISTIC (Databricks EXPLAIN COST) — so your agent never over-trusts a heuristic number.
- Per-call bounds — runquerybounded takes maxbytesbilled / maxrows / maxestimatedcostusd on each call; no shared session state required.
- Zero infrastructure — a single local stdio process. No database, no gateway, no Docker Compose.
Tools
- check_credentials(engine, warehouse?) — verifies credentials/connectivity without running any real query; call this first after configuring a new engine. Supports BigQuery, Snowflake, and Databricks.
- describeenginecapabilities(engine) — what's exact vs. approximate for this engine.
- estimatequerycost(engine, sql, warehouse?, warehousesize?, edition?) — pre-flight cost estimate, tagged with its accuracy tier. Supports BigQuery, Snowflake, and Databricks. warehousesize (Snowflake/Databricks) and edition (Snowflake) default to the smallest/standard tier if omitted — set them to match the warehouse you actually run on, or the dollar figure understates cost on a larger one.
- runquerybounded(engine, sql, maxbytesbilled?, maxrows?, maxestimatedcostusd?, warehouse?, warehouse_size?, edition?) — refuses to run if the estimate exceeds your bound. Supports BigQuery, Snowflake, and Databricks.
Setup
BigQuery
Set GOOGLEAPPLICATIONCREDENTIALS to a service-account key file path (or run gcloud auth application-default login).
Snowflake
Set SNOWFLAKEACCOUNT, SNOWFLAKEUSER, SNOWFLAKEROLE (required — no default, never ACCOUNTADMIN), and either SNOWFLAKEPRIVATEKEYPATH (preferred) or SNOWFLAKE_PASSWORD (discouraged).
Databricks
Set DATABRICKSSERVERHOSTNAME and DATABRICKSHTTPPATH (from the SQL warehouse's Connection Details tab), and either DATABRICKSTOKEN (a personal access token, simplest) or DATABRICKSCLIENTID + DATABRICKSCLIENT_SECRET (OAuth machine-to-machine via a service principal, preferred for automated use). Only Serverless SQL warehouses are priced accurately — see Known Limitations.
A note on credentials with MCP hosts
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-09-19downgradeA → Bscore 82
Cost Guard MCP: common questions
- Is Cost Guard MCP server safe?
- Mostly: it is graded B (82/100). Read the Cost Guard MCP safety report
- How do I install Cost Guard MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Cost Guard MCP need an API key?
- Yes. The registry entry asks for
GOOGLE_APPLICATION_CREDENTIALS,SNOWFLAKE_PRIVATE_KEY_PATH,SNOWFLAKE_PRIVATE_KEY_PASSPHRASE,SNOWFLAKE_PASSWORDand 2 more. - Is Cost Guard MCP maintained?
- The last commit was 37 days ago (2026-09-28). The latest release is v0.6.0.
- What can I use instead of Cost Guard MCP?
- Servers from other publishers that do the same job: Faucet MCP server and OSS Snowflake MCP Server.
- How does Cost Guard MCP compare with other Databases MCP servers?
- safety score 82/100 (higher than 55% of 802 Databases servers); github stars 1 (more than 45% of 602 Databases servers). Full comparison.
Alternatives to Cost Guard MCP
Same job from other publishers: the closest match first, then the best rated.
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA
- OSS Snowflake MCP ServerMCP Server for Snowflake from Snowflake Labsnot reviewedEstablishedB