Datadog MCP Server

DevOpsstdiov0.8.1
代码仓库

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.

连接

将此配置添加到 .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>"
      }
    }
  }
}

工具 (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)"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Datadog (@DataDog)
代码仓库
https://github.com/DataDog/datadog-mcp-server
许可证
Apache-2.0
版本
0.8.1
星标
2,840
最后更新
2026年5月28日