Datadog MCP Server
Provides read-only access to Datadog API for searching logs, querying metrics, listing monitors, searching traces, managing hosts, exploring dashboards, listing events, and handling incidents.
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., "@Datadog MCP ServerFind errors in the checkout service in the last 30 minutes"
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.
Datadog MCP Server
A read-only Model Context Protocol server that connects to the Datadog API, enabling natural-language investigation workflows through Claude Desktop, Claude Code, or any MCP client.
Scan logs for errors, identify problematic services, query metrics, explore monitors/dashboards/traces — all through conversation.
Setup
npm install
npm run buildRequires three environment variables:
Variable | Required | Default | Description |
| Yes | — | API Key — identifies your Datadog organization. Found in Organization Settings → API Keys. |
| Yes | — | Application Key — tied to a specific user account and grants that user's read permissions. Create one in Organization Settings → Application Keys. |
| No |
| Datadog site (e.g. |
Related MCP server: Datadog MCP Server
MCP Client Configuration
Claude Code
claude mcp add datadog -- node /path/to/datadog/build/index.jsThen set DD_API_KEY and DD_APP_KEY in the environment where Claude Code runs.
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"datadog": {
"command": "node",
"args": ["/path/to/datadog/build/index.js"],
"env": {
"DD_API_KEY": "your-api-key",
"DD_APP_KEY": "your-app-key"
}
}
}
}MCP Inspector (for testing)
DD_API_KEY=xxx DD_APP_KEY=yyy npx @modelcontextprotocol/inspector build/index.jsTools
Logs
Tool | Description |
| Search logs with structured filters ( |
Metrics
Tool | Description |
| Query timeseries data (e.g. |
| Search available metric names by prefix. |
Monitors
Tool | Description |
| List monitors filtered by name, tags, status, or type. |
| Get full monitor details including query, message, and thresholds. |
| Full-text search across monitor names, queries, and messages. |
Traces / APM
Tool | Description |
| Search APM spans by service, operation, environment, status, or duration. |
Hosts
Tool | Description |
| List infrastructure hosts with CPU, load, and IOWait metrics. |
| Get counts of active and up hosts. |
Dashboards
Tool | Description |
| List dashboards with optional title search. |
| Get dashboard details including all widgets and their queries. |
Events
Tool | Description |
| Search events (deploys, alerts, etc.) with cursor pagination. |
Incidents
Tool | Description |
| List incidents with optional search. |
| Get incident details including severity, status, and timeline. |
Time Parameters
All time parameters accept relative strings or ISO 8601:
Format | Example | Meaning |
Minutes |
| 15 minutes ago |
Hours |
| 4 hours ago |
Days |
| 7 days ago |
Weeks |
| 2 weeks ago |
Now |
| Current time |
ISO 8601 |
| Exact timestamp |
Example Prompts
"What errors have occurred in the last hour?"
"Show me CPU usage for production hosts over the past day"
"Which monitors are currently alerting?"
"Search for traces with errors in the checkout service"
"List recent deploy events"
Development
npm run dev # watch mode — recompiles on change
npm run build # one-time build
npm start # run the serverThis server is read-only — no write or mutate operations are exposed, making it safe for production investigation.
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Query OneLens cloud-cost data in natural language: breakdowns, trends, cost centers. Read-only.
Ask data questions in natural language. Get SQL, insights, and charts from your databases.
Ask business questions in plain English. Get instant answers from your database, no SQL needed.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and manage Datadog observability data including metrics, logs, traces, and monitors through natural language. Supports read-only operations by default for security.MIT
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Datadog APIs through natural language, supporting full CRUD operations on metrics, monitors, dashboards, logs, infrastructure, and more.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Datadog's observability platform via natural language, covering metrics, logs, APM, monitors, dashboards, incidents, and infrastructure.6631MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to access full Datadog observability, including log search, APM trace filtering, smart sampling, and cross-correlation between logs, traces, and metrics.236635Apache 2.0