CloudCostTree
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| prices | No | Path to a specific AWS price catalog file to use instead of the bundled one (passed as the `-prices <path>` flag to `cloudcosttree mcp`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
CloudCostTree prices AWS infrastructure-as-code (Terraform, Terragrunt, CloudFormation, CDK output, Pulumi stack exports, Terraform state) from its own AWS price catalog, without deploying anything.
Use estimate_cost after writing or editing infrastructure code, compare_cost to show what a change adds or saves, what_if to price a hypothetical change (instance type, count, storage, region...) without editing files, and iam_policy for the least-privilege IAM policy needed to deploy it.
Never estimate AWS prices yourself. Report the totals these tools return, and pass along their notes (resources that couldn't be priced, assumed usage volumes, on-demand list prices) instead of presenting the numbers as more exact than they are.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| compare_costA | Cost difference between two versions of the same infrastructure (e.g. a copy of the original vs. the edited one), per resource. Use it to show what a change adds or saves per month. |
| estimate_costA | Monthly AWS cost of an infrastructure-as-code input, per resource, with FinOps savings recommendations and a Cost Score. Use it after writing or editing Terraform/CloudFormation/Pulumi. A .tf directory runs a read-only |
| iam_policyB | Least-privilege IAM policy (JSON) with the actions needed to deploy an infrastructure-as-code input, plus a privilege-escalation review. On Free the Resource is "*"; Roots scopes it to the declared ARNs. |
| what_ifA | Prices a hypothetical change without editing any file: resize, re-count, change storage, move region, or remove resources, and get the before/after monthly cost. Each change is {target, flags} or {target, remove: true}. target is the exact resource name as the report shows it (e.g. aws_instance.web). Flag values are strings; boolean flags take "true". Valid flags: allocated-storage, auto-scaling-max, auto-scaling-min, backup-storage, count, data-in, data-out, desired-capacity, dynamo-mode, dynamo-rcu, dynamo-wcu, elastic-ips, hours-per-month, instance-class, instance-type, iops, lambda-architecture, lambda-memory, lb-scheme, lb-type, multi-az, nat-data, nat-type, no-multi-az, os, rds-backup-retention, region, retention-days, root-volume-size, root-volume-type, snapshot-size, storage-type, table-class, throughput, volume-size, volume-type. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The three cost tools are separated by explicit framing: estimate_cost prices a file, compare_cost diffs two versions, and what_if prices hypothetical flag changes without editing. There is still a residual overlap between what_if and compare_cost, since both yield before/after figures for similar resource attributes, but the descriptions give an agent enough signal to choose.
compare_cost and estimate_cost follow a verb_noun pattern, but iam_policy is a bare noun phrase and what_if is a question-style name. The names remain readable and domain-relevant, but the convention is mixed.
Four tools is compact and each covers a genuinely different question (estimate, diff, hypothetical, permissions), so nothing feels padded. It sits at the sparse end for a cost-analysis surface, but all four earn their place.
The pre-deployment IaC lifecycle is well covered: estimate, compare, what-if simulation, and the IAM policy needed to actually deploy. Gaps are minor — the surface is AWS-only and there's no way to enumerate supported resource types or export/persist reports, but core workflows have no dead ends.