Can the Datadog MCP Server be locked down to read-only for AI agents?
Yes, the Datadog MCP Server can be restricted to read-only at the organization level, and write access is off by default. The MCP Write Access organization setting is off by default, and when it is off the server hides write tools from all users. The MCP Access setting is on by default, so the read path works out of the box for users who hold the right role. These controls sit inside the Datadog platform itself, so a security team does not need to buy an add-on or run a separate gateway to enforce them. Before approving the tool, confirm these two organization settings in the account, because a reviewer should verify the live configuration rather than rely on the default.
Read-only is not one switch. A request succeeds only if every layer allows it: the MCP Access and MCP Write Access settings, the IP allowlist, the MCP Read and MCP Write role permissions, OAuth or token scopes, and standard Datadog access controls. The reviewer still has to decide who holds the Standard or Admin roles, which both include mcp_write, and make sure no custom role adds it by accident. Next, check the toolsets. Only the core toolset is enabled by default, but toolsets=all turns on every generally available toolset, and the omit_tools query parameter can remove specific tools such as the notebook tools that create, edit or delete content. Confirm the IP allowlist and the token scopes used by each client, because these are the places where a gap is most likely to appear.
Datadog MCP security controls by edition and setting
This table compares each control that gates a Datadog MCP Server request, its default state, and whether an admin configures it or a plan limits it. A request must pass every layer, so a reviewer should confirm each row before approving staff access, because plan-level availability is not stated in the researched facts.
| Control | Status and default | Who sets it and what to confirm |
|---|---|---|
| MCP Access (organization setting) | Built in, on by default | Org admin. Confirm with Datadog whether it can be turned off for all users in your plan. |
| MCP Write Access (organization setting) | Configured by admin, off by default | Org admin. When off, write tools are hidden from all users. Confirm the setting's availability in your plan. |
| IP allowlist | Configured by admin | Org admin. Confirm that the allowlist applies to MCP requests in your Datadog configuration. |
| MCP Read and MCP Write role permissions | Configured by admin, plan-dependent | Read Only role has MCP Read. Standard and Admin roles have MCP Read and MCP Write. Confirm role availability with Datadog. |
| OAuth or token scopes | Configured by user or admin | Requests run with the caller's credentials or a Service Access Token's service account. Confirm scope options for your site. |
| Standard Datadog access controls | Built in, applied to every request | Server cannot grant access beyond what the caller already has. Review existing RBAC before rollout. |
| Toolsets and omit_tools parameter | Configured by client setup | Only the core toolset is on by default. toolsets=all enables all generally available toolsets. omit_tools excludes named tools. |
| Code Security MCP Server | Separate product, Preview, local over STDIO | Different from the main remote server. Confirm Preview status and plan terms with Datadog before approval. |
What the Datadog MCP Server can read and change
The main Datadog MCP Server is a remote server that covers most Datadog products, including APM, logs, metrics, monitors, dashboards and security signals. For a reviewer, the first question is therefore not whether the server touches observability data, but how far that reach extends for each identity that connects. The reach is set by the caller: the server forwards the caller's own credentials, or a service account's when a Service Access Token is used, so an agent can never see more than the user or service account behind it can already see. Before approval, ask which identities will connect, what roles they hold, and whether any shared service account has broader access than the people who will use the agent.
Most of the server is read-oriented, but some tools write. The tools reference lists write-capable tools for notebooks, including create_datadog_notebook, edit_datadog_notebook and delete_datadog_notebook. Notebook deletion is the action to plan for first, because a single agent call can remove shared work that other teams depend on. Write tools are gated by the MCP Write Access setting, which is off by default, and by the MCP Write role permission. Confirm with Datadog which tools are generally available and which are still changing, since the docs say the server is under significant development and its tools are subject to change. Reviewing that tool list again at each upgrade is a reasonable control.
The Code Security MCP Server is a different product and should be reviewed on its own. It is a local server that runs SAST, secrets, SCA, IaC and SBOM scans over STDIO, and Datadog labels it Preview. It does not expose the observability data described above, and it runs on the developer's machine rather than as a hosted connection. Its risks, such as what the local process can access on that machine and what scan data it sends, need a separate assessment. Do not treat approval of the remote observability server as approval of the scanning server, or the reverse. The Code Security MCP Server documentation is the right starting point for that second review.
How a Datadog MCP request passes each control layer
The diagram starts at the AI client, which sends each request to the endpoint for the Datadog site. The request then moves through the MCP Access and MCP Write Access settings, the IP allowlist, the caller's role permissions (mcp_read or mcp_write), OAuth or token scopes, and standard Datadog access controls before any data is read or any action runs. The request succeeds only if every layer allows it, and a denial at any layer stops the call. Check each layer separately, because a permissive setting at one layer does not override a denial at another.
Each layer must allow the request before the MCP Server returns data or runs an action.
Decisions the security team must make before enabling write access
Enabling write access to the Datadog MCP Server is a chain of decisions, not a single switch. Each one changes how far an agent can reach, who is accountable for its actions, and how much friction developers face. Settle them in the order listed below and record the answer for each.
Enable MCP Write Access at all
The MCP Write Access organization setting is off by default, and while it is off the server hides write tools from every user. Leaving it off is the simplest way to keep agents read-only across the organization. Turning it on should be a documented decision with a named owner, because it is the gate that every other write permission depends on. Confirm the current default and behavior in your own tenant before you change it.
- Write access default
- Off
Assign mcp_write to specific roles
The default Read Only role holds only MCP Read, while the Standard and Admin roles hold both mcp_read and mcp_write. Any user in Standard or Admin who connects an agent can therefore reach write tools, provided the other layers allow it. Review which people hold those roles today and decide whether write capability should follow a narrower custom role. Check the role membership list before rollout, not after the first incident.
Service Access Token or user credentials
The server forwards the caller's own credentials, or a service account's when a Service Access Token is used, so it cannot exceed the permissions of whichever identity is behind it. User credentials keep audit attribution tied to a person and inherit that person's changing access. A service account concentrates rights in one identity, which widens blast radius if its token leaks, but it gives a stable, reviewable owner. Decide per use case and document who rotates the token.
Toolsets beyond the core set
Only the core toolset is available by default. Setting toolsets=all enables every generally available toolset, which adds tools that a developer workflow may never need. Each added toolset expands what an agent can see and, for write-capable tools such as notebook creation and editing, what it can change. Enable only the toolsets a named workflow requires, and re-check the list whenever Datadog updates the server, since its tools are subject to change.
Datadog MCP Server ToolsTools removed with omit_tools
The omit_tools query parameter excludes named tools from the server, so a deletion tool such as delete_datadog_notebook can be removed even when its toolset is enabled. This is a configuration control that developers cannot easily undo, which makes it useful for hard limits. Pair it with the write-capable list in the tools reference and test that the excluded tools are absent from each client. Treat the omit list as part of the approved configuration, stored with the rest of the client setup.
Restrict source IP ranges
The IP allowlist is one of the layers a request must pass, so restricting it to corporate egress or approved developer ranges limits where a stolen credential can be used. The tradeoff is that remote developers and cloud-hosted agents may lose access and generate support requests. Confirm which networks your agents originate from, including any hosted coding agents, before you set the allowlist. Record the allowed ranges and the owner who approves changes to them.
How the lockdown differs for read-only teams, operators and regulated sites
Teams that only investigate incidents need the server to read telemetry such as APM traces, logs, metrics, monitors and security signals, and nothing more. The lockdown for this group relies on the write layer being closed. The MCP Write Access organization setting is off by default and hides write tools from all users, and the Datadog Read Only role carries MCP Read but not MCP Write. Even so, the reader should confirm that the setting and role assignments match the intended group, because a request must pass every layer that applies.
- Write layer closed: Confirm that MCP Write Access is off at the organization level, so write tools are hidden from every user.
- Read Only role only: Confirm that members of the investigation group hold the Datadog Read Only role, which includes MCP Read, and not Standard or Admin.
- Toolset narrowed: Confirm that the client uses the default core toolset instead of enabling all generally available toolsets.
- Caller credentials: Confirm whether each engineer connects with their own credentials or a shared service account, since the server forwards whichever credential is used.
- Untrusted content: Tags, labels and SQL text in results can contain instructions an agent might follow, so reviewers should confirm that proposed actions are checked by a person.
Verify the role mapping in the Datadog console and test a write request with a read-only account before approval.
Teams that manage notebooks or dashboards need write capability, so the lockdown moves from closing writes entirely to limiting which writes are possible. Enabling MCP Write Access turns on write-capable tools such as create_datadog_notebook, edit_datadog_notebook and delete_datadog_notebook. Access to those tools still depends on the Standard or Admin role, which carries MCP Write (mcp_write), so the write permission is granted to people, not to the client. Reviewers should treat delete actions as the highest-risk item in this group.
- Scoped write role: Grant MCP Write through a role that only the notebook and dashboard owners hold, not through Admin.
- Write enabled per need: Turn on MCP Write Access only for the period and group that need it, and confirm who can change that setting.
- Tool exclusion: Use the omit_tools query parameter to remove delete_datadog_notebook from clients that only need to create or edit.
- IP allowlist: Confirm that the IP allowlist is set so write requests can only come from approved networks.
- Review of proposed actions: Require a person to confirm each write before the agent acts, as the tools reference advises.
Check the audit trail for write events in a test account and confirm that the omit_tools exclusion takes effect in the client configuration.
Datadog's docs say the MCP Server is not supported on the app.ddog-gov.com and us2.ddog-gov.com sites and is not GovCloud compatible. For organizations on those sites, or under a GovCloud requirement, the main remote server is not an option, and no lockdown setting changes that. The reviewer's task is to confirm which Datadog site the organization uses, so the decision is based on the correct site and not on the US1 quick setup. Nothing in this tab should be read as approval for those sites through a workaround.
- Site check: Confirm the exact Datadog site from the account URL before any client is configured.
- Endpoint mismatch: Confirm that the US1 endpoint, mcp.datadoghq.com, is not used for an account on a site that is excluded.
- Alternative scope: The separate Code Security MCP Server is a local Preview tool for scans, not a substitute for observability access, so confirm what it covers before treating it as an alternative.
- Written decision: Record in the approval file that the remote server is not supported for that site or GovCloud.
- Ongoing review: Datadog states the tools are subject to change, so ask the vendor to confirm site support again before each renewal of the approval.
Why tool results can steer an agent, and what to do about it
Some Datadog MCP results carry text that a person controls, and an agent may read that text as an instruction. The Datadog tools reference warns that results can include user-controlled content such as tags, labels and SQL queries. Anyone who can write a tag on a host, name a log field or craft a query can place text where an agent will read it during an investigation. A request to a monitor or dashboard can then return a string that tries to redirect the agent, for example toward a write tool such as edit_datadog_notebook. This is prompt injection through data, and the risk does not depend on who the caller is, because the agent acts with credentials the user already holds.
Datadog's advice is to review proposed actions and to grant only the permissions and toolsets the work needs. In practice, keep the MCP Write Access setting off unless a named team needs write tools, leave toolsets at the core default, and use omit_tools to remove any write-capable tool a team does not use. Confirm with your own administrator which roles hold mcp_write today, since the Standard and Admin roles include it, and move write-capable users to a narrower role where possible. Do not assume that a read-only role makes injected text harmless: it can still steer what the agent reads, reports and concludes.
Permissions reduce this risk but do not remove it. Treat it as a residual risk to document in your approval record, and confirm the approval settings in each client, such as Cursor, Codex or Claude Code, before rollout. Check whether the client asks the user to approve each tool call, whether it allows an auto-approve or always-allow mode for MCP tools, and whether an administrator can enforce that setting centrally. Require a human to approve any tool call that writes, and ask your security team to test a deliberately injected tag or query in a non-production Datadog organization before the tool reaches production data.
Where the Datadog MCP Server does not cover security requirements
The Datadog MCP Server has controls that limit what it can do, but several review questions sit outside those controls. The gaps below concern a changing tool list, undisclosed pricing, government regions, untrusted tool output and a separate code scanning product. Each one needs an owner and a documented remedy before approval.
Tool list changes over time
Datadog states that the MCP Server is under significant development and that its tools are subject to change. A toolset that was read-only when you approved it can gain new tools in a later release, and the write-capable tools include actions such as deleting notebooks. Remedy: pin the toolsets you need instead of enabling everything, use toolsets and omit_tools deliberately, and review release notes before upgrading clients. Re-run your access review whenever the tool list changes.
No published pricing
Pricing for the MCP Server is not published on the pages reviewed, so procurement cannot size the cost from public information. Ask Datadog in writing whether MCP access is included in your current contract, whether it is metered, and whether usage limits or overage charges apply. Get the answer attached to the approval record, since the security review depends on which plan and entitlements you are actually buying.
Not available on government sites
Datadog's docs say the MCP Server is not supported on the app.ddog-gov.com and us2.ddog-gov.com sites and is not GovCloud compatible. Organizations with government or regulated workloads on those sites cannot rely on the remote server. Remedy: confirm in writing which Datadog site your data lives on before approval, and if it is a government site, choose another approach for AI access, such as read-only exports reviewed by your team, or formally accept the gap.
Prompt injection from tool results
The tools reference warns that some results include user-controlled content such as tags, labels and SQL queries, which an agent may read as instructions. Permissions in Datadog do not stop a model from acting on text planted in a log line or dashboard label. Remedy: keep write tools out of the client by default, require human approval for each proposed action in the AI client, and monitor the actions agents take against the Datadog audit records.
Code Security server is separate
Datadog's Code Security MCP Server is a different product. It is a local server that runs SAST, secrets, SCA, IaC and SBOM scans over STDIO and is in Preview. Approving the main remote server does not approve it, and its local execution has its own risks on developer machines. Remedy: assess it as a separate tool with its own review, confirm its Preview status and supported features, and decide whether developers may install it.
Code Security MCP docsOrder of work to lock down the Datadog MCP Server in production
This sequence confirms where the server is reached, sets the two organization-wide switches, shapes roles and network limits, and narrows the tools before any staff member connects. The output is a documented configuration that a security reviewer can check layer by layer.
Confirm the Datadog site and endpoint
The platform or security owner confirms which Datadog site the organization uses and matches it to the correct MCP endpoint in the official setup guidance. The main remote server is documented for the US1 endpoint and other sites use their own endpoints, so a mismatch means the wrong tenant or an unsupported site. Confirm that your site is supported at all: the docs state the MCP Server is not supported on the ddog-gov.com sites and is not GovCloud compatible. The step is done when the site, endpoint and support status are written into the rollout record.
Set MCP Access and MCP Write Access deliberately
An org admin reviews the MCP Access organization setting, which is on by default, and decides whether it should stay on for this rollout. Then set MCP Write Access explicitly, which is off by default and hides write tools from all users when off. Treat the write setting as a separate decision and record who approved turning it on, if at all. The step is done when both settings reflect a written decision and a screenshot or export of each is stored with the change ticket.
Define roles and remove mcp_write where not needed
The admin reviews which roles reach the server. The default Read Only role has MCP Read only, while Standard and Admin roles carry both mcp_read and mcp_write. Assign the read-only role to most users and reserve mcp_write for named people with a documented need. Check that no broader role is granted to groups by habit. The step is done when a role-to-user export shows that mcp_write is held only by the approved list.
Set the IP allowlist
The security team defines the network ranges from which MCP requests are accepted, such as corporate egress or approved developer VPN ranges, and enters them in the Datadog organization settings. Confirm with the platform team which client machines and CI systems will actually connect, because an allowlist that omits them breaks the rollout and one that is too broad weakens the control. Test one approved and one unapproved network path. The step is done when the allowed path works and the excluded path is refused.
Select toolsets and omit unneeded tools
The platform team reviews the tools reference and starts from the core toolset, which is the default. Add other toolsets only when a documented use case requires them, since toolsets=all enables every generally available toolset. Use the omit_tools parameter to remove write-capable tools such as notebook create, edit and delete if they are not needed. Record the final tool list per client. The step is done when each client configuration shows an explicit toolset selection and a list of excluded tools that the reviewer has signed off.
Decide between user and service account identity
The security lead chooses how each client authenticates. The server forwards the caller's own credentials, or a service account's when a Service Access Token is used, and it cannot grant more than that identity already has. A personal identity keeps actions attributable to one person, while a service account suits shared automation but needs its own role review and an owner. Confirm which option the Datadog authentication guidance supports for each client you plan to allow. The step is done when every client has a named identity type, an accountable owner and a role that matches the decision.
Test with a read-only account before wider release
Before opening access, the rollout owner connects a client with a read-only account and confirms that write tools are absent from the tool list and that a test read succeeds. Then test a write-role account in a controlled setting to confirm the write tools appear only where intended. Review the proposed actions the agent suggests and check tool results for user-controlled text, such as tags or queries, that might be read as instructions. The step is done when the test results, the approved tool list and the sign-off are filed together before the pilot group expands.
Evidence a security reviewer should request for Datadog MCP access
This table maps each piece of evidence a reviewer should ask for to the Datadog setting, role, scope or log that produces it, using Datadog's Access Control for MCP page as the basis. Read each row as a question: what does the admin show you, and does it match the layer the request must pass. The main takeaway is that a request succeeds only if every layer allows it, so evidence should cover all of them, not only the access toggle.
| Evidence item | Where it lives in Datadog | What to confirm |
|---|---|---|
| MCP Access setting | Organization setting, on by default | Whether it is on or off for the org, and who can change it |
| MCP Write Access setting | Organization setting, off by default | Confirm it is off unless a documented write use case needs it, since off hides write tools from all users |
| Role assignments for mcp_read and mcp_write | Datadog roles: Read Only has MCP Read; Standard and Admin have MCP Read and MCP Write | Export of users per role, and confirm no broad role grants mcp_write without approval |
| IP allowlist configuration | Access control layer checked on every request | Current allowlist entries, the owner of each entry, and the review date |
| Scopes or Service Access Token per client | OAuth or token scopes; service account when a Service Access Token is used | Which client uses which credential, the scopes granted, and whether a service account has more rights than a named user |
| Toolsets and omit_tools configuration | Client endpoint parameters: core toolset by default, toolsets=all enables all generally available toolsets, omit_tools excludes named tools | Each client's configured toolsets and excluded tools, including exclusion of write tools such as notebook create, edit and delete |
| Audit Trail records for MCP activity | Datadog Audit Trail | Sample entries showing MCP requests, the acting identity and the tool called, and the retention period set for the org |
| Standard Datadog access controls | Existing RBAC, team and data permissions in the org | Evidence that the MCP caller's own permissions limit what it can read, since the server forwards those credentials |
Questions reviewers ask before approving the Datadog MCP Server
Is write access to the Datadog MCP Server turned on by default?
No. The MCP Write Access organization setting is off by default, and when it is off the server hides write tools from all users. The MCP Access setting is on by default, so read tools are available to users whose roles allow them. Write capability needs a deliberate change by an admin. Confirm the current default in your own Datadog organization before approval, because the Datadog docs describe the server as under significant development and its tools are subject to change. Ask Datadog for the change history of these settings if your review requires it.
Can an AI agent do more in Datadog than the user who connected it?
No. The MCP Server forwards the caller's own credentials, or a service account's when a Service Access Token is used, so it cannot grant access beyond what that identity already has. A request succeeds only if every layer allows it: the MCP Access and MCP Write Access settings, the IP allowlist, the MCP Read and MCP Write role permissions, OAuth or token scopes, and standard Datadog access controls. Reviewers should still check the role assigned to each user, since the default Read Only role carries MCP Read only, while the Standard and Admin roles include mcp_write.
What does the Datadog MCP Server cost?
Pricing for the MCP Server is not published on the pages reviewed, so no price can be stated here. Ask Datadog's account team to confirm whether the server is included in your current plan, whether any usage-based charges apply, and whether the Code Security MCP Server, which is a separate local Preview product, carries different terms. Also confirm what your existing Datadog contract already covers, such as the products whose data the agent will query, since those costs do not change with the MCP connection.
Does the Datadog MCP Server support SSO on its own?
Confirm this with Datadog before approval. The pages reviewed describe sign-in through the caller's own Datadog access, which means identity follows how your Datadog account is set up, including any single sign-on configured for the organization. Ask Datadog whether the MCP connection itself has any separate identity controls, how OAuth consent is granted for each client, and whether service accounts used with Service Access Tokens can be restricted. Record the answers in your review file.
How much effort does a rollout take, and what drives it?
The pages reviewed do not give a rollout duration, so treat any figure you hear as something to verify. Effort depends mainly on how many sites and clients you connect, how many roles you need to adjust, whether you use OAuth or service tokens, and how many toolsets you enable. Teams that keep only the core toolset and read access will have less to review than teams that enable all generally available toolsets or write tools such as notebook creation and editing. Ask for a written list of settings to change and a test plan before committing.
Can our own team configure the Datadog MCP Server without outside help?
Often yes, if the team has Datadog organization admins who can change the MCP Access, MCP Write Access and IP allowlist settings and who understand role assignments. The configuration is mostly administrative, but the review work is not small: each layer must be checked, tool exposure must be limited with toolsets and omit_tools, and users with write-capable roles need a clear policy. An outside team is most useful when you want an independent test of prompt injection risk, since tool results can include user-controlled content such as tags, labels and SQL queries that an agent might read as instructions. DeployOpen's AI agent rollout security review covers that testing with a findings report, fixes and a retest, scoped in writing before work starts.
Should we restrict the tools an agent can use, and how?
Yes. The Datadog tools reference says only the core toolset is available by default, and that toolsets=all enables all generally available toolsets. Restrict the connection to the toolsets your use case needs, and use the omit_tools query parameter to exclude specific tools, such as write-capable ones like delete_datadog_notebook, create_datadog_notebook and edit_datadog_notebook, if your policy does not allow them. Datadog advises reviewing proposed actions and granting only the permissions and toolsets an agent needs, so keep a written record of the chosen configuration for each client.
Confirming current settings before approval
Treat the approval as a snapshot. The Datadog MCP Server is described in the vendor's docs as under significant development, and its tools are subject to change, so the tool list, default toolsets and role mappings you review today may differ on the day the tool goes live or the day someone next looks at it. Before sign-off, confirm the current state in your own Datadog organization: check that the MCP Access setting is on or off as you intend, that MCP Write Access is off unless a named group has a documented need for it, and that the IP allowlist, role assignments and any Service Access Token are the ones you approved. Record the date and the person who checked, so the review has a traceable basis.
Then compare your organization's state against the vendor's pages on the approval date. The Access Control for MCP page defines the layers a request must pass, and the Datadog MCP Server Tools reference lists which tools write, such as the notebook create, edit and delete tools, and which toolsets load by default. Check whether the default toolset still matches what you reviewed, whether any write-capable tools have been added, and whether the omit_tools parameter is still available to exclude them. Also confirm the endpoint for your Datadog site, since the quick setup in the official repository uses a US1 endpoint and other sites use their own.
Set a recurring trigger rather than relying on memory. Re-run these checks after each Datadog MCP Server release you learn about, when a team requests toolsets=all, when a new role is created, and at a fixed review interval your security team sets for AI tooling. If a setting changed, reopen the approval for the affected groups instead of letting the earlier decision carry forward. Ask the Datadog account team, in writing, to confirm which tools are generally available and whether pricing or plan requirements have changed, because neither is published on the pages reviewed for this page.
How DeployOpen helps teams review and lock down AI agent access
DeployOpen approaches Datadog MCP security as a scoped review of the layers that decide what an AI agent can read and change in your Datadog organization. Work is agreed in writing before it starts, and the findings and fixes are documented so your security and platform teams can verify them.
How we scope
- Agree in writing which Datadog sites, roles, service accounts and AI clients are in scope before work starts
- Map the layers a request must pass: MCP Access, MCP Write Access, IP allowlist, roles, token scopes and Datadog access controls
- Confirm which toolsets are enabled and which write-capable tools your organization wants to allow or omit
How we build
- Configure the organization settings, roles and allowlists to match the approved scope, with write access kept off unless required
- Test whether prompt injection through tags, labels or query text could push an agent toward unintended write actions
- Check that forwarded user credentials and service accounts cannot reach data beyond each user's existing permissions
How we hand over
- Deliver a findings report with severity, evidence and a recommended fix for each gap in the MCP setup
- Document the approved configuration, including endpoints, toolsets, omitted tools and role assignments, for your audit and review files
- Run a retest after fixes are applied and record the results so your reviewers can confirm the final state
How we support
- Engagements are fixed-scope, with deliverables and timelines confirmed in writing before work begins
- Ongoing support, upgrades and continuous testing are available as a retainer, useful because Datadog describes its MCP tools as subject to change
- Quotes follow from the written scope, so ask for the scope items, retest terms and retainer options your team needs

