Datadog MCP server security: toolsets, writes and limits
The Datadog MCP server acts with your Datadog permissions. See its toolsets, write tools and org controls, and how to limit it in Claude Code and Codex.
The Datadog MCP server is Datadog’s hosted server, at https://mcp.datadoghq.com/v1/mcp for the US1 site, with a different host for each site. It forwards your credentials, so it can reach only what you can already see in Datadog. If you omit toolsets, only the core toolset is on, and that includes execute_code and notebook delete tools. Narrow the toolsets, remove tools with omit_tools and ask admins to turn off write access.
Who maintains it and how you sign in
Datadog runs it. The setup page lists endpoints as mcp. plus your site domain plus /v1/mcp, for example https://mcp.datadoghq.eu/v1/mcp for EU1. US1-FED and US2-FED are not supported. OAuth 2.0 is the recommended sign-in. A personal or service access token goes in an Authorization: Bearer header. Datadog does not recommend API and application keys, though the server still accepts dd-api-key and dd-application-key headers.
claude mcp add --transport http datadog-mcp https://mcp.datadoghq.com/v1/mcpFor Codex, add the URL to ~/.codex/config.toml and run codex mcp login datadog.
What the tools can do
Datadog’s tools page marks write tools. A selection from the default core toolset and others follows.
| Group | Tools |
|---|---|
| Read (core) | search_datadog_logs, search_datadog_monitors, search_datadog_spans, get_datadog_trace, analyze_datadog_logs |
| Write (core) | create_datadog_notebook, edit_datadog_notebook, delete_datadog_notebook |
| Write (other toolsets) | create_datadog_monitor (draft mode), upsert_datadog_dashboard, delete_datadog_dashboard, create_datadog_case, delete_apm_sampling_rule, create_bits_guardrail, delete_bits_guardrail |
| Mixed | execute_code runs agent-written JavaScript with your permissions, so it can modify data depending on the code |
Datadog’s overview says write operations need the matching permission, such as monitors_write, checked on each call.
Access controls on Datadog’s side
- User role permissions
mcp_readandmcp_write, plus the standard permission for the resource, such as Monitors Read. - Organization settings. “MCP Access” must be on, and “MCP Write Access” must also be on for write tools to appear. Admins can turn off the server or its write tools for the whole organization.
- RBAC, Data Access Control and log restriction queries limit what MCP users can retrieve.
Risks
- Log and trace text. Logs, error messages and span tags can contain text from outside parties, such as a user-agent string, and the model reads it.
- Data to the model. The server does not send your data to a third-party AI provider, but your AI client and its model determine what leaves your environment. Some tools use Datadog-hosted models.
- Code execution.
execute_codecan change data depending on the code. - Rate. A fair-use limit of 50 tool calls per 10 seconds applies.
Limit it in Claude Code
Set the toolsets and omit tools in the URL.
claude mcp add --transport http datadog-mcp "https://mcp.datadoghq.com/v1/mcp?toolsets=core,apm&omit_tools=execute_code,delete_datadog_notebook"{
"permissions": {
"deny": [
"mcp__datadog-mcp__execute_code",
"mcp__datadog-mcp__delete_datadog_dashboard"
],
"ask": ["mcp__datadog-mcp__create_datadog_monitor"]
}
}Limit it in Codex
Codex sets toolsets with a header instead of the URL.
[mcp_servers.datadog]
url = "https://mcp.datadoghq.com/v1/mcp"
http_headers = { "X-Datadog-MCP-Toolsets" = "core,apm" }
disabled_tools = ["execute_code", "delete_datadog_notebook"]Check what happened
Tool calls appear in the Datadog Audit Trail under the event name “MCP Server.” The metrics datadog.mcp.session.starts and datadog.mcp.tool.usage carry the tags user_email, client and tool_name.
Checklist
- Use OAuth or a service access token with the fewest roles.
- Keep
mcp_writeoff for roles that only read. - Pick toolsets by task and omit
execute_code. - Ask before monitor and dashboard changes.
- Review the Audit Trail after sessions. The MCP security hub lists the general rules, and the Grafana and Splunk guides cover similar tools.
Checked against the vendor documentation on November 25, 2026. Datadog MCP setup · Datadog MCP tools · Datadog MCP overview · Codex MCP
What Excellent covers
Excellent does not inspect MCP servers themselves. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, so it can show what an agent did after it called a tool. It does not read Cursor’s, OpenClaw’s or Claude Cowork’s logs. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. Agent coverage · Pricing. Pro is US-only for now.


