
Dynatrace Managed Mcp
io.github.dynatrace-ossPublished by GitHub account dynatrace-ossv2.0.0Updated Oct 30, 2026
MCP server for Dynatrace Managed to access logs, events, and metrics.
Overview
Local MCP server that lets an AI assistant query a self-hosted Dynatrace Managed environment for problems, logs, events, metrics, entities, SLOs and security…
- What you can do
- List and fetch problem details, including Kubernetes-related problems
- List and fetch security problems and vulnerability details
- Look up monitored entities and their relationships
- List and fetch SLO details with evaluation and error budgets
- List and fetch system events
- Search and filter logs by content and time range
- When to use it
- Useful when your live observability data sits in a self-hosted Dynatrace Managed cluster, or when historical data was left behind after a move to Dynatrace SaaS. It suits incident investigation, contextual debugging, security and compliance review, and natural-language queries over logs, events and metrics.
- Requirements
- Runs locally via npx (Node.js). Needs a Dynatrace Managed API token with read scopes such as DataExport, entities.read, events.read, logs.read, metrics.read, problems.read, securityProblems.read and slo.read. Environments are defined in a dt-config.yaml or dt-config.json file referenced by DT_CONFIG_FILE, or in the DT_ENVIRONMENT_CONFIGS JSON variable. Network access to the cluster API endpoint; optional proxy settings.
Installation
In SourceWeft
- Open Dynatrace Managed Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Dynatrace Managed MCP Server
[Latest Dynatrace Managed MCP Server releases] [Dynatrace Managed MCP Server is released under the Apache 2.0 License] [npm] [Dynatrace Managed MCP Server Contributors on GitHub] [Dynatrace Managed MCP Server Stars on GitHub]
Use cases
- Your Dynatrace Managed environment(s) is/are the primary Observability system, containing all live data; or
- There has been a migration from a Dynatrace Managed environment to a Dynatrace Saas environment; however, historical observability data has not been migrated and can still be accessed via a Dynatrace Managed environment. The Dynatrace Managed MCP is used to access historical data, and a separate Dynatrace SaaS MCP is used to access live and more recent data.
Specific use cases for the Dynatrace Managed MCP include:
- Real-time observability - Fetch production-level data for early detection and proactive monitoring
- Contextual debugging - Fix issues with full context from monitored exceptions, logs, and anomalies
- Security insights - Get detailed vulnerability analysis and security problem tracking. This can include multicloud compliance assessment with evidence-based investigation.
- Natural language queries - Queries are mapped to MCP tool usage, and thus API queries, with guidance for the next step
- Multiphase incident investigation - Systematic impact assessment and troubleshooting
- Multienvironment support - Query multiple Dynatrace Managed environments from the same MCP server
Capabilities
- 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
- Metrics Analysis - Query and analyze performance metrics using V2 Metrics API
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.
This MCP server supports two modes:
- Local mode: Runs on your machine for development and testing.
- Remote mode: Connects over HTTP/SSE for distributed or production-like setups.
[!TIP] This MCP server is specifically designed for Dynatrace Managed (self-hosted) deployments. For Dynatrace SaaS environments, please use the Dynatrace MCP.
[!NOTE] This open source product is supported by the community. For feature requests, questions, or assistance, please use GitHub Issues.
Quickstart in stdio (local) mode
You can add this MCP server to your AI Assistant, such as VSCode, Claude, Cursor, Kiro, Windsurf, ChatGPT, or GitHub Copilot.
To run this MCP server, you to have to configure four things:
- Dynatrace Managed API token
- Configuration file:
dt-config.yamlordt-config.jsonfile which is responsible for defining list of environments you intend to use - MCP Server connection configuration file: local mcp configuration, which is dependent on tools you are using
- Set
DT_CONFIG_FILEto the path of yourdt-config.yamlordt-config.jsonfile in the MCP server environment.
Dynatrace Managed API token
For information about creating API tokens in Managed deployments, refer to the Dynatrace Managed documentation. Your API token must include the following scopes for full functionality:
- Access problem and event feed, metrics, and topology (
DataExport) - Read entities (
entities.read) - Read events (
events.read) - Read logs (
logs.read) - Read metrics (
metrics.read) - Read problems (
problems.read) - Read security problems (
securityProblems.read) - Read SLO (
slo.read)
Configuration File
Configuration parameters
There are two ways to configure your Dynatrace Managed environments.
Method 1: Configuration File (Recommended for Local Development)
Example: dt-config.yaml
Example: dt-config.json
Method 2: Environment Variable (Docker/Kubernetes)
For Kubernetes deployments or if you prefer environment variables, you can set DT_ENVIRONMENT_CONFIGS with a JSON string in either your .env file or directly in MCP Server connection configuration file
MCP Server connection configuration file
To actually connect to the MCP server you have to configure your MCP connection in your AI Assistant
We recommend always setting it up for your current workspace instead of using it globally.
VS Code
Alternatively, this can also be stored in user settings, and you can define env as follows:
Claude Code
Claude Code can install this server as a plugin, which skips the manual MCP configuration below and adds a skill covering environment selection and entity selectors. It is published through Anthropic's community plugin marketplace:
[!IMPORTANT] The community marketplace listing is pending review. Until it is approved, the install above reports
Plugin "dynatrace-managed-mcp" not found in marketplace "claude-community"- use the instructions under Installing straight from this repository below in the meantime.
Claude Code prompts for the cluster configuration during install - either the JSON array for a
single cluster, or a path to a dt-config.yaml / dt-config.json file for several. See
docs/claude-code-plugin.md for details.
[!NOTE] Third-party marketplaces do not auto-update by default. Run
/plugin marketplace update claude-communityto pick up a new plugin version.
Installing straight from this repository instead
This repository is also a plugin marketplace in its own right, which is how you install the plugin before the community listing is approved, try an unreleased change, or pin to a specific branch:
To configure the server by hand instead, use the Claude Desktop snippet below - it applies to Claude
Code's .mcp.json as well.
Claude Desktop
Kiro
This configuration should be stored in <project-root>/.kiro/settings/mcp.json, or in user-level settings (~/.kiro/settings/mcp.json).
Google Gemini CLI
Using gemini CLI directly (recommended):
and verify that the server is running via
Or manually in your ~/.gemini/settings.json or .gemini/settings.json:
HTTP Server Mode (Alternative)
The default mode for this local MCP uses stdio for transport.
For scenarios where you need to run the MCP server as an HTTP service instead, you can use the HTTP server mode (e.g., for load balancing or integration with web clients):
Running as HTTP server
Make sure you have the Configuration File in the same folder. You do not have to define API tokens for configurations ran in HTTP mode.
[!WARNING] In HTTP mode the server validates the
Hostheader to protect against DNS rebinding attacks. With--host 0.0.0.0(or--host ::) only loopback hostnames are accepted by default, so remote clients receive403 Forbiddenuntil you setDT_MCP_ALLOWED_HOSTSto the hostnames they use. See DNS Rebinding Protection.
MCP Server connection configuration file:
As explained earlier, HTTP mode does not store API tokens in its configuration. Authentication is done by the user by filling the X-Dynatrace-Tokens header.
Performance Considerations
Important: This MCP server makes API calls to the Dynatrace Managed environment(s). It is designed for efficient usage (e.g., limiting the response sizes), but care should be taken not to overload the Dynatrace Managed environment(s) with large queries.
Best Practices:
- Use specific time ranges (e.g., 1-2 hours) rather than large historical queries.
- Use specific filters to limit the scope of queries as much as possible, for example, entity selectors that specify the entity ID.
- If using multiple environments, be specific about which one to query, where applicable. If querying multiple at once, be mindful of how much data will be returned to the LLM, e.g. top 10 problems from 2 envs = 20 problems, versus top 10 problems from 10 envs = 100 problems.
DNS Rebinding Protection (HTTP mode)
DT_MCP_ALLOWED_HOSTS(optional): Comma-separated list of hostnames the server accepts in theHostheader. Ports are ignored, so list hostnames only (use the bracketed form for IPv6, e.g.[::1]).
When this variable is not set, the allowlist is derived from --host: the bound address plus localhost, 127.0.0.1 and [::1]. Requests whose Host header is not on the list are rejected with 403 Forbidden, as are requests carrying an Origin header for a hostname that is not on the list. This is what prevents DNS rebinding attacks.
Validation is always active: there is no configuration in which it is silently skipped.
[!IMPORTANT] When bound to a wildcard address (
--host 0.0.0.0or--host ::), the bound address does not identify which hostnames are legitimate, so the server accepts loopback hostnames only and logs a warning at startup. DNS rebinding is blocked in this mode, but so is every remote client. If you run in a container or expose the server on a network, you must setDT_MCP_ALLOWED_HOSTSto the hostnames your clients use, or they will receive403 Forbidden.
Example: container bound to all interfaces, reached as mcp.internal.example.com:
DT_MCP_ALLOWED_HOSTS replaces the derived list rather than extending it, so include loopback names explicitly if you also need local access:
Troubleshooting
Authentication Issues
In most cases, authentication issues stem from missing scopes or invalid tokens. Please ensure that you have added all required scopes as listed above.
When experiencing errors, you can ask the AI Assistant for the exact error returned by the MCP. For startup issues, check the AI Assistant logs.
You can also try running the MCP directly to see if it reports errors on startup:
Header size limits is too small
The X-Dynatrace-Tokens header grows with the number of environments. Each entry is roughly
alias=dt0s01.ABCDEFGHIJK0123 (~110 characters). Node.js enforces a default HTTP header size limit of
16 KB, which accommodates approximately 140–150 environments before requests are rejected.
If you need more environments, increase the limit at server startup with the --max-http-header-size
flag:
If you are running a reverse proxy (such as nginx) in front of the MCP server, the proxy also
enforces its own limit. nginx defaults to 8 KB (large_client_header_buffers), which fits roughly
70 environments. Raise it in your nginx configuration:
Telemetry
The Dynatrace MCP Server includes sending Telemetry Data via Dynatrace OpenKit to help improve the product. This includes:
- Server start events
- Tool usage (which tools are called, success/failure, execution duration)
- Error tracking for debugging and improvement
Privacy and Opt-out:
- Telemetry is disabled by default but can be enabled by setting
DT_MCP_ENABLE_TELEMETRY=true - No sensitive data from your Dynatrace environment is tracked
- Only anonymous usage statistics and error information are collected
- Usage statistics and error data is transmitted to Dynatrace’s analytics endpoint
Configuration options:
DT_MCP_ENABLE_TELEMETRY(boolean, default:false) - Enable TelemetryDT_MCP_TELEMETRY_APPLICATION_ID(string, default:dynatrace-managed-mcp) - Application ID for trackingDT_MCP_TELEMETRY_ENDPOINT_URL(string, default: Dynatrace endpoint) - OpenKit endpoint URLDT_MCP_TELEMETRY_DEVICE_ID(string, default: auto-generated) - Device identifier for tracking
Additional documentation
MCP Server usage
- API token scopes - table containing information about available tools, endpoints they are calling and required API token scopes to properly access them
- Architecture - detailed diagrams representing architecture of Dynatrace environment while using MCP server in either stdio or http mode
- Environment variables - detailed information about available environment variables
- Rule file - determine rules for your AI Assistant to ensure smooth usage of the Managed cluster
Development
- Changelog format - instruction for developers on how to write consistent and structured changelogs
- Development - general information about running the project and its contents
Source: README.md at commit 997fdd7
Tools
0Version history
2- v2.0.0LatestOct 30, 2026
- v1.1.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts