Skip to content

Dynatrace and Claude: Davis Problems and the Dynatrace MCP Server for Load Tests

During a load test, Dynatrace already does a lot of the hard work. Davis, its AI engine, opens problems when response times or failure rates move, and it points to a likely root cause. What still takes time is the follow-up: pulling the right logs, comparing services, writing DQL queries, and explaining it all to the team.

Dynatrace now offers an MCP (Model Context Protocol) server, so AI assistants such as Claude can query your environment directly. You ask in plain English, and Claude calls Dynatrace tools to fetch problems, run DQL and look up entities. This post covers how that fits into performance testing, how to connect it, and where to be careful.

Architecture: you ask Claude, Claude calls tools on the Dynatrace MCP server with a platform token, and the data comes back for Claude to explainClaude talks to Dynatrace through MCPyouquestionClaudeMCP tool callDynatraceMCP serverplatform tokenDynatraceproblems, DQL,entities, logsdata comes backClaude only sees what the token allows
The token scopes decide what Claude can read.

What you need

  • A Dynatrace environment on the current platform (your URL looks like https://<environment-id>.apps.dynatrace.com).
  • Permission to create a platform token, or an admin who can create one for you.
  • Claude Code, or another MCP-capable client such as VS Code.

A note on versions: Dynatrace first published a local MCP server as an npm package. That package is now marked deprecated. The current options are a Dynatrace remote MCP server and an official Claude Code plugin. Check the Dynatrace MCP documentation before you follow any older guide.

Step 1: Create a platform token with read-only scopes

In Dynatrace, create a platform token. The MCP gateway needs mcp-gateway:servers:invoke and mcp-gateway:servers:read. Each tool needs its own scopes as well, for example storage:logs:read to read logs. The full list is in the Dynatrace MCP docs. For a test team, give only read scopes. Claude does not need to change anything to answer questions.

Step 2: Connect Claude Code

The documented path for Claude Code is the official plugin:

claude plugin install dynatrace@claude-plugins-official

export DT_ENVIRONMENT=https://<your-environment-id>.apps.dynatrace.com
export DT_PLATFORM_TOKEN=<your-platform-token>

Run /plugin list inside Claude Code to check it loaded. Other clients connect to the remote MCP server at a URL of this form, with the token sent as a bearer header:

https://<environment-name>.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp

Keep the token out of shared config files and out of screenshots.

Step 3: Ask performance questions in plain English

Run your load test as usual and note the start and end time. Then ask questions that tie Dynatrace data to the test window:

Our load test ran today from 14:00 to 15:00 IST against the
checkout service. Using Dynatrace:
1. List all problems opened in that window, with the affected
   entities and the root cause Davis reported.
2. For the checkout service, show response time and failure rate
   per 5 minutes in that window.
3. Show the 10 most frequent error log messages for checkout and
   its downstream services in that window.
Show the DQL you ran for each answer.
Flow: Davis AI opens a problem and points to a root cause, then you ask follow-up questions in Claude, which pulls problems, logs and metrics through MCPDavis finds the problem, you ask the follow-upDavis problemResponse timedegradation: checkoutRoot causee.g. a databaseserviceYour questionswhen did it start?which test step?Claude can pull the problem, the related logs and metrics in one chat
Davis does the detection. Claude helps with the questions after it.

"Show the DQL you ran" is the key line. You can paste that DQL into a Dynatrace notebook and see the same data with your own eyes. It also makes a good starting point if you later want a dashboard for every test run.

Good follow-up questions are the ones that would take you ten clicks in the UI: "Did the database calls from checkout get slower at the same time as the response time went up?" or "Compare this window with the same test last Tuesday." Let Claude collect the data, then you decide what it means.

Step 4: Turn the findings into a test report section

Once you trust the answers, ask Claude to write the monitoring part of your test report: problems found, root cause per Davis, supporting metrics, and open questions. Ask it to keep the DQL in an appendix so anyone can rerun it.

Safety checklist: give the token read-only scopes, start with a test environment, keep an eye on query cost, and confirm numbers in the Dynatrace UISafe setup for a test teamRead-only scopes onlyTest environment firstWatch query cost on GrailCheck every number in Dynatrace
An AI with write access to monitoring is a risk you do not need.

Verify the AI's answer

  • Open the Davis problem in the Dynatrace UI and compare the root cause text.
  • Rerun the DQL it shows in a notebook. The numbers should match.
  • Check the time window. Time zone mix-ups are an easy mistake for both people and AI.
  • Ask your Dynatrace admin how DQL queries are billed on your license, since some queries scan a lot of data.
TaskBest done by
Detecting anomalies and root causeDavis (built into Dynatrace)
Fetching related logs, metrics, entitiesClaude through MCP
Writing and explaining DQLClaude, checked in a notebook
Deciding if the release can goYou and the team

Frequently asked questions

Does this replace Davis CoPilot?
No. Davis CoPilot is Dynatrace's own assistant inside the product. The MCP server lets an outside assistant like Claude use Dynatrace data, which is useful if your team already works in Claude.

Can I use this with Dynatrace Managed or the older SaaS UI?
The MCP server is a platform feature. Check with your Dynatrace account team whether your environment has it.

Is our monitoring data sent to the AI provider?
The results of each tool call are sent to the AI model so it can answer. Follow your company policy on which data may go to which AI tools.

Tomorrow in the AI in Performance Testing series: converting a LoadRunner VuGen script to JMeter with Claude or ChatGPT, and what converts well and what does not.

Page views