Dynatrace
Dynatrace observability, security, and automation MCP. Analyze anomalies, logs, traces, events, and metrics with AI-powered DQL generation. Supports problem management, entity discovery, and workflow automation.
Installation path
Choose Add Server, select Local MCP, use npx as the command, pass -y @dynatrace-oss/dynatrace-mcp-server@latest as arguments, and set DT_ENVIRONMENT.
Setup steps
- 01
Get Dynatrace environment URL
Copy your Dynatrace Platform URL (e.g., https://abc12345.apps.dynatrace.com). Do not use classic .live.dynatrace.com URLs.
- 02
Open Add Server
Configuration → MCP Registry → Add Server in Cosmos.
- 03
Pick the Local MCP tab
- 04
Set the command
Command
npx - 05
Add the arguments
Args
-y @dynatrace-oss/dynatrace-mcp-server@latest - 06
Set environment variables
DT_ENVIRONMENT
DT_ENVIRONMENT=https://abc12345.apps.dynatrace.com - 07
Click Add, then enable
Toggle on Cosmos Agent or CLI.
Local command
Suggested name: dynatrace
npx -y @dynatrace-oss/dynatrace-mcp-server@latestRequires Node.js v22.10+. Authentication uses browser-based OAuth. Optionally set DT_PLATFORM_TOKEN for token-based auth.
Authentication
Browser-based OAuth via DT_ENVIRONMENT URL. Optional DT_PLATFORM_TOKEN for token-based auth.
| Variable | Example | Required |
|---|---|---|
| DT_ENVIRONMENT | https://abc12345.apps.dynatrace.com | Yes |
| DT_PLATFORM_TOKEN | dt0s16.SAMPLE.abcd1234 | Yes |