cloudcostsmcp

v1.0.2
io.github.x7even/cloudcostsmcp Checked 5 hours ago Published 5 months ago

Anchor AI FinOps to real, live cloud pricing — AWS, GCP & Azure public and enterprise rates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cache_stats

Return statistics about the local pricing cache (entry counts, DB size).

compare_bom

Price a multi-service workload across multiple cloud providers simultaneously and return a side-by-side cost comparison. Use this when the user wants to compare total costs across AWS, GCP, and/or Azure for the same infrastructure. OUTPUT FORMAT — aggregate totals only: for each workload key, storage capacity, provisioned IOPS, and provisioned throughput costs are summed into ONE number in the breakdown map. This tool does NOT return separate line items for storage $, IOPS $, and throughput $. If the user asks for a cost breakdown with storage capacity, provisioned IOPS, and provisioned thr…

ParameterTypeDescription
workload *objectCloud-agnostic workload description. Each key is a logical service name.
providersarrayWhich providers to compare. Defaults to all three.
region_preferencestringPreferred region tier: 'us' (US regions), 'eu' (Europe), 'apac' (Asia-Pacific).
termsarrayPricing terms to include. Common values: on_demand, reserved_1yr, cud_1yr. Default: ['on_demand', 'reserved_1yr'].

compare_prices

Compare pricing for any service across multiple regions. Fetches concurrently. Returns results sorted cheapest first, with % delta between cheapest and most expensive. Optionally shows delta vs a baseline region. Args: spec: PricingSpec dict (same as get_price). The region field is overridden per comparison — you can pass any region in the spec. regions: List of region codes to compare, e.g. ["us-east-1", "eu-west-1", "ap-northeast-1"] baseline_region: Optional region for delta comparison, e.g. "us-east-…

ParameterTypeDescription
regions *array
spec *object
baseline_regionstring

describe_catalog

Discover what each provider supports and how to call get_price. - No args → full support matrix across all configured providers. - provider only → all domains/services for that provider. - provider + domain [+ service] → targeted guidance with required_fields, supported_terms, filter_hints, and a ready-to-use example_invocation you can pass directly to get_price. Use this before get_price when unsure of exact field names or values. Args: provider: Cloud provider — "aws", "gcp", or "azure". Empty = all p…

ParameterTypeDescription
domainstring
providerstring
servicestring

estimate_bom

Use this tool for total infrastructure cost, TCO, monthly spend for a multi-resource stack, or cost comparison between architectures. Handles compute + storage + database + AI together in a single call — do NOT call get_price individually for multi-resource questions; use this tool instead. Returns per-item and total monthly/annual costs with real public pricing data, plus a not_included list of supplementary costs (egress, load balancers, monitoring). These are SUPPLEMENTARY — only price them if the user asked for TCO; for most…

ParameterTypeDescription
items *array

estimate_unit_economics

Estimate per-unit economics (cost per user, per request, per transaction) given a Bill of Materials and expected monthly usage volume. Args: items: Same format as estimate_bom — list of cloud resource PricingSpec dicts plus quantity field. See estimate_bom for full item format. units_per_month: Monthly volume being measured (e.g. 10000 users) unit_label: What the unit represents — "user", "request", "transaction", etc.

ParameterTypeDescription
items *array
units_per_month *number
unit_labelstring

find_available_regions

Find all regions where a specific service/instance type is available, cheapest first. Args: spec: PricingSpec dict (same as get_price). The region field is overridden per comparison — pass any region in the spec. regions: Region codes to check. Omit for major regions. Pass ["all"] to search every available region. baseline_region: Optional region for delta comparison.

ParameterTypeDescription
spec *object
baseline_regionstring
regions

find_cheapest_region

Find the cheapest region for any cloud service. Queries pricing concurrently across regions and returns results sorted cheapest first, with the price delta between cheapest and most expensive regions. Args: spec: PricingSpec dict (same as get_price). The region field is overridden for each comparison — pass any region in the spec. regions: List of region codes to compare. Omit for major regions (faster). Pass ["all"] to search every available region (slow on first run without cache).…

ParameterTypeDescription
spec *object
baseline_regionstring
regions

get_discount_summary

Return a summary of all active cloud discounts for the authenticated account. For AWS: active Savings Plans (type, commitment $/hr, utilization %) and active Reserved Instances (instance type, count, payment type, days remaining), plus Cost Explorer utilization for the previous month. Requires credentials and OCC_AWS_ENABLE_COST_EXPLORER=true for AWS. Args: provider: Cloud provider — "aws" (GCP CUD support coming later)

ParameterTypeDescription
providerstring

get_price

Unified pricing tool — returns public catalog rates plus contracted/effective prices where credentials are available. Pass a spec dict with at minimum: provider, domain, region. Domain-specific required fields (call describe_catalog for the complete list): COMPUTE : resource_type ("m5.xlarge" / "n1-standard-4" / "Standard_D4s_v3") os ("Linux" or "Windows"), term ("on_demand"/"spot"/"cud_1yr") Fargate: vcpu (e.g. 2.0), memory_gb (e.g. 4.0), service="fargate" STORAGE : storage_type ("gp3"/"io2"/"…

ParameterTypeDescription
spec *object

get_prices_batch

Get prices for multiple compute instance types in a single region in one call. Fetches all prices concurrently. Useful for comparing a shortlist of candidate instance types (e.g. m5.xlarge vs c5.xlarge vs r5.xlarge) without separate calls. Args: provider: Cloud provider — "aws", "gcp", or "azure" instance_types: List of instance types, e.g. ["m5.xlarge", "c5.xlarge", "r5.large"] region: Region code, e.g. "us-east-1" or "us-central1" os: Operating system — "Linux" (default) or "Windows" term: Pric…

ParameterTypeDescription
instance_types *array
provider *string
region *string
osstring
termstring

get_spot_history

get_spot_history is not available. For spot pricing, use get_price with term="spot" to look up current spot prices, or use list_instance_types to browse instance families and their spot price ranges.

list_instance_types

List available compute instance types matching the given filters. Args: provider: Cloud provider — "aws", "gcp", or "azure" region: Region code, e.g. "us-east-1" (AWS), "us-central1" (GCP), "eastus" (Azure) family: Instance family prefix filter, e.g. "m5" (AWS), "n2" (GCP) min_vcpu: Minimum vCPU count filter min_memory_gb: Minimum memory in GB filter gpu: If True, only return GPU-enabled instance types

ParameterTypeDescription
provider *string
region *string
familystring
gpuboolean
min_memory_gb
min_vcpu

list_regions

List all regions where a cloud service is available for the given provider. Args: provider: Cloud provider — "aws", "gcp", or "azure" domain: Domain filter — "compute" (default), "storage", "database"

ParameterTypeDescription
provider *string
domainstring

refresh_cache

Invalidate the pricing cache to force fresh data on next request. Args: provider: Provider to clear ("aws", "gcp", "azure"), or empty string to purge expired entries.

ParameterTypeDescription
providerstring

search_pricing

Deprecated helper that redirects to the correct tools. Use describe_catalog to browse available services by domain/provider, or get_price with a known spec.