hwc-calculator
This MCP server exposes Huawei Cloud calculator capabilities for discovery, pricing, quote drafting, and saved-list management.
Discover services, regions, SKU specs, billing modes, and supported services.
Search price lists and get official USD pricing by region and billing mode.
Price a bill of materials and compare billing modes or regions.
Convert USD amounts using Huawei Cloud exchange rates.
Read shared price lists anonymously and export quote summaries to Excel.
Draft, revise, and publish verified quotes; publishing requires login and returns a share link.
Manage account price lists: list, rename, duplicate, delete (login required).
Check authentication and start browser login when a write action needs it.
Drives the Huawei Cloud pricing calculator to search catalog and price queries and generate shareable pricing links. Provides tools to look up instance and disk prices by region, build quotes from items like ECS instances and storage, and run health checks on endpoints and authentication.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hwc-calculator Price 3 ECS c7n.large.2 Linux in Santiago monthly and make a share link"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
autocalc
CLI and MCP server for pricing, validating, and publishing verified quotes on the Huawei Cloud Pricing Calculator.
Installation & Update
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/araujoviana/autocalc/main/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/araujoviana/autocalc/main/install.ps1 | iexUpdate to the latest release at any time:
autocalc update(From a local git clone, run ./install.sh directly).
Browser automation uses system Chrome/Edge by default. On headless servers without a browser: autocalc install-browser.
Related MCP server: Huawei MCP Server
Quick Reference
1. Catalog & Pricing (No auth required)
# Verify environment and calculator endpoint reachability
autocalc doctor
# Query available regions and flavors
autocalc regions ecs
autocalc search ecs "Sao Paulo" linux --vcpus 4 --mem 8 --billing monthly
# Price resources directly
autocalc quote Santiago 'ecs:c7n.large.2.linux*3' 'ecs:SSD*3@100' --billing monthly2. Declarative Quotes (quote.yaml)
Preferred version: "1" syntax (legacy cards: manifests are also accepted):
version: "1"
metadata:
id: web-tier-example
customer: Example Corp
title_prefix: "[autocalc] web-tier"
defaults:
region: sa-brazil-1
billing: monthly
resources:
- id: web
service: ecs
quantity: 2
needs: { vcpus: 4, memory: "8 GiB" }
options: { os: ubuntu-22.04 }# Validate schema, resolve SKUs, write quote.lock.yaml
autocalc plan quote.yaml
# One-time browser login (required only for saving/publishing quotes)
autocalc login
# Encode cards in headless browser, verify price integrity, and output share link
autocalc apply quote.yaml3. Inspect & Export
# Verify stored vs. rated prices for an existing quote link
autocalc validate <shareListId_or_URL>
# Export shared lists to Excel
autocalc export --rows '[{"env":"prod","list":"<url_or_id>"}]' --path quotes.xlsxMCP Server (autocalc-mcp)
Connect AI agents via stdio:
claude mcp add hwc-calculator -- autocalc-mcpOr configure manually in mcp.json:
{
"mcpServers": {
"hwc-calculator": {
"command": "autocalc-mcp"
}
}
}CLI Commands
Command | Description | Auth Required |
| List calculator services, optionally filtered by keyword | No |
| List all regions or regions where a service is sold | No |
| Show available billing modes and catalog groups | No |
| Search SKUs with filters ( | No |
| Price items directly in USD ( | No |
| Compare on-demand, monthly, and yearly pricing | No |
| Compare item pricing across multiple regions | No |
| Validate quote YAML against schemas and write lockfile | No |
| Encode cards, verify publish gate, and return share link | Yes |
| Generate | No |
| Check shared list for arithmetic or schema discrepancies | No |
| Compare stored card prices against headless Edit view | No |
| Manage browser authentication profiles | — |
| Manage saved price lists in your account | Yes |
| Check endpoints, version drift, browser, and cache | No |
Full reference: CLI Reference.
Configuration
Variable | Default | Description |
|
| Named authentication profile for browser sessions |
|
| Directory for configuration and update-check state |
|
| Directory for drafts, run records, and browser auth profiles |
|
| Directory for 24h catalog cache |
| Auto-detected | Custom path to Chrome/Chromium binary |
| Auto ( | Concurrency for headless browser encoding ( |
| Auto ( | Concurrency for headless Edit-view verification |
|
| Set to |
Development
bun install --frozen-lockfile
bun run check # Typecheck (tsc --noEmit)
bun run check:boundaries # Verify architecture layer boundaries
bun run test:offline # Unit and integration tests (deterministic, offline)
bun run test:live # Live tests against calculator endpoints
bun run bench # Run offline loopback benchmark suite
bun run bench:report # Generate self-contained bench/dashboard.htmlDetailed documentation: Code Architecture · docs/ · CLI Reference · ADRs.
License
Available Tools
20 toolsauth_loginA
Open a browser window so the user can sign in once.
Waits up to wait_seconds. If the user is still signing in, returns waiting: true and the
sign-in carries on for up to 5 minutes: tell the user to finish, then call auth_status.
Use when a write tool returns AUTH_EXPIRED. Read-only tools (catalog, quote, read_price_list) never need this.
Inputs: wait_seconds.
auth_statusA
Whether the browser profile is signed in (account mask, browser, cookie names). Read-only tools never need it.
Inputs: no named parameters.
compare_modesB
Compare the same bill of materials across billing modes.
items are quote items ([{service, spec, quantity, size, usage_*}]).
Returns the cost per mode and the saving vs on-demand. Modes: ondemand, monthly, yearly.
Inputs: items (required), modes, region, currency.
compare_regionsC
Price the same bill of materials in several regions. Friendly names accepted.
Inputs: items (required), regions (required), billing.
convert_currencyA
Convert a USD amount using Huawei Cloud's own published exchange rate (e.g. BRL, EUR).
Inputs: currency (required), amount_usd (required).
delete_price_listA
Delete a saved price list by url or id. Needs a login. Confirm with the user before calling; this cannot be undone.
Inputs: url_or_id (required).
describe_serviceA
What a service supports in a region: modes, groups and a sample of specs.
Use before building a list, so the agent knows the valid options for that region.
Inputs: service (required), region.
draft_quoteA
Start a quote. Each requirement: {"id","service","region","billing":"ondemand|monthly|yearly", "quantity"?,"needs"?:{"vcpus":4,"memory_gb":16},"spec"?, "options"?:{the service's options, listed by supported_services}}.
Exact matches are confirmed automatically; for the others show the candidates to the user and call revise_quote. Nothing is saved on the website. Sizes in GB, bandwidth in Mbit/s.
Inputs: customer (required), requirements (required). Returns: object
duplicate_price_listB
Copy a saved price list (optionally with a new name). Needs a login.
Inputs: url_or_id (required), new_name.
export_quotes_xlsxA
Write a workbook of price lists, one row per environment, on four sheets: Quotes (environment, list name, total USD, link), Decisions (what was chosen and why), Resources (every priced resource) and Totals (instances, vCPUs, RAM, storage).
rows: [{"env": "prod", "list": share url or id, "draft_id"?: id}], kept in this order. A list saved by
publish_quote finds its decisions by itself; "draft_id" is for any other. Reads the lists anonymously.
path must end in .xlsx and is overwritten. Nothing is written if any list cannot be read.
Inputs: rows (required), path.
list_my_price_listsA
List the saved price lists on the user's calculator account (name, id, url, total). Needs a login.
Inputs: no named parameters.
list_regionsA
Region ids -> display names. With service, only regions where it is sold.
Other tools take friendly names ('Santiago') directly, so there is nothing to resolve here.
Inputs: service.
list_servicesA
List Huawei Cloud services that have a price calculator (service id, name, category).
Use the returned service id (e.g. 'ecs', 'rds', 'obs', 'cce') in the other tools.
query filters by substring on id/name/category.
Inputs: query. Returns: result
publish_quoteA
Publish a fully decided draft: builds the cards, saves the list, verifies it on the website and returns the link.
Needs a login (auth_login). Confirm the totals with the user first. A failed check deletes the list.
Inputs: name (required), draft_id (required), currency, settlement. Returns: object
quoteA
Price a bill of materials with Huawei Cloud's official rating engine (USD).
items: [{service, spec, quantity=1, size=None, usage_factor=None, usage_value=None}]
spec comes from search_skus; size is capacity in GB for disks/volumes.
usage_value for usage-billed items (OBS storage GB, traffic GB, requests). billing='ondemand' prices
hours(730 = one month); 'monthly'/'yearly' priceperiodsmonths/years and include the official yearly discount.
Inputs: items (required), region (required), hours, billing, +1 more.
read_price_listA
Read any shared price list by url or id (anonymous; works for links others send).
Returns a normalized summary: one row per item (service, spec, mode, quantity, price).
Inputs: url_or_id (required).
rename_price_listC
Rename a saved price list. Needs a login.
Inputs: new_name (required), url_or_id (required).
revise_quoteC
Record the user's choices: decisions = [{"requirement_id","spec","justification"}]. Returns what is still pending.
Inputs: draft_id (required), decisions (required). Returns: object
search_skusB
Search the official price list of a service in a region. Sorted cheapest first.
region accepts a friendly name ('Sao Paulo'). query terms must all appear in
spec/description. Returns spec codes with the list price per billing mode (USD; ondemand per hour, monthly per month, yearly per year).
Inputs: region (required), service (required), limit, query, +3 more.
supported_servicesB
The capability matrix: which services autocalc can build a saved list for, and their modes.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Catalog-related tools (list_services, supported_services, describe_service, search_skus) all touch service discovery but at different levels, while quote/compare_modes/compare_regions and draft_quote/revise_quote/publish_quote are stage-specific. The boundaries are mostly clear, though an agent must rely on descriptions to choose between the catalog and capability tools.
All names use snake_case with mostly verb_noun patterns such as list_services, create-style stage names, and delete_price_list. A few noun-only or status-style names (quote, supported_services, auth_status) are minor deviations, but the set is predictable overall.
At 20 tools this is in the heavy borderline range. The broad workflow includes auth, catalog, quoting, saved lists, comparisons, currency conversion, and export, so most tools earn their place, but the surface feels large and some operations could potentially be consolidated.
The set covers service/region discovery, SKU search, pricing, draft/revise/publish quote lifecycle, saved list creation and management, anonymous shared list reading, billing/region comparisons, currency conversion, and Excel export. No major dead ends are apparent for the stated pricing calculator purpose.
Maintenance
Related MCP Connectors
Verified cloud cost forecasting for AI agents. AWS, GCP, Azure pricing matrix.
Verified cloud cost forecasting for AI agents. AWS, GCP, Azure pricing matrix.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI assistants with real-time access to Azure retail pricing information, enabling price searches, regional cost comparisons, monthly bill estimates, and SKU discovery through natural language queries.1356MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to operate Huawei Cloud resources (ECS, OBS, GaussDB, etc.) through conversational workflows via the Model Context Protocol.36 PyPIApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to parse multi-cloud infrastructure-as-code files, query real-time pricing from AWS, Azure, and GCP, and generate cost estimates and comparison reports.46 npmMIT
- AlicenseBqualityDmaintenanceProvides Oracle Cloud Infrastructure pricing data to AI assistants, enabling cost estimation, shape comparison, and real-time pricing queries.4571 npm5Apache 2.0