Skip to content
← All MCP servers

Is the Dynatrace MCP server safe? What it can reach

What the Dynatrace MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Dynatrace now offers its MCP server as a hosted endpoint in your own Dynatrace environment, signed in with a platform token. The older local npm server is archived and deprecated. The hosted tools document no writes: they query Grail data, problems and docs, so scope the token to read access.

Who maintains it

ImplementationKindStatus
Dynatrace Remote MCP Server (hosted in your environment)Officialactive
dynatrace-oss/dynatrace-mcp (local, deprecated after 2.1.2)Communityarchived

It runs as a hosted remote server. The documented endpoint is https://{environment-name}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp.

How it signs in

A platform token sent as a Bearer token is recommended. OAuth works only with a confidential client using the authorization code grant. Effective rights are the intersection of the token’s scopes and the user’s own permissions.

Scope or permissionAccess
mcp-gateway:servers:invokeread
mcp-gateway:servers:readread
storage:logs:readread
storage:metrics:readread
storage:spans:readread
storage:entities:readread
document:documents:readread
davis-copilot:nl2dql:executeread
davis-copilot:dql2nl:executeread
davis-copilot:document-search:executeread
davis:analyzers:executeread
ai:operator:executeread

What its tools can do

KindTools
Readexecute-dql, create-dql, explain-dql, ask-dynatrace-docs, query-problems, get-vulnerabilities, get-events-for-kubernetes-cluster, get-entity-id, get-entity-name, get-problem-by-id, adaptive-anomaly-detector, seasonal-baseline-anomaly-detector, static-threshold-analyzer, timeseries-forecast, timeseries-novelty-detection, find-documents, find-troubleshooting-guides
Writenone documented
Can’t be undonenone documented

The hosted docs page does not list tool names. These names come from the repo’s migration guide, which dates its list 2026-04-13, so check the live list. The archived local server had send_slack_message, send_email, send_event, create_dynatrace_notebook and create_document, and the hosted docs do not document any of them. The scopes listed are the ones the hosted docs name, and the full list varies by tool.

Built-in limits

OptionWhat it does
Token scopesBoth the user and the token need mcp-gateway:servers:invoke and mcp-gateway:servers:read. Grant only the storage and document read scopes you need.
Platform token over OAuthDynatrace recommends platform tokens because tokens from an OAuth client are short-lived.
User permission ceilingThe token cannot exceed the permissions of the user who owns it.

The risks

  • execute-dql runs queries over your logs, spans and metrics, and a broad storage scope lets an injected instruction pull data that holds customer identifiers or secrets.
  • Log lines and span attributes can contain text from outside your team, so the content the agent reads in query results may carry instructions aimed at it.
  • Grail queries scan data by volume, and Dynatrace’s older server docs warn that queries can incur charges, so a loop of broad queries can cost money.
  • A platform token does not expire on its own, so a leaked token keeps its read access until you revoke it.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http dynatrace https://{environment-name}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp

Claude Code names MCP tools mcp__dynatrace__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.dynatrace]
url = "https://{environment-name}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp"

Checklist

  • Create a platform token with read scopes only.
  • Set a short expiry on the token and rotate it.
  • Skip the archived local server, which also had Slack and email tools.
  • Tell the agent to use short time ranges in execute-dql.

Checked against the vendor documentation on November 25, 2026. Dynatrace MCP server docs · Remote MCP migration guide · dynatrace-oss/dynatrace-mcp README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

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. Pro is US-only for now. Agent coverage · Pricing