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 "Install 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
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/peterlozano/mcp-server-datadog'
If you have feedback or need assistance with the MCP directory API, please join our Discord server