Skip to main content
Glama
symeta

aws-billing-mcp

by symeta

aws-billing-mcp

MCPサーバー(stdio)——ローカルのAWS CLIを介して<対象AWSアカウント>のBilling and Cost Managementデータにアクセスし、Quick DesktopなどのMCPクライアントで消費・使用量分析を行うためのものです。

前提条件

  • Node.js ≥ 18(ローカルにはv24がインストール済み)

  • AWS CLI v2、かつdefault profile(またはAWS_PROFILEで指定されたprofile)の認証情報が<対象AWSアカウント>に属していること

  • IAM権限:ce:Get*budgets:ViewBudgetsts:GetCallerIdentity

サーバーは最初のツール呼び出し時にsts get-caller-identityを使用して現在の認証情報が確かに<対象AWSアカウント>に属していることを検証し、一致しない場合は直接エラーを返し、誤って他のアカウントを参照するのを防ぎます。

Related MCP server: aws-cost-mcp

インストール

cd ~/aws-billing-mcp
npm install

スモークテスト

node test-client.mjs

すべてのツールを一覧表示し、今月のサービス別コストTop5を照会し、月末のコスト予測を1回行います。

Quick Desktopへの接続

Quick DesktopのMCPサーバー設定(Settings → 統合/MCP servers、またはそのJSON設定ファイル)に以下を追加します:

{
  "mcpServers": {
    "aws-billing": {
      "command": "node",
      "args": ["~/aws-billing-mcp/index.mjs"],
      "env": {
        "AWS_PROFILE": "default"
      }
    }
  }
}

注意:nodeはnvmでインストールされています(~/.nvm/versions/node/v24.8.0/bin/node)。Quick Desktop 起動時にnodeまたはawsが見つからない場合は、commandをnodeの絶対パスに変更し、env"PATH": "/usr/local/bin:/usr/bin:/bin:/opt/homebrew/bin"(awsが含まれるディレクトリ)を追加してください。

ツール一覧

ツール

用途

get_cost_and_usage

コアクエリ:任意の期間のコスト/使用量。SERVICE、USAGE_TYPE、REGION、TAGなどによるグループ化(最大2つ)をサポートし、Cost Explorerフィルター式をサポート、自動ページング

get_dimension_values

あるディメンションで実際に費用が発生した値を列挙(サービス名、リージョンなど)。正確なフィルター値を決定するために使用

get_cost_forecast

将来の期間のコスト予測(80%信頼区間を含む)

get_cost_anomalies

Cost Anomaly Detectionで検出されたコスト異常と根本原因

describe_budgets

アカウントのBudgetsと実際/予測の実行状況

get_cost_allocation_tags

請求データのコスト配分タグのkey/value。TAGグループ化と併用

get_commitment_utilization

Savings Plans / RI のutilizationとcoverage

典型的な分析質問(Quick Desktop内)

  • 「このアカウントの今月の費用はいくらですか?サービス別にTop 10を並べてください。」

  • 「直近30日間の毎日のBedrock消費トレンドに異常なスパイクはありますか?」

  • 「8月末の総請求額を予測してください。」

  • 「EC2の費用をusage type別に分解して、どの部分が最も速く増加していますか?」

環境変数

変数

デフォルト値

説明

EXPECTED_ACCOUNT

<対象AWSアカウント>

アクセスを許可するAWSアカウント。認証情報が一致しない場合は拒否

AWS_PROFILE

(システムデフォルト)

使用するAWS CLIプロファイル

AWS_CLI_BIN

aws

AWS CLI実行ファイルのパス

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    AWS Cost Explorer + Anomaly Detection exposed as MCP tools. Surface unusual spend by service/account/tag, pull cost breakdowns, forecasts, savings recommendations. Read-only IAM — refuses to start if the role can modify resources. Curated by Archimedes Market with a verified Trust Report.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables querying AWS Cost and Usage Report data via Amazon Athena for cost-effective and detailed cost analysis.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables analysis of AWS costs and usage through the AWS Cost Explorer API, supporting multi-account architectures with role assumption and cost comparison, forecasting, and anomaly detection.
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid

  • A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud

  • Remote MCP for MCP tool deprecation receipt, structured receipts, audit logs, and reviewer-ready evi

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/symeta/aws-billing-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server