
Datadog Mcp
io.github.TANTIOPE由 GitHub 账号 TANTIOPE 发布v1.0.9更新于 Oct 24, 2026
Full Datadog API access: monitors, logs, metrics, traces, dashboards, and observability tools
概览
本地 MCP 服务器,让 AI 助手全面访问 Datadog 可观测性数据:监控器、日志、指标、链路追踪、仪表盘、事件、SLO 等。
- 可以做什么
- 列出、搜索、创建、更新、静音和删除监控器,支持试运行校验与模板预览;管理停机与主机及其标签;读取用量与账单摘要并校验 API 密钥。搜索与聚合日志,查看并编辑日志管道、索引与归档。查询、搜索并查看指标时序与元数据。搜索与聚合 APM 链路、列出服务;搜索、聚合、按时间分桶并去重事件与事件单。列出、获取、创建、更新和删除仪表盘、SLO、合成测试、笔记本与事件单;触发合成测试运行。读取 RUM 应用、事件、性能与会话瀑布;列出安全规则、信号与发现;列出用户与团队。
- 适用场景
- 适合让助手排查生产问题、关联日志、链路与指标、处理告警与事件单,或在聊天客户端中管理 Datadog 监控器、仪表盘、SLO 与合成测试,而不必打开 Datadog 界面。
- 运行要求
- 通过 npm 包 datadog-mcp 以 stdio 在本地运行(需要 Node.js,通常用 npx 启动)。需要 Datadog API 密钥(DD_API_KEY)和应用密钥(DD_APP_KEY);非默认区域可选设置 DD_SITE。密钥的权限范围决定哪些工具可用。需要能访问 Datadog API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Datadog Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Datadog MCP Server
[Quality gate] [CI/Release] [npm] [License] [Coverage]
DISCLAIMER: This is a community-maintained project and is not officially affiliated with, endorsed by, or supported by Datadog, Inc. This MCP server utilizes the Datadog API but is developed independently.
MCP server providing AI assistants with full Datadog observability access. Features grep-like log search, APM trace filtering with duration/status/error queries, smart sampling modes for token efficiency, and cross-correlation between logs, traces, and metrics. Supports both stdio (local) and http (remote/Kubernetes) transports.
Quick Start
Minimal Claude Desktop / VS Code / Cursor config — just the two required keys:
With optional tuning (EU site, custom default limits, longer log windows):
To run as an HTTP server (e.g. inside a container or Kubernetes pod), add transport variables to the same env block:
Configuration
Required environment variables
Optional environment variables
Optional flags
Transports
Select with --transport=http or MCP_TRANSPORT=http.
Deployment
Docker
Kubernetes
Use environment variables — not container args — for transport configuration:
Note: Kubernetes
args:replaces the entire Dockerfile CMD, causing Node.js to receive the flags instead of your application. Environment variables avoid this issue.
Tools
Limit Control
AI assistants have full control over query limits. The MCP_DEFAULT_* environment variables only set the fallback used when the AI doesn't specify a limit — they do NOT cap what the AI can request.
Tool-level token reduction features (compact: true on logs, sample: "diverse" | "spread" | "first", field projections, diagnostics) are surfaced in each tool's MCP description and chosen by the AI at call time.
Notable behaviors
A handful of patterns worth knowing about — the AI can discover the rest from tool descriptions.
- Renotifies vs real fires.
monitors topandevents searchwithsource:alertcount every renotify Datadog emits (one everyrenotify_intervalwhile a monitor is Alert). To get actual state transitions, usemonitors history(defaults totransitionType: ["alert","alert recovery"]) or passtransitionTypetoevents search. - DST-safe time buckets.
events histogrambuckets byhour_of_day/day_of_week/day_of_monthin any IANAtimezoneviaIntl.DateTimeFormat. Cursor-paginates the underlying search; cap controlled byMCP_MAX_EVENTS_HISTOGRAM(default 5000) withbucketCountIncomplete+nextCursoron overflow. - Validate before create.
monitors createwithdry_run: truecalls/api/v1/monitor/validateinstead of persisting. Allowed in--read-onlymode. - Monitor template preview.
monitors previewrenders a notification against acontextpayload — variable substitution + Datadog's six documented conditionals (is_alert,is_warning,is_no_data,is_recovery,is_alert_to_warning,is_warning_to_alert) + the tag conditionals{{#is_match "tag" "val"}}(substring) and{{#is_exact_match "tag" "val"}}(exact), with^negations and OR'd multiple comparison values (resolved againstcontext.variables; case-sensitive).{{#each}}and partials throwEUNSUPPORTED_TEMPLATE_SYNTAX. - SLO round-trip.
slos getprojectsquery,monitorIds,monitorTags,groups, and a UIurlso you can edit and feed back intoslos updatewithout dropping definition fields. - Cross-correlation.
logs(sample:"diverse")→ pulldd.trace_id→traces(query:"trace_id:<id>")→metrics(query:"p95:trace.express.request{service:...}")(root metric without.durationfor percentiles).
Deep links
Every query response includes a datadog_url field built for your configured DD_SITE — datadoghq.com (default), .eu, us3 / us5 / ap1.datadoghq.com, or ddog-gov.com. Supported on logs, metrics, traces, events, monitors, rum, slos.
Contributing
Contributions are welcome! Feel free to open an issue or a pull request if you have any suggestions, bug reports, or improvements to propose.
License
This project is licensed under the Apache License, Version 2.0.
来源:README.md,提交 29f2696
工具
0版本历史
1- v1.0.9最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分