AS

aws-samples/sample-aws-pricing-calculator-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

153 stars 32 forks 质量 89 趋势 36MIT-0

aws-samples/sample-aws-pricing-calculator-mcp 是从 https://github.com/aws-samples/sample-aws-pricing-calculator-mcp. 导入的 MCP 服务器候选

概览

aws-samples/sample-aws-pricing-calculator-mcp 是从 https://github.com/aws-samples/sample-aws-pricing-calculator-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

模型上下文协议(MCP)服务器,通过自然语言创建、读取并更新AWS定价计算器的估算数据。

主要特色

  • 从自然语言构建估算 - 代理通过MCP工具构建估算;服务器保存到AWS定价计算器,并返回可共享的URL。
  • 无需AWS凭证 - 使用公开且未认证的calculator.aws CDN端点。
  • 实时服务定义 - 在运行时获取AWS定价计算器清单(~436项服务)。
  • 已验证配置目录 - 每服务21条条目,声明最小配置以产生价格估算,并附有文档化的陷阱。
  • Lint rejectal before save - 拒绝计算器对只读或必需输入的估计,并提供可操作的恢复提示。
  • 导入现有估算 - 按URL或ID下载为JSON(用于区域交换、修改)或Markdown(用于LLM分析)。
  • 读取计算成本 - get_estimate_cost通过计算器重新分享估算(更新估算→份额),使AWS保持计算成本,然后返回:前期、月度和12个月总额、定价日期以及每行成本。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

AWS Pricing Calculator MCP Server

Model Context Protocol (MCP) server that creates, reads, and updates AWS Pricing Calculator estimates through natural language.

Key Features

  • Build estimates from natural language - agent constructs the estimate via MCP tools; the server saves it to AWS Pricing Calculator and returns a shareable URL.
  • No AWS credentials required - uses public, unauthenticated calculator.aws CDN endpoints.
  • Live service definitions - fetches the AWS Pricing Calculator manifest at runtime (~436 services).
  • Verified Configs Catalog - 21 per-service entries declaring the smallest config that produces a priced estimate, with documented gotchas.
  • Lint refusal before save - refuses estimates the calculator would render read-only or required-input, with actionable recovery hints.
  • Import existing estimates - download by URL or ID as JSON (for region swaps, modifications) or Markdown (for LLM analysis).
  • Read computed costs - get_estimate_cost re-shares an estimate through the calculator (Update estimate → Share) so AWS persists the computed costs, then reads them back: upfront, monthly, and 12-month totals, the pricing date, and every per-line cost. Uses an on-demand Playwright/Chromium dependency only needed for this tool.
  • Two transport modes - stdio (default, for local clients like Claude Desktop, Kiro, Cursor) and optional HTTP (MCP_TRANSPORT=http) for hosted deployments.

Example

Prompt:

Create an AWS Pricing Calculator estimate for a common Wordpress environment on AWS (Dev, Quality, Production).

Output:

Quick Start

Requires Node.js®.

The published package on npm runs without cloning:

{
  "mcpServers": {
    "aws-pricing-calculator-mcp-server": {
      "command": "npx",
      "args": ["-y", "sample-aws-pricing-calculator-mcp@latest"]
    }
  }
}
在 GitHub 查看完整 README

安装

npx -y sample-aws-pricing-calculator-mcp@latest
新手?先看 mcpskill.org 教程 →

配置

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