Datadog Billing MCP Server
Provides tools for querying Datadog's billing and usage APIs, returning the current period's estimated cost by product, monthly cost history, end-of-month projected cost with committed vs. on-demand split, usage metrics across logs, hosts, containers, APM and RUM, and hourly or daily log event counts broken down by index.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Datadog Billing MCP Server
A Model Context Protocol (MCP) server that provides Datadog billing and usage analytics tools for AI assistants like Claude.
Features
Cost Analysis: Estimated, historical, and projected costs
Usage Metrics: Logs, hosts, containers, APM, RUM breakdown
Log Volume Tracking: Hourly/daily log indexing trends by index
Related MCP server: MCP Datadog Server
Tools
Tool | Description |
| Current billing period estimated cost by product |
| Monthly cost history for a date range |
| End-of-month projected cost with committed/on-demand split |
| Usage metrics (logs, hosts, containers, APM, RUM) |
| Log event counts by index with hourly/daily aggregation |
Installation
Prerequisites
Python 3.11+
uv package manager
Datadog API Key and Application Key
Setup
Clone the repository:
git clone https://github.com/NayemReza/datadog-billing-mcp.git
cd datadog-billing-mcpInstall dependencies:
uv syncConfiguration
Claude Code
Add the MCP server using the CLI:
claude mcp add --scope local --transport stdio datadog-billing \
-- uv --directory /path/to/datadog-billing-mcp run datadog-billing-mcpThen set the environment variables in ~/.claude.json under your project's mcpServers entry:
{
"projects": {
"/path/to/your-project": {
"mcpServers": {
"datadog-billing": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/path/to/datadog-billing-mcp", "run", "datadog-billing-mcp"],
"env": {
"DD_API_KEY": "your-api-key",
"DD_APP_KEY": "your-app-key",
"DD_SITE": "datadoghq.eu"
}
}
}
}
}
}Note: Do not add MCP servers to
.claude/settings.local.json— they are silently ignored there. Use~/.claude.jsonfor local/personal servers, or.mcp.jsonfor team-shared servers (but avoid committing API keys).
Environment Variables
Variable | Required | Description |
| Yes | Datadog API Key |
| Yes | Datadog Application Key |
| No | Datadog region (default: |
Valid DD_SITE values:
datadoghq.com(US1)us3.datadoghq.com(US3)us5.datadoghq.com(US5)datadoghq.eu(EU)ap1.datadoghq.com(AP1)ddog-gov.com(US1-FED)
Usage Examples
Once configured, Claude can use these tools:
"What's our projected Datadog cost this month?"
→ Uses get_projected_cost
"Show me historical costs from January to now"
→ Uses get_historical_cost with start_month="2025-01"
"Break down our log usage by day for the last week"
→ Uses get_logs_by_index with daily aggregation
"What's driving our cost increase?"
→ Combines multiple tools to analyze trendsAPI Key Permissions
The Application Key needs these scopes:
usage_read- Required for all billing/usage endpoints
Security
Credentials are passed via environment variables only
Keys are never logged or exposed in responses
All requests go directly to official Datadog API endpoints
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Manage uptime monitors and incidents and search logs, metrics and traces from an AI assistant.
FinOps assistant: query AWS, GCP and Azure cost, commitments, budgets and reports.
Query cloud, AI and SaaS spend across 25+ providers: costs, budgets, anomalies, unit economics.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with DataDog's observability platform through a standardized interface. Supports monitoring infrastructure, managing events, analyzing logs and metrics, and automating operations like alerts and downtimes.1MIT
- FlicenseBqualityDmaintenanceEnables AI assistants to interact with Datadog APIs for querying metrics, logs, events, monitors, and APM traces.164-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Datadog's observability platform via natural language, covering metrics, logs, APM, monitors, dashboards, incidents, and infrastructure.1MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to access full Datadog observability, including log search, APM trace filtering, smart sampling, and cross-correlation between logs, traces, and metrics.232,141 npm6Apache 2.0