Datadog MCP Server

DevOpsstdiov0.8.1
Repository

Connects AI agents to Datadog for monitoring, observability, and incident management. Enables querying metrics, viewing traces, searching logs, and managing monitors programmatically. Supports dashboard creation, alert configuration, and SLO tracking through the Model Context Protocol.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "datadog": {
      "command": "npx",
      "args": [
        "-y",
        "@datadog/mcp-server"
      ],
      "env": {
        "DD_API_KEY": "<YOUR_DD_API_KEY>",
        "DD_APP_KEY": "<YOUR_DD_APP_KEY>",
        "DD_SITE": "<YOUR_DD_SITE>"
      }
    }
  }
}

Tools (4)

query_metrics

Query Datadog metrics using the metrics query language. Returns time series data for visualization or analysis.

{
  "type": "object",
  "required": [
    "query",
    "from",
    "to"
  ],
  "properties": {
    "to": {
      "type": "integer",
      "description": "End time as UNIX timestamp"
    },
    "from": {
      "type": "integer",
      "description": "Start time as UNIX timestamp"
    },
    "query": {
      "type": "string",
      "description": "Datadog metrics query (e.g., avg:system.cpu.user{env:production})"
    }
  }
}

search_logs

Search and retrieve log entries from Datadog Log Management.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "to": {
      "type": "string",
      "description": "End time (ISO 8601)"
    },
    "from": {
      "type": "string",
      "description": "Start time (ISO 8601)"
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of logs to return"
    },
    "query": {
      "type": "string",
      "description": "Log search query"
    }
  }
}

list_monitors

List all active monitors and their current status.

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Filter monitors by name"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filter by tags"
    }
  }
}

create_monitor

Create a new Datadog monitor with alerting thresholds and notification targets.

{
  "type": "object",
  "required": [
    "name",
    "type",
    "query",
    "message"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Monitor name"
    },
    "type": {
      "type": "string",
      "description": "Monitor type (metric, query, service, etc.)"
    },
    "query": {
      "type": "string",
      "description": "Monitor query"
    },
    "message": {
      "type": "string",
      "description": "Notification message with @mentions"
    },
    "thresholds": {
      "type": "object",
      "description": "Alert thresholds (critical, warning, ok)"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
Datadog (@DataDog)
Repository
https://github.com/DataDog/datadog-mcp-server
License
Apache-2.0
Version
0.8.1
Stars
2,840
Last Updated
May 28, 2026