Dynatrace MCP Server

MCP server for Dynatrace Managed to access logs, events, and metrics.

Remote serverstreamable-http

What is the Dynatrace MCP server?

Dynatrace MCP server exists for a simple reason — assistants are far more useful when they can act on Dynatrace directly instead of describing what you should do. MCP server for Dynatrace Managed to access logs, events, and metrics.

What you get

The local Dynatrace Managed MCP server allows AI Assistants to interact with one or more self-hosted Dynatrace Managed deployments, bringing observability data directly into your AI-assisted workflow.

  • Problems — - List and get problem details from your services (for example Kubernetes)
  • Security — - List and get security problems / vulnerability details
  • Entities — - Get more information about a monitored entity, including relationship mappings
  • SLO — - List and get Service Level Objective details, including evaluation and error budgets
  • Event Tracking — - List and get system events
  • Log Investigation — - Search and filter logs with advanced content and time-based queries

What the assistant can call

Once Dynatrace is connected, these are the calls the assistant has available:

  • dynatraceUrlhttps://my-dashboard.company.com/
  • apiEndpointUrl — base URL for Dynatrace Managed API, to which the environment ID will be appended (e.g. https://abc123.dynatrace-managed.com:9999)
  • environmentId — ID of the managed environment, used for constructing URL for API and dashboards (e.g., of the form 01234567-89ab-cdef-abcd-ef0123456789)
  • alias — a friendly/human-readable name for the environment
  • apiToken — API token with required scopes (see Authentication)
  • Real — time observability** - Fetch production-level data for early detection and proactive monitoring
  • Problems — List and get problem details from your services (for example Kubernetes)
  • Security — List and get security problems / vulnerability details
  • Entities — Get more information about a monitored entity, including relationship mappings
  • SLO — List and get Service Level Objective details, including evaluation and error budgets
  • Example — DT_CONFIG_FILE=./dt-config.yaml
  • file — Write logs to a file (default behavior)

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration and credentials

You will need 6 environment variables: DT_CONFIG_FILE, DT_PROD_TOKEN, DT_STAGING_TOKEN, LOG_LEVEL, DT_ENVIRONMENT_CONFIGS, DT_API_ENDPOINT_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Dynatrace's toolset — dynatraceUrl, apiEndpointUrl, environmentId and 11 more — is a fair guide to whether it matches your workflow. It is maintained by dynatrace-oss; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Dynatrace's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Dynatrace.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the dynatrace mcp server does with a few real requests.

Available tools

ToolWhat it does
dynatraceUrlhttps://my-dashboard.company.com/
apiEndpointUrlbase URL for Dynatrace Managed API, to which the environment ID will be appended (e.g. https://abc123.dynatrace-managed.com:9999)
environmentIdID of the managed environment, used for constructing URL for API and dashboards (e.g., of the form 01234567-89ab-cdef-abcd-ef0123456789)
aliasa friendly/human-readable name for the environment
apiTokenAPI token with required scopes (see [Authentication](#authentication))
Realtime observability** - Fetch production-level data for early detection and proactive monitoring
ProblemsList and get [problem](https://www.dynatrace.com/hub/detail/problems/) details from your services (for example Kubernetes)
SecurityList and get security problems / [vulnerability](https://www.dynatrace.com/hub/detail/vulnerabilities/) details
EntitiesGet more information about a monitored entity, including relationship mappings
SLOList and get Service Level Objective details, including evaluation and error budgets
ExampleDT_CONFIG_FILE=./dt-config.yaml
fileWrite logs to a file (default behavior)
stderrWrite errors and warnings to standard error (info/debug suppressed)
stderr-allWrite all log levels to standard error (✅ **Recommended for VS Code with stdio transport**)

How to install the Dynatrace MCP server

{
  "mcpServers": {
    "dynatrace-managed": {
      "command": "npx",
      "args": ["-y", "@dynatrace-oss/dynatrace-managed-mcp-server@latest"],
      "env": {
        "DT_CONFIG_FILE": "./dt-config.yaml",
        "DT_PROD_TOKEN": "dt0c01.ABC123...",
        "DT_STAGING_TOKEN": "dt0c01.XYZ789...",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DT_CONFIG_FILEConfiguration value read at startup.Optional
DT_PROD_TOKENCredential the server authenticates with.Yes
DT_STAGING_TOKENCredential the server authenticates with.Yes
LOG_LEVELConfiguration value read at startup.Optional
DT_ENVIRONMENT_CONFIGSConfiguration value read at startup.Optional
DT_API_ENDPOINT_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Dynatrace to dynatraceUrl.
  • Use Dynatrace to apiEndpointUrl.
  • Use Dynatrace to environmentId.

Frequently asked questions

It connects Dynatrace to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (dynatraceUrl, apiEndpointUrl, environmentId, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Dynatrace directly.