
Cloudprice
io.github.alialbaker由 GitHub 帳號 alialbaker 發布v0.2.2更新於 Oct 24, 2026
Compare on-demand compute + storage pricing across AWS, Azure, and GCP. Bulk workload compare.
概覽
讓助理比較 AWS、Azure、GCP 與 OCI 的隨需運算、儲存、資料庫、對外流量、GPU 與 LLM token 價格。
- 可以做什麼
- 內建一份精選的多雲價格目錄,提供約 25 個工具:單一規格查詢、批次運算與儲存清單比較、物件儲存與受管 PostgreSQL 比較、對外流量與多可用區建模,以及用於遷移、承諾折扣、TCO 與對外流量套利的 FinOps 決策套件。也涵蓋競價執行個體價格、每週價格歷史、GPU 價格、跨供應商 LLM token 價格、碳足跡估算,以及無狀態成本漂移哨兵。結果包含 as_of 欄位與說明未建模項目的 honest_gaps 清單。
- 適用情境
- 適合助理需要為雲端工作負載做規格試算或比較、估算預留執行個體或節省方案的回收期、評估遷移或對外流量成本,或查看價格隨時間變化的情況。它面向早期 FinOps 估算與跨供應商比較,而非最終採購數字。
- 執行需求
- 以 PyPI 套件 cloudprice-mcp 形式透過 stdio 在本機執行,需要 Python 3.10 或更新版本。伺服器本身未宣告驗證、環境變數或標頭;每週目錄更新是獨立的 GitHub Action,使用 GCP_API_KEY 環境變數與 AWS OIDC。僅限桌面端,並提供寫入 MCP 用戶端設定的 setup 指令。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cloudprice,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
cloudprice-mcp
[PyPI version] [Python versions] [License: MIT] [alialbaker/cloudprice-mcp MCP server]
The FinOps MCP server. Gives Claude, GitHub Copilot, Cursor, Windsurf, Cline, Continue, Zed — or any MCP-compatible AI — structured pricing data and analysis primitives across AWS, Azure, GCP, and OCI. AI clients use cloudprice-mcp to compute Reserved Instance break-even, multi-cloud workload TCO, exit-cost migration analyses, snapshot cost modeling, and egress arbitrage — the kind of FinOps decisions that normally live in three browser tabs and a half-built spreadsheet.
25 tools covering compute, block storage, object storage, managed Postgres, egress (internet + inter-region with OCI's 10 TB free tier surfaced explicitly), Multi-AZ workloads, snapshots with realistic incremental modeling, Reserved Instance / Savings Plan discounts, FinOps decision suite (migration, commitment, TCO, egress arbitrage), multi-cloud spot pricing with eviction tradeoffs, multi-cloud price history (the only public weekly-refreshed dataset of its kind), a stateless cost drift sentinel for scheduled agents, multi-cloud carbon footprint ($ AND kg CO2e on the same query), multi-cloud GPU pricing (T4 / A10 / L4 / L40S / V100 / A100 / H100 across all 4 clouds), cross-provider LLM token pricing (Claude / GPT / Gemini / Llama / Mistral / DeepSeek across Anthropic / OpenAI / Bedrock / Vertex / Azure OpenAI), statistical price-anomaly detection over the weekly snapshot archive (z-score + percent-change, auto-selected by dataset density), and CFO-grade FinOps decision report generation (markdown reports with executive summary, cost table, carbon, audit trail, honest gaps). OCI Always Free tier (4 OCPU compute, 20 GB object storage, 10 TB egress) surfaced as $0 line items where it applies.
One-line install configures every AI client you have: pip install cloudprice-mcp && cloudprice-mcp setup — auto-detects Claude Desktop, GitHub Copilot Agent Mode, Cursor, Windsurf, Cline, Continue.dev, and Zed, then asks Y/N before writing each config.
What does FinOps look like with cloudprice-mcp?
Real questions teams actually ask. Paste any of these into Claude / Copilot / Cursor with cloudprice-mcp loaded:
"I have 6× t3.2xlarge running on AWS. Compare the 3-year total cost on-demand vs 1-year Savings Plan vs 3-year RI partial upfront. What's the break-even month?" → AI calls
compare_workload, pulls list-price baseline, layers AWS's published RI rates, returns dollar break-even. ~7-month payback typical.
"I'm thinking about offloading 5 TB of cold-tier object storage from AWS S3 to a cheaper provider. Compare archive-tier cost across all 4 clouds, factor in AWS exit egress, and tell me the payback period." → AI calls
compare_object_storage+compare_egress, computes one-time exit cost vs ongoing savings. Often surfaces "don't move — AWS Glacier Deep Archive is already tied for cheapest".
"At 50 TB/month internet egress, where am I cheapest? Show the 3-year savings of moving." →
compare_egress→ OCI ~$340/mo, AWS/Azure/GCP ~$4,000/mo. The 12× difference is OCI's 10 TB free tier — a real moat for content/CDN workloads.
"Size a 3-tier SaaS workload: 8 web (4/16), 12 app (8/32), 4 DB (16/64), 5 TB shared SSD, 50 TB HDD bulk, 10 TB/month egress. Compare full-stack monthly cost across all 4 clouds with multi-AZ and 1-year commitment." → AI chains
compare_workload+compare_egress, applies multi-AZ multiplier (×2 compute) + commitment discount.
What you get back: dollar numbers traceable to a public catalog, AI-explained tradeoffs, payback periods, and the kind of "don't do that" recommendation that kills bad migrations before they happen. No console-clicking. No tab-switching between three pricing calculators. No FinOps spreadsheet that goes stale the moment a new SKU drops.
Install
Recommended (auto-config):
Then fully restart whichever clients were configured. 10 tools appear in each. Done.
Trust spectrum:
If something doesn't work, run:
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)
Bulk + workload compare (v0.2)
Object storage + managed Postgres (v0.3)
FinOps decision suite (v0.6, NEW)
Four named tools that turn cross-cloud pricing into FinOps decisions in one call instead of letting the AI chain three+ tools. All four consume a structured workload inventory (compute / storage / object_storage / databases / egress) plus tool-specific options.
All four tools accept a WorkloadInventory shape that mirrors a 4-section sizing sheet (compute / storage / object_storage / databases / egress) plus optional commitment, multi_az, and one_time.data_to_migrate_gb fields. Output includes honest_gaps — explicit list of what each tool does NOT model — to prevent over-trust.
Egress + Multi-AZ + better snapshots (v0.5, NEW)
Example: compare_workload input shape
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:
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)
Auto-refreshed weekly (v0.7+)
The bundled catalog is refreshed every Sunday by a GitHub Action that hits each cloud's public pricing API:
- AWS — Pricing API (via boto3, OIDC-authenticated)
- Azure — Retail Prices API (public, no auth)
- OCI — Public pricing API (public, no auth)
- GCP — Cloud Billing Catalog API (via API key —
GCP_API_KEYenv var). Added in v0.8.0 - Bedrock LLM token prices — AWS Pricing API
AmazonBedrockservice code (via boto3, same OIDC role). Added in v0.15.0 — refreshes input/output token rates for every Bedrock-hosted model we track (Claude 4 Opus/Sonnet, Claude 3/3.5 Haiku, Llama 3.1/3.3, Mistral Large 2, DeepSeek R1) - Extended LLM catalog — LiteLLM's
model_prices_and_context_window.json(MIT-licensed, community-maintained, unauthenticated). Added in v0.16.0 — ingests ~2000 (model, provider) combinations covering Together AI, Fireworks, Groq, Replicate, Perplexity, regional Bedrock/Azure variants, older model versions. Powers thelookup_extended_model_pricingtool. Curated hand-vetted prices (compare_token_pricing) and extended (lookup_extended_model_pricing) are deliberately separate so users always know which catalog they're hitting.
Each refresh writes a dated snapshot to src/cloudprice_mcp/data/prices/YYYY-MM-DD.json and src/cloudprice_mcp/data/token_prices/YYYY-MM-DD.json — every JSON ever published lives in the repo. The history archive is MIT-licensed and grows with every release.
Every tool result includes the catalog's as_of field so you know exactly which prices were used.
Public price history dataset (v0.7.1+)
cloudprice-mcp is the only FinOps tool we know of that preserves every weekly snapshot. You can query "what did m5.xlarge cost in May?" — neither AWS Calculator nor GCP Estimator can answer that because their pages always show today.
Query the history from the CLI:
The -72.78% drop is the v0.7.0 auto-refresh fixing a hand-curated inaccuracy in the prior OCI catalog — proof that the auto-refresh story works.
Query the history from AI assistants via two new MCP tools:
get_price_history(cloud, sku, since?)— full timeseries + change statslist_tracked_skus(cloud?, since?)— every (cloud, sku) pair we have history for
Real questions this unlocks:
"Has AWS m5.xlarge changed price in the last quarter?" → AI calls
get_price_history, returns timeseries with start/end prices and % change.
"Show me every multi-cloud price mover since January." → AI calls
list_tracked_skus(since="2026-01-01"), returns every SKU + its latest price + change.
Cross-provider LLM token pricing (v0.12.0+)
Token costs are the fastest-growing FinOps line item in 2026 — and nobody compares them cross-provider openly. The same model is often available on multiple providers at different prices (Claude on Anthropic / Bedrock / Vertex; GPT on OpenAI / Azure OpenAI; Llama on Bedrock).
Covers 19 models across 8 providers: Claude (4 Opus / 4 Sonnet / 3.5 Haiku / 3 Haiku), GPT (5, 5 mini, 4o, 4o-mini, o1), Gemini (2.0 Flash, 1.5 Pro/Flash), Llama (3.1 8B/70B/405B, 3.3 70B), Mistral Large 2, DeepSeek V3/R1.
Real questions this unlocks:
"Cheapest model that handles 200K context for output-heavy chat at 10M/mo output volume?" → AI calls
compare_token_pricingwith the volume + an optional model_family filter, returns ranked monthly cost across every viable model+provider combo.
"Should I use Anthropic API or Bedrock for Claude?" →
compare_token_pricing(model_id="claude-4-sonnet")shows price parity on per-token rates, but Anthropic API exposes a 10x cheaper cache_read rate that Bedrock doesn't publish. For caching-heavy workloads, Anthropic wins.
Multi-cloud GPU pricing (v0.11.0+)
The fastest-growing cloud cost category — and nobody compares it cross-cloud openly.
Covers NVIDIA T4, A10, A10G, L4, L40S, V100, A100, H100 across all 4 clouds. Returns:
- Absolute hourly winner — the cheapest matching SKU per cloud
- Per-GPU efficiency winner — sometimes a different cloud (e.g., OCI's BM.GPU4.8 is cheapest per GPU but only sold as 8x, so for
gpu_count=1Azure/GCP win the absolute ranking) - Over-provisioning flags — when the only matching SKU bundles more GPUs than asked for
- GPU memory — differentiates A100 40GB vs 80GB (same
gpu_typefield)
The OCI H100 finding is real: at 8x H100 it's ~19% cheaper than AWS/Azure for identical hardware.
Cost Drift Sentinel (v0.9.0+)
The shift from query tool to agent capability. Most FinOps tools answer "what does this cost?" — this one answers "is this still what it cost when I signed off on it?"
Stateless by design — no server, no database. The baseline JSON lives wherever you want: a file in your IaC repo, S3, Slack DM, anywhere. Each call is a pure function of (catalog, workload, baseline).
Key properties:
- Workload-hash protected — if you change the workload spec, the hash mismatches and you get a fresh baseline rather than a misleading drift report
- SKU-level attribution — the drift report consults the price-history dataset and surfaces which SKUs moved the most between baseline and now
- Configurable threshold — default 5%; pass
alert_threshold_pct=Nto tune
Plug-and-play GitHub Action template at examples/cloudprice-watch.yml — drop it in any IaC repo with a workload.json, get auto-opened GitHub issues when costs drift. Baseline is committed to your repo so the history is auditable.
Carbon-aware FinOps (v0.10.0+) — kg CO2e per workload, alongside USD
The only FinOps MCP tool that returns both cost AND carbon footprint on the same query. AWS / Azure / GCP each publish their own customer dashboards (Customer Carbon Footprint Tool, Emissions Impact Dashboard, Carbon Footprint) — but none compare across providers. cloudprice does.
What's modeled (and disclosed in every response):
- PUE per cloud from each provider's public sustainability report
- Grid carbon intensity per region from public emissions data (EPA eGRID for US, similar baselines elsewhere)
- Renewable matching per provider (AWS/Azure 100%, GCP ~64% CFE, OCI unmatched outside EU)
- ARM vs x86 power class — ARM SKUs (Graviton, Ampere, Axion) modeled at ~30% lower per-vCPU power
- Two carbon numbers per cloud: location-based (grid) AND market-based (residual after renewable matching) — both surfaced so auditors can see both perspectives
What's NOT modeled (always disclosed via honest_gaps[]):
- Embodied carbon (server manufacturing) — operational only
- GPU / network / storage power — compute + memory only
- Time-of-use grid variation — annual averages only
- Real-time 24/7 CFE matching — GCP publishes annual CFE %; cloudprice uses that
Real questions this unlocks:
"What's the lowest-carbon cloud for 4 vCPU / 16 GB at 6 instances?" → AI calls
compare_carbon_footprint, returns per-cloud kg CO2e/mo ranked.
"How much carbon do I save running on ARM vs x86?" → AI calls it twice with the same shape but different target SKUs.
What's NOT modeled (real-world TCO killers)
- ✅
Egress / data transfer— modeled in v0.5 (compare_egress) - ✅
Multi-AZ / HA replicas— modeled in v0.5 (multi_az: trueoncompare_workload) - ✅
Snapshots upper-bound only— fixed 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 runtime pricing (not just weekly refresh) is being considered for v0.8 — would fetch prices directly at MCP tool invocation time instead of from the bundled catalog. Trade-offs: slower (network call per tool use), adds GCP auth requirement, breaks offline mode. The v0.7 weekly auto-refresh covers ~95% of the credibility win at zero runtime cost; live mode is opt-in territory.
Develop locally
To point Claude Desktop at your dev copy, swap the command in the config:
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.
來源:README.md,提交 ff8aeec
工具
0版本歷史
1- v0.2.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分