Skip to main content

FinOps MCP Server for BigQuery - Cost estimation, query optimization, and safe execution

Project description

CostLens MCP

FinOps MCP Server for BigQuery — Cost estimation, query optimization, and safe execution.

Installation

# Via pip
pip install costlens-mcp

# Via uvx (recommended)
uvx costlens-mcp --project YOUR_PROJECT

Quick Start

# If you've run `gcloud auth application-default login`
costlens-mcp --project my-project

# With service account
costlens-mcp --project my-project --key-file /path/to/key.json

# Enable query execution (with cost limit)
costlens-mcp --project my-project --allow-execute --max-cost 5.0

Tools

Tool Description
estimate_query_cost Precise cost via BigQuery dry-run
list_tables Tables with sizes
describe_table Schema + partitions
execute_query Cost-gated execution
get_optimizations Structured suggestions

MCP Configuration

{
  "mcpServers": {
    "costlens": {
      "command": "uvx",
      "args": ["costlens-mcp", "--project", "YOUR_PROJECT"]
    }
  }
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

costlens_mcp-1.0.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

costlens_mcp-1.0.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file costlens_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: costlens_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for costlens_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a49893e69402c3e05525ab2feeb379f71ab4f978fe7c1ec95006586a6f2645e6
MD5 73579f0c7a20fd764f2354b6dd9eb6c8
BLAKE2b-256 9dc55dd7ea7108954cee999137826e8d184b3284f2e5e93c2848b947ee253f8f

See more details on using hashes here.

File details

Details for the file costlens_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: costlens_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for costlens_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dad55378e28d10042d669b1e80bf88f4ffac5b894c5d4bbcd082ddfc51ed3c71
MD5 9b1a9aa2465d1ce196e5d6be74860341
BLAKE2b-256 492e5903dc94d482b25b85d985973983638d633f01b6ceef3a4eecb9d3915e43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page