← Index

io.github.dynatrace-oss/Dynatrace-mcp

io.github.dynatrace-oss/Dynatrace-mcp·v1.8.4·Monitoring & Logs
Quality Score
85
/100

Access Dynatrace observability data: logs, metrics, problems, vulnerabilities via DQL and Davis AI

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "Dynatrace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dynatrace-oss/dynatrace-mcp-server"
      ],
      "env": {
        "DT_ENVIRONMENT": "<dt_environment>",
        "DT_PLATFORM_TOKEN": "<dt_platform_token>",
        "OAUTH_CLIENT_ID": "<oauth_client_id>",
        "OAUTH_CLIENT_SECRET": "<oauth_client_secret>",
        "DT_GRAIL_QUERY_BUDGET_GB": "<dt_grail_query_budget_gb>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "Dynatrace-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dynatrace-oss/dynatrace-mcp-server"
      ],
      "env": {
        "DT_ENVIRONMENT": "<dt_environment>",
        "DT_PLATFORM_TOKEN": "<dt_platform_token>",
        "OAUTH_CLIENT_ID": "<oauth_client_id>",
        "OAUTH_CLIENT_SECRET": "<oauth_client_secret>",
        "DT_GRAIL_QUERY_BUDGET_GB": "<dt_grail_query_budget_gb>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @dynatrace-oss/dynatrace-mcp-server
§02  Environment variables
DT_ENVIRONMENT
required

The URL of your Dynatrace environment (e.g. 'https://abc12345.apps.dynatrace.com'). Do not use Dynatrace classic URLs.

DT_PLATFORM_TOKEN

[OPTIONAL] Dynatrace Platform Token for authentication. Alternative to OAuth authentication.

OAUTH_CLIENT_ID

[OPTIONAL] OAuth Client ID for advanced authentication scenarios. Use with OAUTH_CLIENT_SECRET.

OAUTH_CLIENT_SECRET

[OPTIONAL] OAuth Client Secret for advanced authentication scenarios. Use with OAUTH_CLIENT_ID.

DT_GRAIL_QUERY_BUDGET_GB

[OPTIONAL] Budget limit in GB for Grail query bytes scanned per session. Default: 1000. Set to -1 to disable budget tracking.

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
10
§04  Alternatives in Monitoring & Logs