Prerequisites
- A Dynatrace Platform environment with the logs, events, spans, metrics, problems, entities, or documents you want CloudThinker to investigate.
- Your Dynatrace Platform environment URL, such as
https://abc12345.apps.dynatrace.com. - A Dynatrace Platform token with the read scopes CloudThinker needs.
CloudThinker runs the Dynatrace MCP server with
npx, so you only need to provide the Dynatrace environment URL and Platform token in the connection form.Setup
1
Open Dynatrace
Sign in to your Dynatrace Platform environment. Use the Platform URL that follows the format
https://<environment-id>.apps.dynatrace.com.2
Create a Platform token
Create a dedicated Dynatrace Platform token for CloudThinker and grant only the scopes listed in Required permissions for the workflows you want to enable.Copy the token immediately — it may not be shown again.
3
Add the connection in CloudThinker
Navigate to Connections → Dynatrace and enter:
- DT_ENVIRONMENT: your Dynatrace Platform environment URL
- DT_PLATFORM_TOKEN: the Platform token you just created
Connection details
Use the Platform environment URL, not a classic
live.dynatrace.com URL. The MCP server uses DT_ENVIRONMENT to reach Dynatrace Platform APIs and Grail data.Required permissions
Create a dedicated Dynatrace Platform token and grant only the scopes required for the CloudThinker workflows you plan to use.Agent capabilities
Once connected, agents have access to the Dynatrace observability data allowed by the Platform token.Verify the connection
Example prompts
Troubleshooting
Invalid environment URL
Invalid environment URL
Make sure DT_ENVIRONMENT is the Dynatrace Platform URL, such as
https://abc12345.apps.dynatrace.com. Classic live.dynatrace.com URLs are not valid for this connection.Permission errors
Permission errors
The token is missing one or more required scopes. If DQL works for events but not logs, add
storage:logs:read. If most tools fail, confirm the token includes app-engine:apps:run.Empty DQL results
Empty DQL results
The query may target an empty bucket, a data type the token cannot read, or a time range without matching telemetry. Try a shorter known query against a known service, bucket, or timeframe.
Large or slow Grail queries
Large or slow Grail queries
Unbounded DQL queries can return too much data or take too long. Add filters, use short time windows, and ask agents to validate the query before expanding it.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Platform token only — use a Dynatrace Platform token, not a classic API token; classic tokens lack the scopes the MCP server requires.
- Start with read scopes — grant
document:documents:writeonly for workflows that need agents to create documents.
Related
Datadog Connection
Logs, metrics, APM, and incidents
New Relic Connection
APM, NRQL, infrastructure, and alerts