Datadog

io.github.us-all由 GitHub 帳號 us-all 發布v1.21.1更新於 Oct 24, 2026

Datadog MCP — 165 tools for metrics, monitors, logs, APM, RUM, incidents, CI/CD, fleet

概覽

AI 產生的概覽

自架的 Datadog MCP 伺服器,提供 163 個工具,讓助理查詢並在啟用後修改指標、監控、日誌、APM、RUM、SLO、事件等 Datadog 資料。

可以做什麼
查詢指標、主機、容器、程序、日誌、跨度與稽核日誌,並對日誌和指標做彙總,支援欄位投影以節省上下文。讀取與管理監控、儀表板、筆記本、事件與停機,並提供彙總監控狀態的聚合工具。管理 SLO,包括建立、更新、刪除 SLO 及其修正,以及合規快照。檢視與管理 RUM 應用程式、指標與保留篩選器、Synthetics 測試、安全訊號、規則與抑制、CI 流水線與測試、錯誤追蹤、DORA、網路裝置、案例、事件、團隊、值班表與服務。執行 Fleet 自動化及狀態頁全生命週期管理,並可用 search-tools 依關鍵字探索工具。
適用情境
適合讓助理排查 Datadog 事件、稽核監控噪音、查看 SLO 錯誤預算、分析 RUM 或 APM 錯誤激增,或在自架環境(含內部或主權站點)中管理 SLO、Fleet 部署和狀態頁。
執行需求
透過 npx 或 Docker 以 stdio 在本機執行(原始碼建置需 Node.js 22+)。需要 Datadog API 金鑰(DD_API_KEY)與應用程式金鑰(DD_APP_KEY);DD_SITE 選擇站點,預設 US5。選用 HTTP 傳輸需 MCP_HTTP_TOKEN。需要存取 Datadog API 的網路。
安裝前請注意
API 金鑰與應用程式金鑰可存取你的 Datadog 帳戶,並以環境變數傳入。寫入預設被封鎖;設定 DD_ALLOW_WRITE=true 會啟用監控、儀表板、SLO、Synthetics、停機、案例、團隊、安全規則與抑制、Fleet 和狀態頁的建立、更新、刪除工具,以及傳送日誌和事件。未設定 MCP_HTTP_SKIP_AUTH 的 HTTP 模式需要 bearer 權杖。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Datadog,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Datadog MCP Server

The Datadog MCP that answers "why is this happening?" — not just "what's the value?"

Aggregation tools that fold 5–7 sequential API calls into one structured response. Full SLO CRUD. Fleet automation. The widest Datadog API coverage in any MCP — 163 tools built on the @us-all MCP standard.

[npm] [downloads] [tools] [@us-all standard] [Glama MCP server]

What it does that others don't

  • Aggregation tools — analyze-monitor-state and slo-compliance-snapshot collapse 5–7 sequential API calls into one structured response with a caveats array for partial failures. No other Datadog MCP ships this pattern.
  • Full SLO CRUD — create, update, delete SLOs (and their corrections). The official Bits AI MCP and community alternatives are read-only on SLOs.
  • Fleet Automation — 15 tools across deployments and schedules. Only this server.
  • Status Pages — 21 tools for full status-page lifecycle (components, degradations, maintenances). Only this server.
  • Token-efficient by design — extractFields projection, DD_TOOLS/DD_DISABLE 16-category toggles, and a search-tools meta-tool keep LLM context low across 163 tools.
  • Apps SDK card — slo-compliance-snapshot renders as a visual card on ChatGPT clients via _meta["openai/outputTemplate"]. Claude clients receive the same JSON content (non-breaking).
  • stdio + Streamable HTTP — defaults to stdio (Claude Desktop / Code). Set MCP_TRANSPORT=http for ChatGPT Apps SDK or remote clients (Bearer auth via MCP_HTTP_TOKEN).

Try this — 5 prompts

Connect the server to Claude Desktop or Claude Code, then paste any of these:

  1. SLO health — "List my SLOs and their error budget remaining this month. Group by status: compliant, at-risk, breached."
  2. Incident triage — "There's an active incident on checkout-service. Pull the linked monitors, the recent error spikes from APM, and which deployments touched the service in the last 24h."
  3. Monitor noise audit — "Find monitors that alerted more than 10 times in the last 7 days but had MTTR under 5 minutes — these are probably flapping."
  4. RUM error spike — "RUM error rate jumped on the checkout funnel between 14:00 and 14:30 today. Show me the top error groups, affected sessions, and the user actions before the errors."
  5. Fleet rollout — "Schedule the datadog-agent 7.55.0 rollout to the staging cluster, weekends only, starting next Saturday."

When to use this vs Datadog's official MCP

Datadog's official MCP (Bits AI MCP, GA 2026-03-09) is complementary, not a replacement:

Official Datadog MCP@us-all/datadog-mcp (this)
Tool count16+ core toolsets163 tools across full API surface
DeploymentRemote (managed by Datadog)Self-host stdio (npx / Docker / npm)
AuthDatadog SSOAPI + APP key
SitesPublic Datadog sitesAny site, incl. internal/sovereign; US5 default
SLO writes❌✅ create/update/delete SLOs + corrections
Fleet automation❌✅ 15 tools
Status pages❌✅ 21 tools
Aggregation tools❌✅ analyze-monitor-state, slo-compliance-snapshot
MCP Prompts❌✅ 4 (triage-incident, audit-monitor-noise, analyze-rum-error-spike, investigate-slow-trace)
MCP Resources❌✅ dd://service/{serviceName}, dd://team/{teamId}, dd://synthetics/{testId}, etc.

Use the official Bits AI MCP for fast managed onboarding and SSO. Use this when you need full API coverage, SLO/fleet/status-page write parity, or self-hosting (internal sites, isolated networks, dev/CI sandboxes).

Install

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "datadog": {      "command": "npx",      "args": ["-y", "@us-all/datadog-mcp"],      "env": {        "DD_API_KEY": "<your-api-key>",        "DD_APP_KEY": "<your-app-key>",        "DD_SITE": "datadoghq.com"      }    }  }}

Claude Code

bash
claude mcp add datadog -s user \  -e DD_API_KEY=<your-api-key> -e DD_APP_KEY=<your-app-key> -e DD_SITE=datadoghq.com \  -- npx -y @us-all/datadog-mcp

Docker

bash
docker run -e DD_API_KEY=... -e DD_APP_KEY=... -e DD_SITE=datadoghq.com \  ghcr.io/us-all/datadog-mcp-server:latest

Build from source

bash
git clone https://github.com/us-all/datadog-mcp-server.gitcd datadog-mcp-server && pnpm install && pnpm buildnode dist/index.js

Configuration

VariableRequiredDefaultDescription
DD_API_KEY✅—Datadog API key
DD_APP_KEY✅—Datadog Application key
DD_SITE❌us5.datadoghq.comDatadog site (see table below)
DD_ALLOW_WRITE❌falseSet true to enable mutations (create/update/delete)
DD_TOOLS❌—Comma-sep allowlist of categories. Only these load — biggest token saver.
DD_DISABLE❌—Comma-sep denylist. Ignored when DD_TOOLS is set.
MCP_TRANSPORT❌stdiohttp to enable Streamable HTTP transport
MCP_HTTP_TOKENconditional—Bearer token. Required when MCP_TRANSPORT=http
MCP_HTTP_PORT❌3000HTTP listen port
MCP_HTTP_HOST❌127.0.0.1HTTP bind host (DNS rebinding protection auto-enabled for localhost)
MCP_HTTP_SKIP_AUTH❌falseSkip Bearer auth — e.g. behind a reverse proxy that handles it

Categories (16): metrics, monitors, dashboards, logs, apm, rum, incidents, security, synthetics, ci, infra, fleet, status-pages, oncall, teams, account.

When MCP_TRANSPORT=http: POST /mcp (Bearer-auth JSON-RPC) + GET /health (public liveness).

Sites:

SiteValueRegion
US1datadoghq.comUS (Virginia)
US3us3.datadoghq.comUS (Virginia)
US5us5.datadoghq.comUS (Oregon)
EU1datadoghq.euEU (Frankfurt)
AP1ap1.datadoghq.comAsia-Pacific (Tokyo)

Token efficiency

Naive setup loads ~25K tokens of tool schema before any conversation. Three knobs mitigate:

ScenarioToolsSchema tokensvs default
default (all categories)16325,200—
typical (DD_TOOLS=metrics,monitors,logs,apm,dashboards)559,300−63%
narrow (DD_TOOLS=metrics,monitors)243,800−85%
  1. Category toggles — DD_TOOLS=metrics,monitors,logs,apm (biggest win).
  2. extractFields response projection — get-dashboard { dashboardId: "abc", extractFields: "id,title,widgets.*.definition.type" }.
  3. search-tools meta-tool — always enabled; lets the LLM discover tools at runtime instead of preloading all schemas.

Read-only mode

By default, all writes are blocked to prevent accidental mutations by AI agents. The following require DD_ALLOW_WRITE=true:

create-monitor, update-monitor, delete-monitor, mute-monitor, create-dashboard, update-dashboard, delete-dashboard, send-logs, post-event, trigger-synthetics, create-synthetics-test, update-synthetics-test, delete-synthetics-test, create-downtime, cancel-downtime, create-case, update-case-status, send-dora-deployment, send-dora-incident, create-slo, update-slo, delete-slo, plus all fleet/status-page/security writes.

MCP Prompts (4)

Workflow templates the model can invoke directly:

  • triage-incident — given an incident ID, walks linked monitors, recent error spikes, and recent deploys.
  • audit-monitor-noise — flag flapping monitors via alert frequency × MTTR.
  • analyze-rum-error-spike — diff RUM error rates across two windows, attribute to top error groups.
  • investigate-slow-trace — given a slow trace ID, traverse the span tree and surface bottleneck spans.

MCP Resources

Read-only entities by URI: dd://monitor/{id}, dd://dashboard/{id}, dd://slo/{id}, dd://incident/{id}, dd://service/{serviceName}, dd://team/{teamId} (team + members), dd://synthetics/{testId}, dd://host/{name}.

Tool reference

163 tools across 16 categories. Use the search-tools meta-tool to discover at runtime; the full list is collapsed below.

DomainTools
Status Pages21
RUM (events + apps + metrics + retention)27
Metrics, Hosts, SLOs, Downtimes, Containers, Processes19
Fleet Automation15
Synthetics, Logs/Spans Metrics, SLO Corrections16
Monitors, Dashboards, Notebooks, Events16
Incidents, Cases, Error Tracking, Audit13
OnCall, Teams, Users, Services, Bots11
Security signals + rules + suppressions9
APM, CI Visibility, DORA, Network Devices9
+ aggregationsanalyze-monitor-state, slo-compliance-snapshot
+ metasearch-tools
Full tool list (click to expand)

Metrics (5)

query-metrics, get-metrics, get-metric-metadata, list-active-metrics, list-metric-tags

Monitors (7)

get-monitors, get-monitor, create-monitor, update-monitor, delete-monitor, mute-monitor, validate-monitor, analyze-monitor-state (aggregation)

Dashboards (5)

get-dashboards, get-dashboard, create-dashboard, update-dashboard, delete-dashboard

Logs (3)

search-logs, aggregate-logs, send-logs

Events (2)

get-events, post-event

Incidents (6)

get-incidents, get-incident, search-incidents, create-incident, update-incident, delete-incident

APM (1)

search-spans

RUM (17)

search-rum-events, aggregate-rum, list-rum-applications, get-rum-application, create-rum-application, update-rum-application, delete-rum-application, list-rum-metrics, get-rum-metric, create-rum-metric, update-rum-metric, delete-rum-metric, list-rum-retention-filters, get-rum-retention-filter, create-rum-retention-filter, update-rum-retention-filter, delete-rum-retention-filter

SLOs (6)

list-slos, get-slo, get-slo-history, create-slo, update-slo, delete-slo, slo-compliance-snapshot (aggregation), plus 5 SLO-correction tools

Synthetics (6)

list-synthetics, get-synthetics-result, trigger-synthetics, create-synthetics-test, update-synthetics-test, delete-synthetics-test

Hosts / Containers / Processes (4)

list-hosts, get-host-totals, list-containers, list-processes

Downtimes (3)

list-downtimes, create-downtime, cancel-downtime

Security (9)

search-security-signals, get-security-signal, list-security-rules, get-security-rule, delete-security-rule, list-security-suppressions, get-security-suppression, create-security-suppression, delete-security-suppression

CI Visibility (4)

search-ci-pipelines, aggregate-ci-pipelines, search-ci-tests, aggregate-ci-tests

Cases (4)

list-cases, get-case, create-case, update-case-status

Error Tracking (2)

list-error-tracking-issues, get-error-tracking-issue

DORA (2)

send-dora-deployment, send-dora-incident

Network Devices (2)

list-network-devices, get-network-device

Notebooks (2)

list-notebooks, get-notebook

OnCall (2)

get-team-oncall, get-oncall-schedule

Services & Software Catalog (2)

list-services, get-service-definition

Teams (6)

list-teams, get-team, create-team, update-team, delete-team, get-team-members

Account & Users (2)

get-usage-summary, list-users

Logs/Spans/APM Retention metrics (15)

5 each for logs-metrics, spans-metrics, apm-retention-filters (list/get/create/update/delete)

Status Pages (21)

Full lifecycle: pages, components, degradations, maintenances. See src/tools/status-pages.ts.

Fleet Automation (15)

Agents, deployments, schedules. See src/tools/fleet.ts.

Audit (1)

search-audit-logs

Meta (1)

search-tools — query other tools by keyword; always enabled regardless of DD_TOOLS.

Architecture

Claude → MCP stdio → index.ts → tools/*.ts → @datadog/datadog-api-client → Datadog API

Built on @us-all/mcp-toolkit:

  • extractFields — token-efficient response projections
  • aggregate(fetchers, caveats) — fan-out helper for aggregation tools
  • createWrapToolHandler — domain-specific redaction (DD_API_KEY/DD_APP_KEY) + Datadog ApiException error extraction
  • search-tools meta-tool

Tech stack

Node.js 22+ • TypeScript strict ESM • pnpm • @modelcontextprotocol/sdk • @datadog/datadog-api-client (official) • zod • dotenv • vitest + dd-trace.

Contributing

See CONTRIBUTING.md. New shared patterns belong in @us-all/mcp-toolkit — single source of truth for the 7-server suite.

License

MIT

來源:README.md,提交 e943fa7

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.21.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分