Home / Databases / Cost Guard MCP

Cost Guard MCP

io.github.mcpsmiths/cost-guard-mcp · v0.6.0 stdio

Score 76. Maintenance 40 of 40, security 35 of 35, adoption 2 of 25.

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

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #126 of 216 Databases servers on Socketlist by score, with 1 GitHub stars and a last code push 1d ago.

Install

uvx cost-guard-mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect Cost Guard MCP to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --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> --transport stdio cost-guard-mcp -- uvx cost-guard-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "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}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "cost-guard-mcp": {
      "command": "uvx",
      "args": [
        "cost-guard-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "${env:GOOGLE_APPLICATION_CREDENTIALS}",
        "SNOWFLAKE_PRIVATE_KEY_PATH": "${env:SNOWFLAKE_PRIVATE_KEY_PATH}",
        "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE": "${env:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE}",
        "SNOWFLAKE_PASSWORD": "${env:SNOWFLAKE_PASSWORD}",
        "DATABRICKS_TOKEN": "${env:DATABRICKS_TOKEN}",
        "DATABRICKS_CLIENT_SECRET": "${env:DATABRICKS_CLIENT_SECRET}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
GOOGLE_APPLICATION_CREDENTIALSNoYesBigQuery: path to a service-account key file (Application Default Credentials). Required to use the bigquery engine.
SNOWFLAKE_ACCOUNTNoNoSnowflake: account identifier. Required to use the snowflake engine.
SNOWFLAKE_USERNoNoSnowflake: username. Required to use the snowflake engine.
SNOWFLAKE_ROLENoNoSnowflake: 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
SNOWFLAKE_SECONDARY_ROLESNoNoSnowflake: 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_PATHNoYesSnowflake: 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_PASSPHRASENoYesSnowflake: passphrase for an encrypted SNOWFLAKE_PRIVATE_KEY_PATH key file, if the key is encrypted.
SNOWFLAKE_PASSWORDNoYesSnowflake: password (discouraged; prefer SNOWFLAKE_PRIVATE_KEY_PATH). Either this or SNOWFLAKE_PRIVATE_KEY_PATH is required to use the snowflake engine.
SNOWFLAKE_EDITIONNoNoSnowflake: 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_HOSTNAMENoNoDatabricks: SQL warehouse server hostname (e.g. my-workspace.cloud.databricks.com, no scheme, no trailing slash). Required to use the databricks engine.
DATABRICKS_HTTP_PATHNoNoDatabricks: 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_TOKENNoYesDatabricks: personal access token (simplest auth option). Either this or DATABRICKS_CLIENT_ID + DATABRICKS_CLIENT_SECRET is required to use the databricks engine.

7 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "uvx",
        "cost-guard-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance40/40Last push 1d ago, 6 open issuesStrong
Security hygiene35/35Licence MIT, SECURITY.md present, published package or hosted endpointStrong
Adoption2/251 GitHub starsWeak

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in Databases. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars1
npm weekly downloads-
Last push1d ago
LicenceMIT
Open issues6
SECURITY.mdYes
LanguagePython
Latest version published2026-10-19

Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.

Similar servers

AgentSQL

Score 82. Maintenance 40 of 40, security 35 of 35, adoption 7 of 25.

io.github.cuipengdba/agentsql

Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval

★ 24Apache-2.0pushed today RemoteDatabases

dbx

Score 80. Maintenance 30 of 40, security 35 of 35, adoption 15 of 25.

io.github.t8y2/dbx

Query databases from AI agents using connections configured in DBX.

★ 32kApache-2.0pushed today Databases

mcp-clickhouse

Score 78. Maintenance 40 of 40, security 35 of 35, adoption 3 of 25.

io.github.dockndevai/mcp-clickhouse

ClickHouse query & management for AI agents — SQL-classified read/write/destructive gating.

★ 3MITpushed 2d ago Databases