burn: Agentless Kubernetes FinOps in Your Terminal With AWS/Azure Bill Reconciliation and an MCP ServerNote · digest for November 27
Tactile still life showing the burn CLI terminal, a Kubernetes cloud cost breakdown, and an MCP server module
Note3 sections≈ 4 min

burn: Agentless Kubernetes FinOps in Your Terminal With AWS/Azure Bill Reconciliation and an MCP Server

A month-end cloud bill arrives a couple thousand dollars higher than expected, and you want to know fast which Kubernetes service burned it. For a quick audit, few teams want to deploy a heavy FinOps platform like Kubecost with cluster agents, a database, and a web dashboard. That's where burn fits in—an Apache-2.0 Go CLI that runs locally and reads your cluster directly.

How burn Estimates Costs Without a Cluster Agent

The tool runs read-only against the Kubernetes API, pulling nodes, pods, disks (PVC/PV), controllers, PDBs, and load balancers from Service and Ingress resources (deduplicated by host). Nothing gets installed in your cluster. If Prometheus is available, burn pulls actual CPU and memory usage over your chosen window, including P95 metrics to spot inflated limits. Without Prometheus, it estimates from resource requests and node types.

Pricing comes in three fallbacks: first, it queries live AWS and Azure APIs for your region if credentials are present. Otherwise (or on GCP), it uses an embedded pricing database updated weekly via CI for AWS and Azure. Rare machine types fall back to family-based estimates, while on-prem and GPU clusters accept --cpu-price, --ram-price, --gpu-price, and --storage-price flags (GPU nodes are detected automatically).

# Install via Homebrew (binaries, Docker, and Go are also available)
brew install tanrikuluozlem/burn/burn

# Weekly cost breakdown using real usage from Prometheus
burn analyze --prometheus http://prometheus:9090 --period 7d

# Check which workloads are ready to move to Spot nodes
burn analyze --prometheus http://prometheus:9090 --spot

On macOS, Gatekeeper may block the binary—clear it with sudo xattr -d com.apple.quarantine $(which burn). Within thirty seconds, your terminal shows costs by node, namespace, disk, load balancer, and idle waste. The --spot flag checks Spot readiness (replicas and PDBs) to highlight what can survive sudden preemptible node shutdowns.

Reconciling Estimates With Your Real Cloud Bill

Basic calculators read list prices and miss discounts or forgotten resources. burn reconcile checks estimates against your actual cloud invoice: on AWS it queries AWS CUR (detailed S3 reports, supporting Legacy CUR and CUR 2.0) via Athena, and on Azure it calls the Cost Management API with --cost-type (amortized or actual).

# AWS CUR settings for SQL queries via Athena
export CUR_DATABASE=my_cur_db CUR_TABLE=data
export CUR_OUTPUT_LOCATION=s3://my-bucket/athena-results/
export CUR_REGION=us-east-1

# Reconcile against billing and output JSON for alerting
burn reconcile --provider aws
burn reconcile --provider aws -o json | jq .total_actual_cost

The burn reconcile --setup wizard walks you through AWS and Azure configuration step by step. The report shows dollar variances per node, disk, and load balancer, plus Savings Plan, Reserved Instance, and Spot coverage (including partial coverage) with annual RI sizing for gaps. OS disks are separated from data disks, and public IPs, traffic, and EKS/AKS control-plane fees appear separately.

Its sharpest catch is orphaned resources: disks and load balancers deleted from Kubernetes that your cloud provider still bills for. Keep billing lag in mind—--data-delay 48 hours is the default, since AWS CUR trails by roughly a day, Azure EA/MCA by 8–24 hours, and Azure PAYG by up to 72 hours.

Slack Bot, MCP Server, and Honest Limits

You can run it as a Slack bot (burn serve) supporting /burn, /burn ns <name>, /burn reconcile, and /burn ask. For daily summaries, there is a charts/burn Helm chart with a CronJob, a read-only ClusterRole, and IRSA support for EKS.

Example burn output in Slack showing Kubernetes cluster cost analysis and recommendations (Source: github.com/tanrikuluozlem/burn)

For AI agents, burn mcp exposes an MCP server with three tools: analyze, spot_readiness, and reconcile. Add it to Claude Code with claude mcp add burn -- burn mcp ... or configure ~/.cursor/mcp.json for Cursor.

{
  "mcpServers": {
    "burn": {
      "command": "burn",
      "args": ["mcp", "--prometheus", "http://prometheus:9090"]
    }
  }
}

CUR variables are optional here: analyze and spot_readiness work right away, and you can add CUR settings under env if you want reconcile.

Now for the boundaries. The project is young: release v0.5.5 has 109 stars and one primary author. Bill reconciliation only works on AWS and Azure, while GCP relies on the embedded price table. Traffic charges like AWS LCU and load balancer data processing fees aren't included. All AI features (--ai, burn ask, bot) require ANTHROPIC_API_KEY. FOCUS support, multi-cluster views, and period-over-period trends remain on ROADMAP.md.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 4