Dynatrace MCP Server
Published
At a glance
- Category
- Observability
- Hosted by the vendor
- https://docs.dynatrace.com/docs/dynatrace-intelligence/dynatrace-mcp
- Watch out for
- It is available on Dynatrace SaaS environments through the apps.dynatrace.com URL, and every request needs a bearer token.
Dynatrace runs an official remote MCP server inside each Dynatrace SaaS environment. An agent connects to it over Streamable HTTP at https://{environment-name}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp, so there is nothing to install locally and Dynatrace updates it for you.
The server centres on DQL, the Dynatrace Query Language. Agents can generate a query from plain language, explain one, and run it against Grail data. It also covers problems, vulnerabilities, Kubernetes events, Davis anomaly detection and forecasting, document search and entity lookups.
There was also a local, open-source server, dynatrace-oss/dynatrace-mcp, run with npx. That repository is now archived and its README says version 2.1.2 was the final release. It recommends the remote server for agent use, and its migration guide maps old tool names to the new ones. This page covers the remote server.
How it connects
Your AI app
An assistant or agent that supports MCP
Dynatrace MCP Server
Runs as
- Remote (HTTP)
Gives the agent
- DQL generation and execution
- Problems and vulnerabilities
- Kubernetes events
- Anomaly detection and forecasting
- Docs and troubleshooting guides
- Entity lookup
Dynatrace
Signs in with
- OAuth / browser sign-in
- Token
What it can do
- DQL generation and execution
- create-dql turns a natural language request into DQL, explain-dql describes an existing query, and execute-dql runs it.
- Problems and vulnerabilities
- query-problems and get-problem-by-id pull Davis problems, and get-vulnerabilities lists security findings.
- Kubernetes events
- get-events-for-kubernetes-cluster returns events for a cluster so an agent can line them up with incidents.
- Anomaly detection and forecasting
- adaptive-anomaly-detector, seasonal-baseline-anomaly-detector, static-threshold-analyzer, timeseries-forecast and timeseries-novelty-detection run Davis analyzers on time series.
- Docs and troubleshooting guides
- ask-dynatrace-docs answers product questions, while find-documents and find-troubleshooting-guides search documents in your environment.
- Entity lookup
- get-entity-id and get-entity-name convert between entity names and IDs.
Setting it up
Create a Platform token in your Dynatrace environment with mcp-gateway:servers:invoke and mcp-gateway:servers:read, plus the scopes the tools you want need, such as storage:buckets:read and storage:logs:read for Grail, davis:analyzers:read and davis:analyzers:execute, document:documents:read, and the davis-copilot nl2dql, dql2nl and conversations scopes. Then add the server to your client. In VS Code the documented config is a servers entry named dynatrace-mcp with url set to https://abc12345.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp and a headers block with Authorization: Bearer <YOUR_PLATFORM_TOKEN>, replacing abc12345 with your tenant ID. You can instead create a confidential OAuth client with the Authorization Code grant and give your MCP client only the URL plus the client ID and secret. Check that the tools are listed, then try a prompt such as Show me last 10 logs.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Describe what you want in plain words and have the agent write, explain and run the DQL query.
- Pull open problems and their details during an incident, then check related Kubernetes events.
- Run a seasonal baseline or forecast on a metric to see whether recent behaviour is unusual.
- List vulnerabilities affecting a service before a release.
- Find the internal troubleshooting guide or notebook that matches an alert.
Limitations and things to watch
- It is available on Dynatrace SaaS environments through the apps.dynatrace.com URL, and every request needs a bearer token.
- The token only works within the permissions of the user behind it, so missing scopes cause tool calls to fail.
- The server does not yet support CIMD, public OAuth clients or dynamic client registration, so OAuth needs a confidential client with a secret.
- Some actions from the old local server, such as send_slack_message, send_email and create_dynatrace_notebook, were not available on the remote server as of April 2026.
- execute-dql can read logs and other data at volume, so Grail query costs and token scopes are worth reviewing.
Sources
Written from the project's own documentation, checked November 2026.
- docs.dynatrace.com /docs/dynatrace-intelligence/dynatrace-mcp
- github.com /dynatrace-oss/dynatrace-mcp
- github.com /dynatrace-oss/dynatrace-mcp/blob/main/docs/remote-mcp-migration.md
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.