Skip to main content
Glama
symeta

aws-billing-mcp

by symeta

aws-billing-mcp

MCP server (stdio) — accesses Billing and Cost Management data for <目标AWS 账号> via the local AWS CLI, for MCP clients such as Quick Desktop to perform cost and usage analysis.

Prerequisites

  • Node.js ≥ 18 (v24 is installed on this machine)

  • AWS CLI v2, and the credentials of the default profile (or the profile specified by AWS_PROFILE) belong to <目标AWS 账号>

  • IAM permissions: ce:Get*, budgets:ViewBudget, sts:GetCallerIdentity

On the first tool invocation, the server uses sts get-caller-identity to verify that the current credentials indeed belong to <目标AWS 账号>. If they do not match, it immediately returns an error, preventing accidental queries against other accounts.

Related MCP server: aws-cost-mcp

Installation

cd ~/aws-billing-mcp
npm install

Smoke Test

node test-client.mjs

It will list all tools, query the Top 5 costs for this month grouped by service, and run a month-end cost forecast.

Integrating with Quick Desktop

Add the following to Quick Desktop's MCP server configuration (Settings → Integrations/MCP servers, or its JSON configuration file):

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

Note: node is installed via nvm (~/.nvm/versions/node/v24.8.0/bin/node). If Quick Desktop cannot find node or aws at startup, replace command with the absolute path to node, and add "PATH": "/usr/local/bin:/usr/bin:/bin:/opt/homebrew/bin" to env (include the directory containing aws).

Tool List

Tool

Description

get_cost_and_usage

Core query: cost/usage for any time period, supports grouping by SERVICE, USAGE_TYPE, REGION, TAG, etc. (up to 2), supports Cost Explorer filter expressions, automatic pagination

get_dimension_values

Enumerates the values that actually incur costs for a dimension (service names, regions, etc.), used to determine precise filter values

get_cost_forecast

Cost forecast for future time periods (includes 80% confidence interval)

get_cost_anomalies

Cost anomalies detected by Cost Anomaly Detection and their root causes

describe_budgets

Budgets under the account and actual/forecast execution status

get_cost_allocation_tags

Cost allocation tag key/value in billing data, used with TAG grouping

get_commitment_utilization

Utilization and coverage of Savings Plans / RI

Typical Analysis Questions (in Quick Desktop)

  • “How much did this account spend this month? Rank the Top 10 by service.”

  • “What is the daily Bedrock consumption trend for the last 30 days? Are there any abnormal spikes?”

  • “Forecast the total bill at the end of August.”

  • “Break down EC2 costs by usage type — which part is growing the fastest?”

Environment Variables

Variable

Default

Description

EXPECTED_ACCOUNT

<目标AWS 账号>

AWS account allowed to access; reject if credentials do not match

AWS_PROFILE

(system default)

AWS CLI profile to use

AWS_CLI_BIN

aws

Path to the AWS CLI executable

Install Server
F
license - not found
Not graded
quality - not tested
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