Datadog Cost MCP Server
Lets you inspect a Datadog organization's usage and answer cost questions in plain English, helping identify savings opportunities.
README
Datadog Cost MCP Server
An MCP server that lets Claude (or any MCP client) inspect a Datadog org's usage and answer cost questions in plain English — written by an ex-Datadog SRE.
Instead of clicking through the Plan & Usage pages, you ask:
"Which custom metrics are costing me the most this month, and what would I save by dropping the noisy tags?"
…and Claude calls this server, pulls the numbers from the Datadog API, and gives you a ranked answer with a concrete fix.
This is the AI-assistant companion to my Datadog Cost Audit Playbook: the playbook is the manual audit, this puts the same audit one question away inside Claude.
What it does
The server exposes these tools to the model:
| Tool | What it answers |
|---|---|
get_usage_summary |
Billable usage for the last N months: hosts, custom metrics, indexed/ingested logs, APM spans. |
top_custom_metrics |
The highest-cardinality custom metrics (the usual #1 cost driver) with their active tag configuration. |
estimate_metric_savings |
Rough €/month you'd save by dropping given tags from a metric (Metrics without Limits™). |
log_index_config |
Each log index, its retention, and whether it has any exclusion filters — flags "indexing everything". |
find_idle_hosts |
Hosts reporting to Datadog that look muted/zombie, cross-referenced against a live inventory you pass in. |
Every tool returns structured data plus a short advice string, so the model can explain the finding and the remediation in one step.
Why an ex-Datadog SRE built this
Cost tooling that just dumps numbers isn't useful — you need to know which number is the anomaly and what to do about it. Each tool here encodes the heuristics I use in real audits (cardinality thresholds, "read <5% of indexed logs" rule of thumb, zombie-host detection), so the model gives an SRE's answer, not a spreadsheet.
Quick start
pip install -r requirements.txt
# Datadog credentials (read-only keys are enough)
export DD_API_KEY=... # API key
export DD_APP_KEY=... # Application key
export DD_SITE=datadoghq.eu # or datadoghq.com, etc.
# Run over stdio (how MCP clients launch it)
python -m datadog_mcp
Use it with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"datadog-cost": {
"command": "python",
"args": ["-m", "datadog_mcp"],
"env": {
"DD_API_KEY": "your-api-key",
"DD_APP_KEY": "your-app-key",
"DD_SITE": "datadoghq.eu"
}
}
}
}
Restart Claude Desktop and ask: "Use datadog-cost to show my top custom metrics and estimate what I'd save."
Example session
You: Which custom metrics are costing me the most, and what should I do?
Claude: [calls top_custom_metrics]
Your two biggest cost drivers are:
1. checkout.request.duration — 31,406 series
2. checkout.request.count — 14,882 series
Both explode because they're tagged by `pod_name` and `request_id`.
[calls estimate_metric_savings on checkout.request.duration, drop=["pod_name","request_id"]]
Dropping those two tags via Metrics without Limits collapses it to
~180 series — roughly a 99% cut on that metric, ~€480/month at your
current per-100-series rate. You keep the metric, you just stop paying
to index a dimension nobody queries.
Design notes / safety
- Read-only by design. The server only calls Datadog read endpoints. It never edits tag configs, indexes, or retention — it tells you what to change; you apply it in your IaC (that's the playbook's job).
- Credentials come from env vars only; nothing is logged.
estimate_metric_savingsis an estimate (per-100-series list price by default; pass your negotiated rate for accuracy).
Author
Antonio García — ex-Datadog SRE, cloud/observability cost audits across Europe. Contact: antoniopablo.garlopez@hotmail.com · Malt
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。