Cost Guard MCP
Estimate query cost and cap result size before an agent runs SQL on a warehouse
Cost Guard MCP is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.6.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add cost-guard-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env SNOWFLAKE_PRIVATE_KEY_PATH='<SNOWFLAKE_PRIVATE_KEY_PATH>' --env SNOWFLAKE_PRIVATE_KEY_PASSPHRASE='<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>' --env SNOWFLAKE_PASSWORD='<SNOWFLAKE_PASSWORD>' --env DATABRICKS_TOKEN='<DATABRICKS_TOKEN>' --env DATABRICKS_CLIENT_SECRET='<DATABRICKS_CLIENT_SECRET>' -- uvx cost-guard-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"cost-guard-mcp": {
"command": "uvx",
"args": [
"cost-guard-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
"SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
"DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
"DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"cost-guard-mcp": {
"command": "uvx",
"args": [
"cost-guard-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
"SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
"DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
"DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cost-guard-mcp": {
"command": "uvx",
"args": [
"cost-guard-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
"SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
"DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
"DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"cost-guard-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"cost-guard-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
"SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
"DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
"DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add cost-guard-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env SNOWFLAKE_PRIVATE_KEY_PATH='<SNOWFLAKE_PRIVATE_KEY_PATH>' --env SNOWFLAKE_PRIVATE_KEY_PASSPHRASE='<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>' --env SNOWFLAKE_PASSWORD='<SNOWFLAKE_PASSWORD>' --env DATABRICKS_TOKEN='<DATABRICKS_TOKEN>' --env DATABRICKS_CLIENT_SECRET='<DATABRICKS_CLIENT_SECRET>' -- uvx cost-guard-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.cost-guard-mcp]
command = "uvx"
args = ["cost-guard-mcp"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>", SNOWFLAKE_PRIVATE_KEY_PATH = "<SNOWFLAKE_PRIVATE_KEY_PATH>", SNOWFLAKE_PRIVATE_KEY_PASSPHRASE = "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", SNOWFLAKE_PASSWORD = "<SNOWFLAKE_PASSWORD>", DATABRICKS_TOKEN = "<DATABRICKS_TOKEN>", DATABRICKS_CLIENT_SECRET = "<DATABRICKS_CLIENT_SECRET>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cost-guard-mcp": {
"command": "uvx",
"args": [
"cost-guard-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>",
"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>",
"SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>",
"DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>",
"DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Or run: gemini mcp add -s user -e GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -e SNOWFLAKE_PRIVATE_KEY_PATH='<SNOWFLAKE_PRIVATE_KEY_PATH>' -e SNOWFLAKE_PRIVATE_KEY_PASSPHRASE='<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>' -e SNOWFLAKE_PASSWORD='<SNOWFLAKE_PASSWORD>' -e DATABRICKS_TOKEN='<DATABRICKS_TOKEN>' -e DATABRICKS_CLIENT_SECRET='<DATABRICKS_CLIENT_SECRET>' cost-guard-mcp uvx -- cost-guard-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "cost-guard-mcp": { "command": "uvx", "args": [ "cost-guard-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>", "SNOWFLAKE_PRIVATE_KEY_PATH": "<SNOWFLAKE_PRIVATE_KEY_PATH>", "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>", "SNOWFLAKE_PASSWORD": "<SNOWFLAKE_PASSWORD>", "DATABRICKS_TOKEN": "<DATABRICKS_TOKEN>", "DATABRICKS_CLIENT_SECRET": "<DATABRICKS_CLIENT_SECRET>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
GOOGLE_APPLICATION_CREDENTIALSBigQuery: path to a service-account key file (Application Default Credentials). Required to use the bigquery engine.SNOWFLAKE_ACCOUNTSnowflake: account identifier. Required to use the snowflake engine.SNOWFLAKE_USERSnowflake: username. Required to use the snowflake engine.SNOWFLAKE_ROLESnowflake: role to assume. Required to use the snowflake engine; has no default and must never be ACCOUNTADMIN (ACCOUNTADMIN, SECURITYADMIN and ORGADMIN are rejected before any Snowflake connection is opened - the check runs when the Snowflake configuration is first loaded, on the first Snowflake tool call; the server process itself starts regardless, so a bad role surfaces as a failed check_credentials or a tool error, not as a startup exit).SNOWFLAKE_SECONDARY_ROLESSnowflake: secondary roles activated at login. NONE (default) means only SNOWFLAKE_ROLE is active in the session; ALL is the explicit opt-out that activates every role granted to SNOWFLAKE_USER.SNOWFLAKE_PRIVATE_KEY_PATHSnowflake: 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_PASSPHRASESnowflake: passphrase for an encrypted SNOWFLAKE_PRIVATE_KEY_PATH key file, if the key is encrypted.SNOWFLAKE_PASSWORDSnowflake: password (discouraged; prefer SNOWFLAKE_PRIVATE_KEY_PATH). Either this or SNOWFLAKE_PRIVATE_KEY_PATH is required to use the snowflake engine.SNOWFLAKE_EDITIONSnowflake: account edition that sets the USD/credit price of estimates - standard (default), enterprise, business_critical or vps. The per-call edition argument can only raise it.DATABRICKS_SERVER_HOSTNAMEDatabricks: SQL warehouse server hostname (e.g. my-workspace.cloud.databricks.com, no scheme, no trailing slash). Required to use the databricks engine.DATABRICKS_HTTP_PATHDatabricks: SQL warehouse HTTP path (from the warehouse's Connection Details tab, e.g. /sql/1.0/warehouses/<warehouse-id>). Required to use the databricks engine.DATABRICKS_TOKENDatabricks: personal access token (simplest auth option). Either this or DATABRICKS_CLIENT_ID + DATABRICKS_CLIENT_SECRET is required to use the databricks engine.DATABRICKS_CLIENT_IDDatabricks: OAuth machine-to-machine service-principal client ID (preferred for automated use). Requires DATABRICKS_CLIENT_SECRET as well.DATABRICKS_CLIENT_SECRETDatabricks: OAuth machine-to-machine service-principal client secret. Requires DATABRICKS_CLIENT_ID as well.COST_GUARD_ALLOW_MULTI_STATEMENT_SQLSet to 1 to let estimate_query_cost/run_query_bounded accept text containing more than one SQL statement. Off by default: the cost cap is only known to cover the single statement the dry run/EXPLAIN priced. Skips only this server's scanner: Snowflake still rejects multi-statement text (sessions are pinned to MULTI_STATEMENT_COUNT=1), and only a single SELECT/WITH/VALUES statement is wrapped in a LIMIT subquery - a script runs unwrapped and its row cap (max_rows, default 1000) is enforced by the paged fetch.COST_GUARD_ALLOW_WRITE_STATEMENTSSet to 1 (exactly that value) to let estimate_query_cost/run_query_bounded accept statements that are not reads. Off by default: only text whose first keyword (after comments and opening parentheses) is SELECT, WITH, VALUES, SHOW, DESCRIBE, DESC or EXPLAIN is estimated or run - a WITH must be followed by a SELECT or VALUES - because warehouse rows re-enter the model's context and can steer the next call. The gate is defence in depth: the authorisation boundary is the credential's grants (deploy a read-only principal). With COST_GUARD_ALLOW_MULTI_STATEMENT_SQL=1 every statement in the text must be a read, so BigQuery scripts (DECLARE/SET/BEGIN) need both opt-outs. Any other value leaves the gate on.COST_GUARD_MAX_IN_FLIGHT_QUERIESMaximum number of run_query_bounded calls allowed in flight at once (positive integer, default 8). A cancelled call keeps its slot until its warehouse query completes or the 120 s watchdog fires; a call over the cap fails with a tool error naming this variable before any warehouse connection is opened.COST_GUARD_DATABRICKS_ALLOW_WAREHOUSE_STARTSet to true (exactly that value) to let the read-only Databricks tools (check_credentials, estimate_query_cost) open a session on a SQL warehouse that is not RUNNING, which starts the warehouse and bills compute until it auto-stops. Off by default: the server first reads the warehouse's state through the Warehouses API (GET /api/2.0/sql/warehouses/<id>, CAN_VIEW/CAN_USE suffices) and, unless it is RUNNING - also when the state cannot be read - check_credentials returns ok=false and estimate_query_cost returns no byte or dollar figure, without opening a session. run_query_bounded is not gated: its own pre-execution estimate and the execution may start the warehouse. Any other value leaves the guard on.COST_GUARD_SNOWFLAKE_ALLOW_WAREHOUSE_RESUMESet to true (exactly that value) to let the read-only Snowflake tools run SELECT CURRENT_REGION(), the INFORMATION_SCHEMA.QUERY_HISTORY read and check_credentials' session-context SELECT on a warehouse that is not STARTED, which can resume a suspended AUTO_RESUME warehouse and bill compute until it auto-suspends. Off by default: those statements are skipped unless the pinned warehouse's SHOW WAREHOUSES state is STARTED (also skipped when no warehouse is pinned or the state cannot be read), and the QUERY_HISTORY read is skipped whenever estimate_query_cost is called without a warehouse argument; estimate_query_cost then prices at Gen1 rates with the byte-tier heuristic and says so in a caveat, and check_credentials returns ok=true with a detail built from the SHOW WAREHOUSES row. USE WAREHOUSE, EXPLAIN USING JSON, SHOW WAREHOUSES and SELECT CURRENT_WAREHOUSE() always run; run_query_bounded is not gated. Any other value leaves the guard on.
About Cost Guard MCP
Cost Guard sits between an agent and BigQuery, Snowflake or Databricks and answers how much a query will cost and how much data it will return before it runs. Every estimate states its accuracy tier: PRECISE for BigQuery dry runs, UPPER_BOUND for Snowflake EXPLAIN, and HEURISTIC for Databricks EXPLAIN COST, so the agent does not over-trust a rough number.
run_query_bounded refuses to run if the estimate exceeds per-call limits on bytes billed, rows or estimated dollars. Rows default to 1,000 and the serialized result is capped at 8 MiB, truncated to whole rows. Only single read statements (SELECT, WITH, VALUES, SHOW, DESCRIBE, EXPLAIN) are accepted by default, and returned rows are labelled as untrusted warehouse data rather than instructions.
Snowflake safeguards are strict: the role must be set explicitly and ACCOUNTADMIN, SECURITYADMIN and ORGADMIN are rejected, secondary roles default to none, sessions carry a statement timeout, and they are limited to one statement per call. Credential checks avoid resuming a suspended warehouse unless you opt in. It runs as a local stdio Python process with no extra infrastructure.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 4 tools changes data.
From the server's own tool labels and tool names; not verified by us.
- check_credentialsName suggests: reads
- Verify credentials and connectivity for an engine without running a real query.
- describe_engine_capabilitiesName suggests: reads
- Explain what is exact versus approximate for an engine.
- estimate_query_costName suggests: reads
- Return a pre-flight cost estimate tagged with its accuracy tier.
- run_query_boundedName suggests: changes
- Run a read query only if the estimate stays within the given limits.
What it does
- Pre-flight cost estimates
- Prices a query before it runs, tagged with its accuracy tier.
- Bounded execution
- Refuses queries over byte, row or dollar limits.
- Result size cap
- Defaults to 1,000 rows and 8 MiB serialized.
- Read-only by default
- Only single read statements are accepted.
- Role guardrails
- Rejects admin roles on Snowflake and pins secondary roles to none.
- No warehouse wake-ups
- Credential checks avoid resuming stopped warehouses by default.
Good for
- Stop an agent from scanning a huge table by accident
- Show the estimated dollar cost of a Snowflake query before running it
- Limit how many rows an agent pulls into its context
- Compare how exact the estimates are across BigQuery, Snowflake and Databricks
Pricing
Open source
Open-source Python package on PyPI
Cost Guard MCP FAQ
Which warehouses are supported?
BigQuery, Snowflake and Databricks.
How accurate are the estimates?
Each carries a tier: precise for BigQuery, upper bound for Snowflake and heuristic for Databricks.
Can the agent run write statements?
Not by default; only read statements are accepted.
Which Snowflake roles are blocked?
ACCOUNTADMIN, SECURITYADMIN and ORGADMIN are rejected.
Is Cost Guard MCP free?
Yes. Cost Guard MCP is open source, so you can use and self-host it for free.
How do I add Cost Guard MCP to Claude Code?
Run this command in your terminal: claude mcp add cost-guard-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env SNOWFLAKE_PRIVATE_KEY_PATH='<SNOWFLAKE_PRIVATE_KEY_PATH>' --env SNOWFLAKE_PRIVATE_KEY_PASSPHRASE='<SNOWFLAKE_PRIVATE_KEY_PASSPHRASE>' --env SNOWFLAKE_PASSWORD='<SNOWFLAKE_PASSWORD>' --env DATABRICKS_TOKEN='<DATABRICKS_TOKEN>' --env DATABRICKS_CLIENT_SECRET='<DATABRICKS_CLIENT_SECRET>' -- uvx cost-guard-mcp
What are the best alternatives to Cost Guard MCP?
The closest alternatives to Cost Guard MCP are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

