Connector guide9-minute read29 MCP tools7 languages

How to Connect Dynatrace to ChatGPT via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

HCBy HelpCode teamUpdated 9 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Dynatrace

Dynatrace

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metrics and metric queries, log search, events, security problems, SLOs, settings and the audit log. Comment on problems, send deployment and custom events, tag entities.

tools

29

Region

INTL

Category

Monitoring

Authentication

API Key

Required env vars

DYNATRACE_ENVIRONMENT_URLDYNATRACE_API_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Dynatrace in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Try asking

Example prompts for Dynatrace

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Dynatrace · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Dynatrace, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Dynatrace + ChatGPT

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

DYNATRACE_ENVIRONMENT_URL, DYNATRACE_API_TOKEN

Step 1 — Get credentials

Setting up takes about 3 minutes. You need a Dynatrace SaaS or Managed environment.

  1. DYNATRACE_ENVIRONMENT_URL is the classic environment address: https://<environment-id>.live.dynatrace.com for SaaS or https://<your-domain>/e/<environment-id> for Managed, without /api and without a trailing slash. The platform address (<environment-id>.apps.dynatrace.com) does not accept this kind of token; use the live address of the same environment.
  2. In Dynatrace open Access tokens (Manage, Access tokens, Generate new token) and tick the scopes the tools need: problems.read, entities.read, metrics.read, logs.read, events.read, securityProblems.read, slo.read, settings.read, auditLogs.read; for writes also problems.write (comments, closing), events.ingest and entities.write (tags). A personal access token works the same way.
  3. Paste the token (dt0c01.XXXX.YYYY, without Api-Token in front) into DYNATRACE_API_TOKEN and run dynatrace_list_problems to check it. Platform tokens (dt0s16) do not work with this API.

Problems: dynatrace_list_problems with problem_selector: status("OPEN") lists what Davis AI has detected. dynatrace_get_problem with fields: evidenceDetails,impactAnalysis gives the evidence, root cause, impact and affected entities. dynatrace_list_problem_comments reads the comments and dynatrace_add_problem_comment adds one, for example the cause found or the ticket opened.

Topology: dynatrace_list_entity_types and dynatrace_get_entity_type explain the types and their properties. dynatrace_list_entities finds hosts, services, processes, applications, Kubernetes workloads and cloud resources with an entity selector (for example type("SERVICE"),entityName.contains("checkout")), and dynatrace_get_entity shows properties, tags, management zones and relationships. dynatrace_list_tags reads custom tags; dynatrace_add_tags adds tags to every matching entity, and existing tags stay.

Metrics and logs: dynatrace_list_metrics (search with text) and dynatrace_get_metric find the metric key, unit and dimensions; dynatrace_query_metrics reads data points for up to 10 metrics per selector. dynatrace_aggregate_logs counts log records per time slot and attribute to show where errors cluster, then dynatrace_search_logs returns the records, up to 1000 per call.

Events, security, SLOs and audit: dynatrace_list_events, dynatrace_get_event and dynatrace_list_event_types read events; dynatrace_ingest_event records a deployment, configuration change or annotation on entities. dynatrace_list_security_problems with status("OPEN"),riskLevel("CRITICAL","HIGH") and dynatrace_get_security_problem show vulnerabilities with CVEs, risk assessment and affected entities. dynatrace_list_slos with evaluate: true and dynatrace_get_slo give status, error budget and burn rate. dynatrace_list_audit_logs shows who changed what. Settings are read only: dynatrace_list_settings_schemas, dynatrace_get_settings_schema, dynatrace_list_settings_objects and dynatrace_get_settings_object.

Before writing: an ingested alert, error or availability event can open a problem and notify people; comments and tags are visible to everyone in the environment. So the AI shows you the change and waits for your yes.

Switched off at install: dynatrace_close_problem. A closed problem cannot be reopened (Dynatrace opens a new one if the issue comes back), so a workspace admin turns it on when the team needs it.

Selectors: entity selectors look like type("HOST"),tag("env:prod"),mzName("Production"); criteria joined by commas mean AND, and values are case-sensitive. Problem, event, SLO and security problem selectors work the same way. Metric selectors chain transformations: builtin:service.response.time:splitBy("dt.entity.service"):avg:sort(value(avg,descending)):limit(10).

Data formats: times are UTC milliseconds since 1970 (startTime, endTime, timestamp; -1 means still open). Timeframes accept relative values (now-2h, now-7d), milliseconds or ISO 8601; the default is often the last 2 hours, for the audit log the last 2 weeks. Response times are in microseconds, CPU and memory usage in percent, byte counts in bytes; dynatrace_get_metric gives the unit. Entity ids look like HOST-1234ABCD5678EF90; a problem's id differs from its display id (P-2410123).

Paging: lists return nextPageKey; the AI calls again with only next_page_key set and every other filter left out, until it is missing. Log search pages with nextSliceKey, on classic log storage only; on Grail environments the AI narrows the timeframe instead. Short timeframes keep answers small.

Common errors: 401 means a wrong, expired or revoked token, or a platform token; 403 a token without the scope the call needs (the message names it); 404 an unknown id or a wrong environment address; 400 a malformed selector (the message says where); 429 the rate limit, so wait and retry.

The connector does not run Grail or DQL queries: they need a platform token or an OAuth client, not an access token, and the Dynatrace Remote MCP server covers them. It does not change settings and does not remove tags.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.

  1. Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
  2. Enter a name, e.g. Name: Dynatrace.
  3. Under Connection, enter the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and keep Authentication on OAuth.
  4. Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
  5. Install the new plugin from your personal plugins, then type @ in a chat and pick it.

Available tools

ToolWhat it does
dynatrace_list_problemsList problems (Davis AI detected incidents), newest first: id, display id (P-2410123), title, impact level (APPLICATION, SERVICE…
dynatrace_get_problemGet one problem with its evidence (the events, metrics and transactions Davis used), impact analysis, root cause, affected entities, linked…
dynatrace_list_problem_commentsList the comments on a problem: text, context (e.g. the tool that wrote it), author and time
dynatrace_add_problem_commentAdd a comment to a problem, e.g. the cause found or the ticket opened
dynatrace_close_problemClose an open problem by hand, with a closing comment
dynatrace_list_entitiesList monitored entities (hosts, services, processes, applications, Kubernetes workloads, cloud resources and so on) that match an entity…
dynatrace_get_entityGet one monitored entity with its type, display name, properties, tags, management zones, first and last seen time and its relationships to…
dynatrace_list_entity_typesList the entity types of the environment (HOST, SERVICE, PROCESS_GROUP, APPLICATION, KUBERNETES_CLUSTER, CLOUD_APPLICATION and many more)…
dynatrace_get_entity_typeGet one entity type with its properties (usable in fields and selectors), the relationships it can have and its tag and management zone…
dynatrace_list_tagsList the custom tags on the entities that match an entity selector, with key, value and how often each is used
dynatrace_add_tagsAdd custom tags to every entity that matches an entity selector, e.g. owner:team-payments
dynatrace_list_metricsList the available metrics with key (e.g. builtin:host.cpu.usage), display name, description, unit, aggregation types and dimensions
dynatrace_get_metricGet the descriptor of one metric: display name, description, unit, dimensions, aggregation types, default aggregation and entity type
dynatrace_query_metricsRead metric data points: one or more metrics with transformations (:avg, :splitBy("dt.entity.host"), :sort(value(avg,descending))…
dynatrace_search_logsSearch log records with the Dynatrace log search query language: timestamp, status (ERROR, WARN, INFO, NONE), content and attributes (host…
dynatrace_aggregate_logsCount log records over time and by attribute: how many records match a query per time slot and per value of the chosen groupings (e.g.…
dynatrace_list_eventsList events (deployments, configuration changes, availability, error, performance and resource events, custom events) with type, title…
dynatrace_get_eventGet one event with all its properties, the entity it belongs to and its management zones
dynatrace_list_event_typesList the event types with their display name and description, for use in an event selector
dynatrace_ingest_eventSend a custom event to Dynatrace and attach it to entities: a deployment, configuration change or annotation shows on the entities and is…
dynatrace_list_security_problemsList security problems (vulnerabilities found by Runtime Vulnerability Analytics): id, display id (S-123), title, status (OPEN, RESOLVED…
dynatrace_get_security_problemGet one security problem with its description, CVEs, risk assessment (exposure, data assets, public exploit), affected and related entities…
dynatrace_list_slosList service-level objectives with name, target and warning thresholds, timeframe and, with evaluate, the current status (percentage)…
dynatrace_get_sloGet one SLO with its definition and its evaluated status, error budget, burn rate and the metric expression behind it
dynatrace_list_settings_schemasList the settings schemas of the environment (e.g. builtin:alerting.profile, builtin:management-zones, builtin:problem.notifications…
dynatrace_get_settings_schemaGet one settings schema: its properties, types, allowed values, scopes and constraints
dynatrace_list_settings_objectsRead the configured settings objects of one or more schemas (alerting profiles, management zones, anomaly detection, notifications and so…
dynatrace_get_settings_objectRead one settings object with its schema, scope, value and modification details
dynatrace_list_audit_logsList the audit log: who changed what and when (configuration changes, token changes, logins), with user, category, event type, entity and…

Example prompts

  • "Which problems are open in production right now, and what does Davis see as the root cause?"
  • "Show me the 5 services with the highest average response time over the last 24 hours."
  • "Were there error spikes in the checkout logs in the last hour? Show me a few sample records."
  • "Record a deployment of version 1.4.2 on the checkout service. Show me the event before you send it."
  • "Which critical or high security problems are still open, and which entities do they affect?"

FAQ

Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.

Next steps

Was this guide helpful?

Your Dynatrace agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Dynatrace to Claude via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Connectors

How to Connect Dynatrace to Cursor via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Connectors

How to Connect Dynatrace to Gemini via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Connectors

How to Connect Dynatrace to Meta Muse via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Connectors

Dynatrace to MCP: Problems, Root Cause, Metrics, Logs, Events and SLOs in any AI Agent

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.

Connectors

How to Connect Dynatrace to Microsoft Copilot via MCP

Dynatrace observability through the Environment API v2: Davis problems with root cause and impact, monitored entities and tags, metric queries, log search, events, security problems, SLOs, settings and the audit log. The AI can also comment on problems, send deployment and custom events and tag entities.