mcp-aws-finops
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., "@mcp-aws-finops Compare our AWS costs this month to last month and show the top drivers."
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.
mcp-aws-finops
A read-only MCP server that lets an AI agent (Claude, Cursor, Hermes…) answer AWS cost / FinOps questions directly in plain language: "how much did EKS cost this month?", "what went up since last month?", "which resources are idle?".
Built on the FinOps Foundation's open FOCUS billing format, so it works fully offline, with no AWS account or credentials, using bundled synthetic sample data. An AWS Cost Explorer backend is planned (see Roadmap) but not implemented yet — don't point this at production expecting live AWS data today.

Features
Tool | What it does |
| Cost for a date range, grouped by service, account, region, or a tag |
| Delta between two periods and the top drivers of the change |
| Rank the N most expensive services over a period |
| Showback by tag (e.g. |
| Unattached EBS, idle Elastic IPs, old snapshots, low-CPU instances |
| Simple run-rate projection of month-end spend |
| What changed on a given day vs. a trailing baseline |
Also exposes one MCP Resource (finops://reports/weekly, a markdown
weekly cost report) and one MCP Prompt (weekly_cost_review).
All tools are read-only and return typed, validated (pydantic) output.
Invalid inputs (bad dates, out-of-range n, unknown group_by) raise
clear, descriptive errors instead of silently doing the wrong thing.
Related MCP server: nable (finops-mcp)
Quickstart
# PyPI release is pending — once published:
uvx mcp-aws-finops --demo
# Until then, run from a checkout:
git clone https://github.com/thomm-011/mcp-aws-finops
cd mcp-aws-finops
uv run mcp-aws-finops --demo--demo uses the bundled synthetic sample dataset (~3 months of AWS
billing data, see Sample data). To point it at your own
FOCUS-format export instead:
uv run mcp-aws-finops --data /path/to/focus.parquet
# or a directory of FOCUS CSV/Parquet files
uv run mcp-aws-finops --data /path/to/focus-exports/The server speaks MCP over stdio by default.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"aws-finops": {
"command": "uvx",
"args": ["mcp-aws-finops", "--demo"]
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"aws-finops": {
"command": "uvx",
"args": ["mcp-aws-finops", "--demo"]
}
}
}Hermes
{
"mcpServers": {
"aws-finops": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-aws-finops", "mcp-aws-finops", "--demo"]
}
}
}Use with your agent
Ready-to-copy configs for Claude Desktop, Cursor, Claude Code, and Hermes
live in examples/ — including the zero-install
uvx --from git+https://github.com/thomm-011/mcp-aws-finops command (no
PyPI release yet) and a local uv --directory variant. See
docs/demo.tape for the VHS source behind the GIF above.
Architecture
flowchart LR
agent["AI agent (Claude / Cursor / Hermes)"] <-->|MCP stdio| server["mcp-aws-finops\n(FastMCP server)"]
server --> tools["Tools: get_cost_summary, compare_periods,\ntop_cost_drivers, cost_by_tag,\nfind_idle_resources, forecast_month_end,\nexplain_anomaly"]
tools --> iface["CostSource interface"]
iface --> focus["FocusFileSource\n(DuckDB over FOCUS CSV/Parquet)"]
iface -.->|M4, not implemented| ce["CostExplorerSource\n(boto3: Cost Explorer, CloudWatch)"]
focus --> data[("sample_focus.parquet\nor your FOCUS export")]
ce -.-> aws[("AWS account\n(read-only IAM role)")]A single CostSource abstract interface (src/mcp_aws_finops/sources/base.py)
decouples the MCP tool layer from where the data comes from. Today only
FocusFileSource is implemented: it loads a local FOCUS CSV/Parquet file
(or directory of files) into an in-memory DuckDB view and runs SQL
aggregations for every tool. CostExplorerSource is declared with the same
interface, to be implemented in M4, so swapping backends needs no change to
the tools themselves.
Sample data
The bundled dataset (src/mcp_aws_finops/data/sample_focus.parquet, ~47 KB)
is synthetic, generated deterministically by
scripts/generate_sample.py (fixed seed,
random.Random(42)).
We evaluated the FinOps Foundation's public FOCUS-Sample-Data repository first, but at the time of writing its samples are small, multi-provider, generic examples (and have open issues about not fully passing the FOCUS validator) rather than AWS-specific data with the resource-level detail (unattached volumes, idle EIPs, old snapshots, per-instance CPU) the idle-resource heuristics and anomaly tooling need. A seeded generator gave full control over that, with a license-free, byte- reproducible result.
It models ~3 months (92 days) of AWS billing across EC2, EKS, RDS, S3,
Lambda, CloudWatch, NAT Gateway, EBS volumes (20% deliberately unattached),
EBS snapshots (some older than 90 days), and Elastic IPs (30% idle). Tags
team/project/env are present on most resources, with 10-30% of
resources deliberately left untagged per service to exercise the
cost_by_tag untagged-% metric. Day 56 (2025-08-25) has a deliberate ~2.3x
EC2 cost spike for explain_anomaly to detect.
FOCUS is the open, vendor-neutral billing schema from the
FinOps Foundation; see the
spec.
FocusFileSource uses the standard FOCUS columns (BilledCost,
ServiceName, ChargePeriodStart, Tags, ...) plus a few x_-prefixed
extension columns the spec reserves for provider/implementation-specific
data (x_Attached, x_AvgCpuUtilization, ...) — documented in
focus_file.py.
Security
Every tool is read-only: it only ever runs
SELECTqueries against a local file (or, once M4 lands, read-only AWS API calls). No tool deletes, creates, or modifies anything — enforced by a server-level test that rejects any registered tool whose name contains a mutating verb.No AWS credentials are required or used in offline mode.
Once the Cost Explorer backend (M4) exists, it will require only a read-only IAM role (
ce:Get*,ce:Describe*,cloudwatch:GetMetricData,compute-optimizer:Get*) — no*:Create*,*:Delete*, or*:Put*permissions. The exact policy JSON and a Terraform module to provision the role will ship with M4.Cost Explorer API calls cost ~US$0.01 each; the M4 implementation will cache results to avoid surprise bills.
Roadmap
M1 — Skeleton ✅ repo,
uv,src/layout, FastMCP server with tools, CI (ruff/mypy/pytest), README.M2 — Offline mode ✅
FocusFileSourceover DuckDB, all 7 tools + resource + prompt on sample data, ≥80% test coverage.M3 — Agent integration ✅ ready-to-paste configs for Claude Desktop/Cursor/Claude Code/Hermes (see
examples/), demo GIF of an agent (Hermes) answering real questions against the sample data.M4 — AWS backend (needs an AWS account, not yet started) —
CostExplorerSourceimplementation, tested withmoto/botocore stubs, read-only IAM policy JSON, Terraform module for the role.M5 — Polish — Docker image, PyPI release (
uvx mcp-aws-finops), badges, portfolio entry.
Development
uv sync --all-groups
uv run ruff check . && uv run ruff format --check .
uv run mypy src
uv run pytest --cov --cov-report=term-missing
uv run pre-commit install # optional, runs the same checks on commitRegenerate the sample dataset after changing the generator:
uv run python scripts/generate_sample.pyLicense
MIT — see LICENSE.
Available Tools
7 toolscompare_periodsA
Compare total AWS cost between two date ranges and rank what changed.
Args:
a_start/a_end: ISO dates for the baseline period (e.g. last month).
b_start/b_end: ISO dates for the comparison period (e.g. this month).
Returns the totals for both periods, the delta, and the services
with the largest absolute cost change (increase or decrease),
largest first — useful to answer "what went up since last month?".
Inputs: a_end (required), b_end (required), a_start (required), b_start (required). Returns: Result of `compare_periods`.
cost_by_tagA
Break down cost by the values of one cost-allocation tag (showback).
Args:
tag_key: Tag key to group by, e.g. "team" or "project".
start: ISO date (inclusive).
end: ISO date (exclusive).
Also reports the cost and percentage of spend with no value for
this tag ("untagged"), which is a common FinOps hygiene metric.
Inputs: end (required), start (required), tag_key (required). Returns: Result of `cost_by_tag`.
explain_anomalyA
Explain a cost spike/dip on a given day vs. a trailing baseline.
Args:
day: ISO date to explain, e.g. "2025-08-25".
baseline_window_days: How many days before `day` to average as
the baseline (1-60). Defaults to 14.
threshold_pct: Percent deviation from baseline above which the
day is flagged `is_anomaly=True`. Defaults to 30%.
Returns the day's actual cost, the baseline average, and the
services that contributed most to the difference.
Inputs: day (required), threshold_pct, baseline_window_days. Returns: Result of `explain_anomaly`.
find_idle_resourcesA
Find likely-idle/wasteful AWS resources from billing data heuristics.
Args:
lookback_days: How many trailing days of billing data to inspect
(1-90). Defaults to 14.
Heuristics (see FocusFileSource docstring for full detail):
unattached EBS volumes, idle Elastic IPs, EBS snapshots older than
90 days, and EC2/RDS instances with average CPU under 5%. Each
finding includes an estimated monthly cost of the waste.
Inputs: lookback_days. Returns: Result of `find_idle_resources`.
forecast_month_endA
Forecast the total AWS cost for a calendar month using a run-rate.
Args:
month: Target month as "YYYY-MM", e.g. "2025-09".
Method: linear run-rate. Computes the average daily cost over the
days of the month already covered by data, then multiplies by the
number of days in the month. This is intentionally simple (no
seasonality or trend) — documented so callers know its limits.
Inputs: month (required). Returns: Result of `forecast_month_end`.
get_cost_summaryA
Summarize AWS cost for a date range, grouped by a dimension.
Args:
start: ISO date (inclusive), e.g. "2025-07-01".
end: ISO date (exclusive), e.g. "2025-08-01".
group_by: One of "service", "account", "region", or "tag:<key>"
(e.g. "tag:team") to break the total down by a cost
allocation tag.
Returns the total cost for the period and the cost per group,
sorted descending, each with its share of the total.
Inputs: end (required), start (required), group_by. Returns: Result of `get_cost_summary`.
top_cost_driversA
Rank the top N services by cost over a date range.
Args:
start: ISO date (inclusive).
end: ISO date (exclusive).
n: How many drivers to return (1-50).
Inputs: end (required), start (required), n. Returns: Result of `top_cost_drivers`.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The tools mostly target distinct FinOps questions, but there is some overlap: get_cost_summary with group_by="tag:<key>" overlaps with cost_by_tag, and top_cost_drivers partially overlaps with compare_periods. Descriptions make the intended use clear enough that an agent can usually choose correctly.
All names use consistent snake_case and are readable, but the convention is not strictly verb_noun throughout: top_cost_drivers and cost_by_tag are noun-oriented while others are verb-first. This is a minor inconsistency rather than a confusing mix.
Seven tools is well-scoped for an AWS FinOps analytics server. Each tool covers a distinct analysis need without obvious redundancy or unnecessary surface area.
The surface covers core cost visibility tasks: summary, period comparison, top drivers, tag showback, idle-resource discovery, monthly forecast, and anomaly explanation. Some adjacent FinOps workflows such as budget/threshold management or savings-plan coverage are absent, but the main analytics lifecycle is well represented.
Maintenance
Related MCP Connectors
Hosted MCP server for AWS cloud spend: service breakdowns, anomalies, savings and forecasts.
- Costory FinOps MCPDeprecatedio.costory
FinOps harness MCP: allocated cloud, data and LLM bills. Build on it or switch. Cloud read-only.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server for unified cost tracking and analysis across AWS, OpenAI, and Anthropic. It enables users to query expenditures, compare costs across providers, and analyze usage trends through natural language.10MIT
- AlicenseAqualityBmaintenanceLocal-first FinOps MCP server. Ask about your AWS, Azure, GCP, and SaaS costs in plain English. Anomaly detection, rightsizing, idle-resource cleanup, and Jira/Linear ticketing. Credentials never leave your machine.1020Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables users to query AWS cloud costs, run waste and savings audits, and check budget status in natural language across multiple accounts, profiles, and regions. Runs locally using existing AWS CLI credentials, keeping them on the user's machine while connecting to MCP-compatible AI clients.-
- FlicenseNot gradedqualityAmaintenanceThis MCP server enables users to analyze AWS cloud costs, audit for wasted resources, and monitor budgets across multiple profiles and regions. It provides secure, local access to AWS financial data using natural language, with credentials never leaving the machine.-