npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aws-calculator-mcp

v2.3.1

Published

MCP server for AWS Pricing Calculator — create estimates, get shareable links, and retrieve actual AWS-calculated costs. Supports all 400+ AWS services, EC2 Savings Plans, sub-service resolution, and headless browser cost verification.

Readme

aws-calculator-mcp

npm version License: MIT

AWS Pricing Calculator MCP server. Create estimates, get shareable calculator.aws links, and retrieve actual AWS-calculated costs — all through natural language via any MCP client.

  • 436 services across 72 regions — EC2, Lambda, RDS, Bedrock, S3, and everything else on calculator.aws
  • Real pricing — uses headless Chrome to get actual AWS-calculated costs, not approximations
  • Savings Plans & Reserved Instances — full support for all pricing models
  • No AWS credentials required — works without an account

Install

{
  "mcpServers": {
    "aws-calculator": {
      "command": "npx",
      "args": ["-y", "aws-calculator-mcp@latest"]
    }
  }
}

Place this in your MCP client's config file:

| Client | Config location | |--------|----------------| | Kiro | ~/.kiro/settings/mcp.json | | Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json | | Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json | | Cursor | .cursor/mcp.json | | VS Code | .vscode/mcp.json |

Alternatively, clone and point to the local path:

git clone https://github.com/Musheer360/aws-calculator-mcp.git
cd aws-calculator-mcp && npm install
{
  "mcpServers": {
    "aws-calculator": {
      "command": "node",
      "args": ["/absolute/path/to/aws-calculator-mcp/mcp-server.js"]
    }
  }
}

Note: Claude.ai web connectors require a remote HTTP URL. This server uses stdio transport and is not directly compatible with Claude.ai's custom connector feature.

Tools

| Tool | Description | |------|-------------| | search_services | Search the service catalog by keyword (comma-separated). | | get_service_fields | Get field IDs, types, labels, and valid options for a service. Suggests corrections for invalid keys. | | create_estimate | Create an empty estimate. | | add_service | Add services with config. Validates field names with typo suggestions. Warns on missing critical fields. | | update_service | Modify a service's config in-place without rebuilding the estimate. | | export_estimate | Save to calculator.aws, returns a shareable URL. | | refresh_estimate | Opens the estimate in headless Chrome, triggers recalculation, returns actual costs. | | generate_report | Navigates into each group for per-service costs, merges with config, outputs CSV or Markdown. | | import_estimate | Download an existing estimate by URL or ID (JSON or Markdown). | | list_estimates | List in-memory estimates. | | delete_estimate | Remove an estimate. | | get_server_info | Server version and capabilities. |

Typical workflow

search_services → get_service_fields → create_estimate → add_service → export_estimate → refresh_estimate

How it works

The MCP does not calculate prices. It packages service configurations into the payload format expected by calculator.aws's save API, then uses headless Chrome to retrieve the costs that calculator.aws computes client-side.

  1. Service catalog and field schemas are fetched from AWS's public CDN (same source as calculator.aws).
  2. Configurations are serialized and POSTed to the save API — returns an estimate ID and shareable URL.
  3. refresh_estimate opens the URL in Chrome, clicks "Update estimate", and scrapes the rendered costs.

Accuracy is identical to calculator.aws because it is calculator.aws doing the calculation.

Service coverage

All services available on calculator.aws are supported, including:

  • EC2 (On-Demand, Savings Plans, Reserved Instances, dedicated tenancy)
  • RDS (all engines, Multi-AZ, Reserved)
  • Lambda, S3, CloudFront, DynamoDB, ECS, EKS
  • Bedrock (all model providers: Anthropic, Meta, Mistral, Cohere, etc.)
  • VPC, ELB, Route 53, CloudWatch, WAF, GuardDuty
  • All other services in the calculator catalog

Sub-services (e.g. applicationLoadBalancer under elasticLoadBalancing) are auto-resolved when using the instance parameter.

EC2 configuration

EC2 uses a shorthand format. Do not call get_service_fields for it.

{
  "service": "ec2Enhancement",
  "config": {
    "region": "us-west-2",
    "instanceType": "c5.xlarge",
    "selectedOS": "linux",
    "tenancy": "shared",
    "pricingStrategy": "computeSavings1yrNoUpfront",
    "quantity": "2",
    "storageType": "gp3",
    "storageAmount": {"value": "50", "unit": "gb|NA"}
  }
}

Supported pricing strategies: ondemand, computeSavings1yrNoUpfront, computeSavings3yrAllUpfront, instanceSavings1yrPartialUpfront, etc.

Partitions

| Partition | Regions | |-----------|---------| | aws (default) | All commercial regions | | aws-iso | us-iso-east-1, us-iso-west-1 | | aws-iso-b | us-isob-east-1 |

Requirements

  • Node.js ≥ 18
  • Chrome/Chromium (optional — only for refresh_estimate and generate_report)

To install a bundled Chromium: npx puppeteer browsers install chrome

Troubleshooting

| Issue | Resolution | |-------|-----------| | MCP fails to load | Verify Node.js ≥ 18. Use absolute path for local installs. | | "Cannot find module" | Run npm install in the project directory. | | "No Chrome/Chromium found" | Install Chrome or run npx puppeteer browsers install chrome. | | First call slow (~2s) | Initial catalog fetch from CDN. Cached for subsequent calls. | | refresh_estimate slow (~20s) | Expected — launches a browser and waits for page render. |

Architecture

mcp-server.js              12 MCP tools, input validation, routing
lib/aws-client.js          CalculatorAPI class — catalog, schemas, save, download
lib/estimate-builder.js    Estimate class — incremental building, serialization, export
lib/ec2.js                 EC2 config transformation
lib/browser.js             Headless Chrome — cost retrieval, group navigation

License

MIT