# Dynatrace

A remote MCP server that wires your coding agent into a Dynatrace environment: live queries, incident analysis, metrics and logs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 167
- Author: Dynatrace
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Dynatrace/dynatrace-for-ai
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/dynatrace

## What it does

Dynatrace hosts this server, so there is no local process to run. It hands the agent access to the Dynatrace platform API, and the accompanying skills cover the ground: DQL syntax, service RED metrics, distributed traces, hosts and containers, Kubernetes, logs, AWS/Azure/GCP resources, and root-cause work on problems. Separate skills deal with alerting, forecasting, network devices and telemetry from GenAI apps.

Two environment variables do the setup: `DT_ENVIRONMENT` holding an address like `https://<env>.apps.dynatrace.com`, and `DT_PLATFORM_TOKEN` with a platform token. Set both before your agent starts, or the connection has nowhere to go. Required token scopes are listed in the MCP server docs; a token with narrower rights will be rejected on some calls.

In Claude the plugin bundles the server configuration along with the skills. `claude mcp login plugin:dynatrace:dynatrace` checks that the link works. Skills on their own teach the agent, they don't fetch anything: pair them with the server or with the `dtctl` CLI when you want real data back.

## Requirements
- Remote server: `https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp`
- Works with: Dynatrace

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http dynatrace https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

### Codex

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add dynatrace --url https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "dynatrace": {
            "url": "https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "dynatrace": {
            "type": "http",
            "url": "https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http dynatrace https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

## When to use it
- write a working DQL query without syntax mistakes
- trace an incident to its root cause from problem data
- check RED metrics for a .NET, Java, Node.js or Go service
- inspect a distributed trace and the dependencies between services
- measure LLM token spend in a GenAI app

## Example prompts
- Show CPU metrics across hosts for the past hour from Dynatrace
- List open problems on the checkout service and explain the cause
- Write a DQL query over payment service logs for today

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23643
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12109

From the same set: [dynatrace/dynatrace-for-ai](https://affpapa.org/en/nevibecode/by/dynatrace/dynatrace-for-ai.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
