Skip to main content

MCP server that compares cloud pricing across AWS, Azure, GCP, and OCI. 10 tools covering compute, block storage, object storage, managed Postgres, egress (with OCI 10TB-free shown), Multi-AZ workloads, and Reserved Instance / Savings Plan discounts. Ships with cloudprice-mcp setup auto-config CLI and doctor diagnostic command. OCI Always Free tier surfaced explicitly.

Project description

cloudprice-mcp

PyPI version Python versions License: MIT alialbaker/cloudprice-mcp MCP server

An MCP server that lets Claude (or any MCP-compatible client) compare cloud pricing across AWS, Azure, GCP, and OCI in real time. 10 tools covering compute, block storage, object storage, managed Postgres, egress (internet + inter-region), Multi-AZ workloads, snapshots with realistic incremental modeling, and Reserved Instance / Savings Plan discounts. OCI Always Free tier (4 OCPU compute, 20 GB object storage, 10 TB egress) surfaced explicitly.

demo

Ask things like:

"How much does a 4 vCPU / 16 GB Linux VM cost across AWS, Azure, and GCP in us-east?"

"I have a 3-tier deployment: 8 web (4/16), 12 app (8/32), 4 DB (16/64), each with a 200 GB SSD OS disk, plus 5 TB SSD shared and 50 TB HDD bulk. Compare AWS vs Azure vs GCP monthly cost."

"What does an EC2 t3.xlarge cost per month?"

Claude calls the right tool, you get a clean answer with per-row + per-cloud + combined totals. No console-clicking. No tab-switching between three pricing calculators.


Install

Recommended (auto-config):

pip install cloudprice-mcp
cloudprice-mcp setup     # auto-configures Claude Desktop, asks Y/N before writing

Then fully restart Claude Desktop. 9 tools appear in Connectors. Done.

Trust spectrum:

Command When to use
cloudprice-mcp setup Default — interactive prompt before writing
cloudprice-mcp setup --yes Skip prompt (CI / scripts)
cloudprice-mcp setup --dry-run Show what would change without writing
cloudprice-mcp setup --print-config Just output the JSON for manual paste
Manual edit Don't trust running new tools — see INSTALL.md

If something doesn't work, run:

cloudprice-mcp doctor

It tells you exactly what's broken (Python version, install path, config location, tool registration, command path validity).

Python 3.10+ required.

For step-by-step manual install (Windows / macOS / Linux), see INSTALL.md.

Tools exposed

Single-spec lookups (v0.1)

Tool What it does
get_aws_price Look up an EC2 instance type → vCPUs, memory, hourly + monthly USD (us-east-1)
get_azure_price Look up an Azure VM size → vCPUs, memory, hourly + monthly USD (eastus)
get_gcp_price Look up a GCP Compute Engine machine type → vCPUs, memory, hourly + monthly USD (us-east1)
compare_clouds Given a target spec (vCPUs + GB), return the cheapest matching SKU across AWS / Azure / GCP / OCI, sorted by monthly cost, with savings summary

Bulk + workload compare (v0.2)

Tool What it does
compare_compute_inventory Bulk-compare a list of compute workloads (each with vCPUs / memory / quantity / hours / optional OS disk) across all 4 clouds. Returns per-row matches, per-cloud totals, cheapest cloud.
compare_storage_inventory Bulk-compare a list of block-storage volumes (each with capacity / disk type / quantity) across all 4 clouds.
compare_workload Combined compute + block storage in one call. Mirrors a two-sheet sizing workbook (compute BoM + storage BoM). Optional commitment overlay applies 1-year (30%) or 3-year (50%) compute discount.

Object storage + managed Postgres (v0.3)

Tool What it does
compare_object_storage Bulk-compare object-storage buckets across AWS S3 / Azure Blob / GCP Cloud Storage / OCI Object Storage. Each row specifies capacity_gb + tier (hot / cool / archive). OCI Always Free 20 GB tier surfaced explicitly — capacity ≤ 20 GB on OCI hot tier returns $0/mo.
compare_postgres_database Bulk-compare managed PostgreSQL pricing across AWS RDS / Azure Database for PostgreSQL / GCP Cloud SQL / OCI Database with PostgreSQL. Each row specifies vCPUs / memory / storage_gb. Storage cost is calculated separately from compute.

Egress + Multi-AZ + better snapshots (v0.5, NEW)

Tool / Feature What it does
compare_egress Compare data-transfer costs across all 4 clouds. Two directions: out_to_internet (tiered pricing with free-tier credits — AWS/Azure 100 GB, OCI 10 TB) and inter_region (cross-region within the same cloud). At 50 TB/month internet egress, OCI is ~12× cheaper than the hyperscalers — a real moat for content/CDN workloads.
compare_workload multi_az: true New flag doubles compute totals on every cloud to model Multi-AZ / HA deployments (sync replicas across two zones). Storage stays at 1× because object/block storage is usually cross-AZ at base price.
snapshot_incremental_factor New per-row field on storage and OS-disk snapshots. Default 1.0 keeps the v0.2 upper-bound estimate. Set to 0.3 for typical real-world incremental dedup, or 0.0 to exclude snapshots from the total.

Example: compare_workload input shape

{
  "compute": [
    { "name": "web", "tier": "Web", "vcpus": 4, "memory_gb": 16, "quantity": 8,  "os_disk_gb": 100, "os_disk_type": "ssd" },
    { "name": "app", "tier": "App", "vcpus": 8, "memory_gb": 32, "quantity": 12, "os_disk_gb": 200, "os_disk_type": "ssd" },
    { "name": "db",  "tier": "DB",  "vcpus": 16, "memory_gb": 64, "quantity": 4, "os_disk_gb": 500, "os_disk_type": "ssd" }
  ],
  "storage": [
    { "name": "shared-fast", "tier": "DB",  "capacity_gb": 5000,  "disk_type": "ssd" },
    { "name": "shared-bulk", "tier": "App", "capacity_gb": 50000, "disk_type": "hdd" }
  ]
}

Snapshots (v0.2.1)

snapshot_count on storage rows and os_disk_snapshot_count on compute rows are now priced. Snapshot rates per cloud per disk type are bundled (~$0.05/GB-mo for AWS/Azure, ~$0.026/GB-mo for GCP).

Caveat — upper-bound estimate: snapshots are priced as snapshot_per_gb_month × full_capacity × quantity × snapshot_count. Real-world snapshots are incremental (only changed blocks), so actual cost is typically 20-50% of this model's number. If snapshots dominate your total, ask the cloud's calculator for a tighter estimate.

iops and throughput_mbs on storage rows are still accepted as metadata only — not used for SKU matching in this release.

Reserved Instance / Savings Plan estimator (v0.2.1)

compare_workload accepts an optional commitment parameter:

Value Compute discount Use case
none (default) 0% On-demand only
1yr_no_upfront 30% 1-year AWS Savings Plan / Azure RI / GCP CUD (no upfront)
3yr_partial_upfront 50% 3-year, partial upfront — typical "we know our baseline" deals

Storage and snapshots are not discounted (most clouds don't offer meaningful storage commitments). Discount tiers are conservative averages — your actual rate depends on instance family, payment option, and region.

Pricing data

Prices are bundled as a curated dataset of common SKUs across 4 clouds:

  • Compute (~50 VM SKUs across AWS / Azure / GCP / OCI, including OCI A1 Always Free + A2 Arm Ampere + E5 Flex)
  • Block storage (SSD + HDD per cloud)
  • Object storage (Hot / Cool / Archive tiers per cloud, including OCI Always Free 20 GB)
  • Managed PostgreSQL (RDS / Azure DB / Cloud SQL / OCI Database with PostgreSQL)

OCI pricing is verified against Oracle's public pricing API. Each response includes an as_of date so you know how fresh the data is.

What's NOT modeled (real-world TCO killers)

  • Egress / data transfermodeled in v0.5 (compare_egress)
  • Multi-AZ / HA replicasmodeled in v0.5 (multi_az: true on compare_workload)
  • Snapshots upper-bound onlyfixed in v0.5 (snapshot_incremental_factor)
  • Reserved/Savings Plan SKU detail (we apply a flat tier discount, not per-region/per-family detail) — roadmap
  • Multi-region pricing (currently us-east only; us-west / eu-west planned for v0.5.1) — roadmap
  • IOPS-based storage matching (capacity-only) — roadmap
  • Backup storage charges (some clouds free, others billed) — roadmap
  • Request costs (PUT/GET pricing for object storage) — roadmap
  • Retrieval costs for archive tiers (Glacier-style retrieval can be 10× the storage cost) — roadmap
  • VPC peering / interconnect costs — roadmap

These are tracked roadmap items. Use cloudprice-mcp for the on-demand list-price baseline; do final TCO analysis with each cloud's own calculator before relying on numbers for big decisions.

Live API mode is on the roadmap (issue #1) — would fetch prices directly from each cloud's public pricing API:

Track issue #1 for live mode and issue #2 for cross-cloud service mapping (RDS↔SQL DB↔Cloud SQL, etc.).

Develop locally

git clone https://github.com/alialbaker/cloudprice-mcp.git
cd cloudprice-mcp
pip install -e ".[dev]"
pytest

To point Claude Desktop at your dev copy, swap the command in the config:

{
  "mcpServers": {
    "cloudprice": {
      "command": "python",
      "args": ["-m", "cloudprice_mcp.server"]
    }
  }
}

License

MIT — see LICENSE.

Credits

Built by Ali Albaker, multi-cloud architect — runs a live three-cloud portfolio at ~$1.80/month across AWS, Azure, and GCP, with OCI joining as the 4th cloud in 2026.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudprice_mcp-0.5.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudprice_mcp-0.5.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file cloudprice_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: cloudprice_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for cloudprice_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b48ae2af9bd09d0cae784dcee7a9b4fa9193f178608891863c5ccf8db6ef53b1
MD5 d1948be99e3136c658974c4bcb427e60
BLAKE2b-256 a7e105477d7965fd6d21c127917ab6a81bbfae6d361281c8cbb56be68829fed3

See more details on using hashes here.

File details

Details for the file cloudprice_mcp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cloudprice_mcp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for cloudprice_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f16953a4b2c7dab17d798b3e2dc5590ee491e89c9919edc324da342cde5d09ba
MD5 35c498c2d628568c265bd044aef9a23a
BLAKE2b-256 fead02532acb823825c8a7bce370904bd2c4a4b1febad61c13f004445be28fbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page