Cloudcostsmcp logo

Cloudcostsmcp

by x7even

MCP server for live AWS, GCP, and Azure pricing, including public rates and account-specific commitment discounts.

Install Cloudcostsmcp

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "x7even-cloudcostsmcp": {
      "command": "uvx",
      "args": [
        "opencloudcosts"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 21 tools correctly ().

Overview

OpenCloudCosts provides 16 MCP tools that retrieve structured pricing from AWS, GCP, and Azure APIs. It supports cross-cloud comparisons, multi-region pricing, unit economics, and effective rates for Reserved Instances, Savings Plans, CUDs, and EDPs when credentials are available. AWS and Azure public pricing can be accessed without credentials.

Use cases

  • Compare workload costs across AWS, GCP, and Azure
  • Estimate public and committed pricing for multi-resource architectures
  • Find the lowest-cost region across cloud providers
  • Calculate effective rates after commitment or enterprise discounts
  • Estimate cost per user or request

Key features

  • Live AWS, GCP, and Azure pricing
  • Cross-cloud bill-of-materials comparison
  • Multi-region concurrent pricing queries
  • Reserved Instance, Savings Plan, CUD, and EDP rate support
  • Unit economics estimation
  • HTTP service mode with bearer authentication, rate limiting, and probes

Tools21

What Cloudcostsmcp lets your agent do. Expand a tool for its parameters.

Verified live~9.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/16 checks healthy over the last 112d

What it can do

From the 21 tools this server returned when we ran it.

Can delete or modify data · 1Handles credentials · 3Makes network requests · 8Read-only tools · 20
Network at startup2 connections
Files written at startupNone

Observed 2026-11-14 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · opencloudcosts (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed21Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

OpenCloudCosts MCP

Anchor AI FinOps to real, live cloud pricing.

License: MIT PyPI version Release

Your LLM's cloud pricing knowledge was frozen at training cutoff. Cloud pricing wasn't.

opencloudcosts is an MCP server that gives your AI assistant live, structured access to AWS, GCP, and Azure pricing — 16 tools it can call directly, with results it can reason over rather than guess at. Ask it to compare a full multi-resource workload across all three clouds simultaneously. Ask it for your actual post-discount effective rates from Reserved Instances, Savings Plans, or Enterprise Discount Programs. Ask it to fan out across every region and return the cheapest option. None of that is possible from training data alone, and none of it is possible from a single-cloud pricing calculator.

The Problem

Ask any AI assistant what an m5.2xlarge costs in ap-southeast-2, whether AWS or GCP is cheaper for a three-tier web app, or what your effective hourly rate is after Savings Plans. You will get a confident answer. It will probably be wrong.

Cloud pricing is a poor fit for static model weights: instance families are added and retired, regional pricing diverges (the same instance type can differ 20–40% across regions), spot markets fluctuate, and commitment discounts are by definition unique to each account. A model answering from training data cannot know your negotiated EDP rate. It can barely reliably recall last year's list price. The problem is not that LLMs are bad — it's that real-time, account-specific pricing data is structurally outside what a model can know.

opencloudcosts fixes this by giving your AI assistant 16 MCP tools backed by live provider APIs. Instead of hallucinating numbers, the model calls a tool and gets a precise answer.

A Concrete Scenario

Your team asks: "We're evaluating whether to migrate this workload from AWS to GCP. What does the full stack cost on-demand vs. three-year committed, across all three clouds, so I can make the case to leadership?"

Without this tool, the model interpolates — possibly from pricing that is a year out of date — across three providers, multiple resource types, and at least four pricing tiers. The numbers will be plausible and wrong.

With opencloudcosts, the model calls compare_bom with the workload spec (compute + storage + database). The tool fans out 8 concurrent provider calls across AWS, GCP, and Azure simultaneously, prices each resource category at public and committed rates, and returns a per-provider, per-term breakdown with savings analysis — in a single tool call.

No spreadsheet. No switching between three provider calculators. No manual SKU matching. No training-data approximation.

Why Not the Obvious Alternatives

Asking a model without tools — Training data has a cutoff. Cloud pricing changes constantly, varies 20–40% across regions for the same instance type, and includes account-level commitment discounts that are invisible at inference time. The model will approximate, confabulate, or recall stale numbers. There is no structured output, and the model cannot access your contracted rates under any circumstances.

Cloud pricing calculators (AWS / GCP / Azure) — Each covers exactly one cloud. They are UI-only with no API surface callable from an AI assistant. Cross-cloud comparison requires manually reproducing the same architecture three times across three separate calculators and reconciling exports by hand. They have no concept of unit economics and produce no programmatic output for agentic workflows.

Infracost — Excellent at estimating cost diffs against Terraform plans. It requires IaC files as input — it cannot answer "what does an n2-standard-8 cost in europe-west4?" without a Terraform plan in hand. It is not an MCP server and is not callable from a conversational AI context.

Calling provider APIs directly — AWS bulk pricing files are multi-GB and require targeted API access patterns to avoid downloading them in full. GCP's Cloud Billing Pricing API v1beta requires a multi-source ADC credential chain and provider-specific IAM. Azure's Retail Prices API needs pagination logic and SKU matching. Every provider uses different region naming conventions, SKU formats, and data schemas. opencloudcosts normalizes all of this behind a uniform MCP tool interface and handles credential chains, caching, and retry logic so the model does not have to.

Capabilities at a Glance

CapabilityLLM (no tools)Cloud CalculatorsInfracostopencloudcosts
Live pricing (not frozen at training cutoff)NoManual input onlyIaC-boundYes — fetched from provider APIs
Cross-cloud comparison in one callNoNoNoYes — compare_bom, 8 concurrent provider calls
Effective/contracted rates (RI, SP, EDP, CUD)NoNoNoYes — credentials unlock this layer
Multi-region concurrent fan-outNoNoNoYes — up to 32 goroutines
Unit economics (cost/user, cost/request)ApproximateNoNoYes — estimate_unit_economics
MCP tool surface — callable by modelN/ANoNoYes — 16 tools
AWS + Azure public pricing, zero credentialsN/ASingle-cloud onlyPartialYes
HTTP service for shared/Kubernetes deploymentsN/AN/ANoYes — bearer auth, rate limiting, probes

Coverage: Three Clouds, 16 Tools

Fourteen tools are fully functional. Two entries are compatibility stubs: search_pricing (a deprecated redirect from v0.8.x, kept for backward compatibility) and get_spot_history (registered but not implemented in the Go server — returns a structured "not available" response).

Credential requirements by provider

CoverageCredentials required
AWS EC2, EBS (gp3/io2/sc1), RDS, inter-region egressNone
Azure VMs, Managed Disks, Blob Storage, Azure SQL/MySQL/PostgreSQL, Cosmos DB, AKS, Azure Functions, Azure OpenAI (GPT-4o, GPT-4, GPT-3.5-Turbo, o1, o1-mini, embeddings)None — fully public Retail Prices API
GCP Compute Engine, Cloud Storage, Persistent Disk, Cloud SQL, Memorystore, GKE, BigQuery, Vertex AI, Gemini, Cloud LB/CDN/NAT/Armor, Cloud MonitoringFree API key (OCC_GCP_API_KEY) — no billing account, no credit card
AWS post-discount rates (Reserved Instances, Savings Plans) + get_discount_summaryAWS credentials + OCC_AWS_ENABLE_COST_EXPLORER=true ($0.01/call to Cost Explorer, opt-in only)
GCP committed-use discounts (CUDs) and Enterprise Discount Programs (EDPs)ADC credentials + billing.billingAccountPrice.get IAM + OCC_GCP_BILLING_ACCOUNT_ID

Azure Reserved VM pricing (1-year and 3-year terms) is available via the public Retail Prices API — no credentials needed. compare_bom returns committed-term Azure pricing with no setup beyond the binary.

The 16 tools by category

CategoryTools
Pricingget_price, get_prices_batch, compare_prices, describe_catalog, search_pricing†, get_spot_history†
FinOpsestimate_bom, estimate_unit_economics, compare_bom, get_discount_summary
Discoverylist_regions, list_instance_types, find_cheapest_region, find_available_regions
Cacherefresh_cache, cache_stats

† Compatibility stub only — not functional for live data. See opencloudcosts-go/README.md for full parameter reference.

Performance and Reliability

Concurrency — The analysis tools are not sequential HTTP wrappers:

  • find_cheapest_region and find_available_regions: errgroup + semaphore, up to 32 goroutines — queries all available regions in parallel, returns results sorted cheapest-first
  • compare_bom: 8 concurrent provider calls across AWS, GCP, and Azure simultaneously
  • compare_prices: semaphore of 10 concurrent region calls
  • get_prices_batch: parallelized across instance types within a region

Rate limiting and timeouts — Token-bucket rate limiter at 200 req/s on the HTTP transport (OCC_RATE_LIMIT). Per-request deadline: 60s (OCC_REQUEST_TIMEOUT). Per-provider API call: 30s (OCC_PROVIDER_TIMEOUT). Graceful SIGTERM drain: 15s (OCC_SHUTDOWN_TIMEOUT).

Cache — Prices are stored in a concurrent in-memory cache (read-optimised with sync.RWMutex) with atomic JSON persistence at ~/.cache/opencloudcosts/cache.json. TTLs: public prices 24h (OCC_CACHE_TTL_HOURS), region/instance metadata 7 days (OCC_METADATA_TTL_DAYS), effective/contracted rates 1h (OCC_EFFECTIVE_PRICE_TTL_HOURS). Cache survives binary updates. 401/403 responses from billing APIs are never cached, so credential rotation takes effect immediately.

AWS pricing — EC2/EBS/RDS public pricing uses a targeted SKU API path rather than downloading the full multi-GB bulk pricing file, keeping startup fast and avoiding large network payloads.

Error isolation — Raw exception text never reaches LLM context. All tool boundaries emit structured error envelopes; full tracebacks are logged server-side only. GCP contract pricing falls back to public list prices on auth failure rather than surfacing an error into the conversation.

Validated: 234/234

opencloudcosts v1.0.0 achieves 234/234 (100%) on the LLM grounding harness, with zero XML hallucinations across the full suite.

The harness covers 234 realistic pricing questions across all three clouds: instance spot checks, cross-region comparisons, BOM estimates, multi-cloud comparisons, unit economics, AI model pricing, database pricing, storage pricing, discount summaries, egress pricing, availability queries, and network pricing.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cloudcostsmcp

It supports AWS, GCP, and Azure pricing.

AWS and Azure public pricing do not require credentials. Credentials are needed for some GCP pricing access and account-specific commitment rates.

Yes. The compare_bom tool can compare a multi-resource workload across AWS, GCP, and Azure.

Yes, credentials can unlock effective rates for Reserved Instances, Savings Plans, CUDs, and Enterprise Discount Programs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCloudcostsmcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/x7even-cloudcostsmcp?style=directory)](https://allmcps.com/mcp/x7even-cloudcostsmcp)
HTML Embed
<a href="https://allmcps.com/mcp/x7even-cloudcostsmcp"><img src="https://allmcps.com/api/badge/x7even-cloudcostsmcp?style=directory" alt="Cloudcostsmcp on AllMCPs" /></a>