[Home](/index.md) › [MCP servers](/mcp.md) › Dynatrace MCP server

# Dynatrace MCP server

MCP server

- 0 callable tools
- 6 capabilities

[Installation guide](https://docs.dynatrace.com/docs/shortlink/dynatrace-mcp-server)

## Overview

Dynatrace publishes a remote MCP server that lets external AI agents work with a Dynatrace environment, including DQL queries, problems, Kubernetes events and entities. It is hosted by Dynatrace and requires a bearer token.

### Capabilities

- Generate and explain DQL queries with generative AI
- Run generated DQL queries
- Investigate problems and vulnerabilities
- Analyze Kubernetes events
- Forecast and analyze timeseries data
- Find documents and troubleshooting guides

## Works with

The products your agent can work with through this server.

- [Dynatrace](/tools/dynatrace.md): AI-powered observability

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Dynatrace MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http dynatrace https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Dynatrace MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=dynatrace&config=eyJ1cmwiOiJodHRwczovL3tlbnZpcm9ubWVudF9pZH0uYXBwcy5keW5hdHJhY2UuY29tL3BsYXRmb3JtLXJlc2VydmVkL21jcC1nYXRld2F5L3YwLjEvc2VydmVycy9keW5hdHJhY2UtbWNwL21jcCJ9)

```json
{
  "mcpServers": {
    "dynatrace": {
      "url": "https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp"
    }
  }
}
```

### Add Dynatrace MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

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

### Add Dynatrace MCP server to Codex

Run this in your terminal:

```sh
codex mcp add dynatrace --url https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.dynatrace]
url = "https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp"
```

If the server uses OAuth, sign in with `codex mcp login dynatrace`.

### Add Dynatrace MCP server to Claude

Add it as a custom connector with this URL:

```
https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Dynatrace MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://{environment_id}.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp
```

[Read the installation guide](https://docs.dynatrace.com/docs/shortlink/dynatrace-mcp-server)

## Sources

Documentation and source code reviewed on 10 November 2026.

- [docs.dynatrace.com/docs/dynatrace-intelligence/dynatrace-mcp](https://docs.dynatrace.com/docs/dynatrace-intelligence/dynatrace-mcp)
- [docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication](https://docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication)
