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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a49893e69402c3e05525ab2feeb379f71ab4f978fe7c1ec95006586a6f2645e6
|
|
| MD5 |
73579f0c7a20fd764f2354b6dd9eb6c8
|
|
| BLAKE2b-256 |
9dc55dd7ea7108954cee999137826e8d184b3284f2e5e93c2848b947ee253f8f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad55378e28d10042d669b1e80bf88f4ffac5b894c5d4bbcd082ddfc51ed3c71
|
|
| MD5 |
9b1a9aa2465d1ce196e5d6be74860341
|
|
| BLAKE2b-256 |
492e5903dc94d482b25b85d985973983638d633f01b6ceef3a4eecb9d3915e43
|