Datadog MCP server
Logs, metrics, traces, monitors and incidents in Datadog (US1 site).
How it connects
New to MCP? What is an MCP server?
- Runs on
- Datadog's own MCP endpoint
- Connects with
- Your Datadog account, connected once for your org
- Category
- Analytics
What it does
Datadog hosts this server for each of its sites. An agent can search logs, spans, metrics, monitors, incidents, hosts and RUM events, open a trace or a dashboard, and write notebooks and dashboards. More toolsets add monitors, cases, workflows, security rules, log pipelines and about 30 other products. Every call acts as the Datadog user who signed in, with that user's role permissions.
Tools
The server is split into toolsets. With no toolsets parameter on the URL, Datadog serves only core, which has 25 tools. Five of them write.
| Tool | What it does | Reads or changes |
|---|---|---|
search_datadog_events | Searches events such as monitor alerts, deployments and infrastructure changes. | Reads |
get_datadog_incident | Gets one incident in detail. | Reads |
search_datadog_incidents | Lists incidents with their state, severity and metadata. | Reads |
search_datadog_monitors | Lists monitors with their status, thresholds and alert conditions. | Reads |
get_datadog_metric | Queries metric data, with custom queries and aggregations. | Reads |
get_datadog_metric_context | Gets a metric's metadata, tags and tag values. | Reads |
search_datadog_metrics | Lists available metrics. | Reads |
search_datadog_logs | Searches logs by time, query, service and host. Renamed from get_logs. | Reads |
analyze_datadog_logs | Runs SQL over logs for counts and aggregations. | Reads |
get_datadog_trace | Fetches a full APM trace by ID. | Reads |
search_datadog_spans | Searches spans by service, resource and time. | Reads |
aggregate_spans | Computes counts and percentiles over spans, optionally as a timeseries. | Reads |
search_datadog_hosts | Lists monitored hosts. | Reads |
search_datadog_entities | Searches the Catalog for service owners and dependencies. | Reads |
search_datadog_rum_events | Searches RUM events. | Reads |
aggregate_rum_events | Aggregates RUM events. | Reads |
search_datadog_dashboards | Lists dashboards. | Reads |
get_datadog_dashboard | Gets a dashboard's title, tags and widgets. | Reads |
upsert_datadog_dashboard | Creates a dashboard, or replaces an existing one when given its ID. | Changes |
search_datadog_notebooks | Searches notebooks. | Reads |
get_datadog_notebook | Gets one notebook. | Reads |
create_datadog_notebook | Creates a notebook. | Changes |
edit_datadog_notebook | Edits a notebook. | Changes |
delete_datadog_notebook | Soft-deletes a notebook. It can be restored for 30 days. | Changes |
recover_datadog_notebook | Restores a deleted notebook. | Changes |
Other toolsets
Add them with ?toolsets=core,alerting,investigator, or ?toolsets=all for every generally available one. The ones an incident responder asks about first:
| Toolset | Tools | What writes |
|---|---|---|
alerting | 6 | create_datadog_monitor, which creates a monitor in draft mode. It sends no notifications until someone publishes it in the UI. |
investigator | 7 | trigger_bits_ai_investigation, trigger_incident_investigation and trigger_general_investigation start a Bits AI investigation. steer_bits_ai_investigation redirects a running one. |
cases | 15 | Create, update, comment on and link cases, and link Jira issues. Off by default. all includes it except five Preview tools, among them the Jira link, which need cases named. |
code-exec | 2 | execute_code runs JavaScript written by the agent in a Datadog sandbox, against Datadog's APIs, as you. |
workflows | 16 | Create, publish, delete and run workflows. execute_datadog_workflow starts a run. |
logs-configuration | 15 | Create, delete and reorder log pipelines, indexes and archives. |
dashboards | 6 | upsert_datadog_dashboard, plus delete_datadog_dashboard, which can't be undone. |
teams | 12 | Create and delete teams and change who is in them. |
security | 51 | Detection rules, suppressions, App and API Protection denylists, WAF passlists and finding triage. Most of them write. |
The rest cover APM, error tracking, database monitoring, DDSQL, feature flags, experiments, synthetics, Kubernetes, profiling, RUM configuration, governance and more. The reference lists more than 400 tools across them. None of them creates, updates or resolves an incident: the two incident tools in core only read.
Set it up
Use the endpoint for your site. Datadog's setup page lists them:
| Site | Endpoint |
|---|---|
| US1 | https://mcp.datadoghq.com/v1/mcp |
| US3 | https://mcp.us3.datadoghq.com/v1/mcp |
| US5 | https://mcp.us5.datadoghq.com/v1/mcp |
| EU1 | https://mcp.datadoghq.eu/v1/mcp |
| AP1 | https://mcp.ap1.datadoghq.com/v1/mcp |
| AP2 | https://mcp.ap2.datadoghq.com/v1/mcp |
| UK1 | https://mcp.uk1.datadoghq.com/v1/mcp |
US1-FED and US2-FED aren't supported. Before anyone can connect, an admin has to turn on MCP Access under Organization Settings > MCP, and the user's role needs mcp_read, plus mcp_write for write tools. The Datadog Standard Role includes both.
Directly
Claude Code, on US1 with the alerting tools added:
claude mcp add --transport http datadog-mcp "https://mcp.datadoghq.com/v1/mcp?toolsets=core,alerting"Run /mcp to sign in with OAuth. Datadog recommends its Claude Code plugin (/plugin install datadog@claude-plugins-official) and its Cursor Marketplace plugin over hand-written config. In Cursor's mcp.json the same URL goes in a "url" entry. For a server or CI job that can't do OAuth, send a personal or service access token as Authorization: Bearer <token>. If your org signs in on a custom subdomain, add &subdomain=<name>. The general client steps are in How to add MCP servers to Claude Code and How to set up MCP servers in Cursor.
Through Statio
Statio's catalog entry is for the US1 site. It connects with toolsets=all, so agents see every generally available toolset, and Preview toolsets stay off. Install Datadog from the catalog, press Connect and sign in to Datadog. One person with permission to manage credentials connects it for the organization, and every call afterwards runs as that Datadog user. Then grant tools under Permissions to a person, a team or an agent. A team grant gives every member the whole server, so grant single tools to a person or agent when you want only some.
The desktop app writes the client config. By hand, point Cursor at http://127.0.0.1:7777/datadog/mcp, using the server name from your dashboard, and for Claude Code run mcphub config claude-code. Unattended agents sign in with their own client ID and secret, which Connect a client describes. If no tools appear, see How to debug an MCP server that won't connect.
What to hold back
Datadog checks two things on every call: mcp_read or mcp_write on the user's role, and the permission for the resource itself, such as Monitors Write. Turning off MCP Write Access at the org level hides every write tool from everyone. That's a good default if nobody has asked for writes. Per-tool grants then decide which reads each agent gets.
An on-call triage agent that reads an alert and reports what it finds needs the reads in core: the logs, spans, trace, metric, monitor, event, incident and host tools. Maybe add search_datadog_entities, to find the owning team. Keep these from it:
execute_code. Datadog's docs say the sandbox code "can only read or modify data that you can already access". That is everything your role allows, through one tool name. A per-tool grant onexecute_codegrants all of it. Thesearch_*tools cover what a triage agent reads.upsert_datadog_dashboard. Given an existing ID it replaces the dashboard, and the on-call rotation may be looking at that dashboard while the agent rewrites it.delete_datadog_notebook, andedit_datadog_notebookon the incident notebook people are writing in. Let the agent create its own notebook for findings.- The
logs-configurationwrites. Deleting or reordering a log pipeline changes how every incoming log is processed. After an index is deleted, logs that match no remaining index aren't indexed at all. execute_datadog_workflow. It starts a run of any workflow with an agent trigger, and runs the saved draft if there is one. A workflow does whatever its steps do.
trigger_incident_investigation and the other Bits AI triggers are the gray area. They start an analysis and don't change your config. Datadog's MCP overview notes that a few tools use AI models from Datadog's AI providers, and organizations can ask support to switch those off. Check how your contract treats Bits AI before an agent starts investigations on every alert.
Log lines, span attributes and incident notes are text that anyone who can make your services log can influence. An agent reading them should not also hold writes it could be talked into. Datadog records each tool call in Audit Trail under the event name MCP Server, and Statio logs each call it forwards. MCP permissions covers how per-tool grants and denies combine.
Questions
What Statio adds
- You choose which of its tools each agent may call. A tool you hold back is removed from that agent's tool list, and a call to it is refused.
- Agents get a Statio token, never the Datadog one.
- Every call is recorded with the agent that made it, when, how long it took and whether it succeeded.
Lock down your first tool in minutes.
Three MCP servers, one of them hosted, and 10,000 calls a month, free and without a card. If you outgrow it the next plan is $19.
Two steps: create your account, then install the desktop app on each machine that runs an AI client.
- Keys encrypted at rest, never handed to an agent
- Cancel anytime, nothing is deleted
- How Statio handles credentials