
Dynatrace MCP Server
A remote MCP server that enables real-time interaction with the Dynatrace observability platform, bringing production-level monitoring data directly into development workflows.
README
Dynatrace MCP Server
This remote MCP server allows interaction with the Dynatrace observability platform. Bring real-time observability data directly into your development workflow.
<img width="1046" alt="image" src="/assets/dynatrace-mcp-arch.png" />
Use cases
- Real-time observability, fetch production-level data for early detection.
- Fix issues in the context from monitored exceptions, logs, and anomalies.
- More context on security level issues
- Natural language to query log data
Capabilities
- List and get problem details from your services (for example Kubernetes)
- List and get security problems / vulnerability details
- Execute DQL(Dynatrace Query Language) like getting events or logs
- Send Slack messages (via Slack Connector)
- Set up notification Workflow (via Dynatrace AutomationEngine)
- Get Ownership of an entity
Quickstart
Work in progress
You can add this MCP server (using STDIO) to your MCP Client like VS Code, Claude, Cursor, Windsurf Github Copilot via the package @dynatrace-oss/dynatrace-mcp-server
.
VS Code
{
"servers": {
"npx-dynatrace-mcp-server": {
"command": "npx",
"args": ["-y", "@dynatrace-oss/dynatrace-mcp-server@latest"],
"envFile": "${workspaceFolder}/.env"
}
}
}
Claude Desktop
{
"mcpServers": {
"mobile-mcp": {
"command": "npx",
"args": ["-y", "@dynatrace-oss/dynatrace-mcp-server@latest"],
"env": {
"OAUTH_CLIENT_ID": "",
"OAUTH_CLIENT_SECRET": "",
"DT_ENVIRONMENT": ""
}
}
}
}
Environment Variables
A Dynatrace OAuth Client is needed to communicate with your Dynatrace Environment. Please follow the documentation about creating an Oauth Client in Dynatrace, and set up the following environment variables in order for this MCP to work:
DT_ENVIRONMENT
(string, e.g., https://abcd1234.apps.dynatrace.com) - URL to your Dynatrace PlatformOAUTH_CLIENT_ID
(string, e.g.,dt0s02.SAMPLE
) - Dynatrace OAuth Client IDOAUTH_CLIENT_SECRET
(string, e.g.,dt0s02.SAMPLE.abcd1234
) - Dynatrace OAuth Client Secret- OAuth Client Scopes:
app-engine:apps:run
- needed for environmentInformationClientapp-engine:functions:run
- needed for environmentInformationClienthub:catalog:read
- get details about installed Apps on Dynatrace Environmentenvironment-api:security-problems:read
- needed for reading security problemsenvironment-api:entities:read
- read monitored entitiesenvironment-api:problems:read
- get problemsenvironment-api:metrics:read
- read metricsenvironment-api:slo:read
- read SLOssettings:objects:read
- needed for reading ownership information and Guardians (SRG) from settingsstorage:buckets:read
- Read all system data stored on Grailstorage:logs:read
- Read logs for reliability guardian validationsstorage:metrics:read
- Read metrics for reliability guardian validationsstorage:bizevents:read
- Read bizevents for reliability guardian validationsstorage:spans:read
- Read spans from Grailstorage:entities:read
- Read Entities from Grailstorage:system:read
- Read System Data from Grailstorage:user.events:read
- Read User events from Grailstorage:user.sessions:read
- Read User sessions from Grail
In addition, depending on the features you use, the following variables can be configured:
SLACK_CONNECTION_ID
(string) - connection ID of a Slack ConnectionUSE_APP_SETTINGS
(boolean,true
orfalse
; default:false
)- Requires scope
app-settings:objects:read
to read settings-objects from app settings
- Requires scope
USE_WORKFLOWS
(boolean,true
orfalse
; default:false
)- Requires scopes
automation:workflows:read
,automation:workflows:write
andautomation:workflows:run
to read, write and execute Workflows
- Requires scopes
✨ Example prompts ✨
Use these example prompts as a starting point. Just copy them into your IDE or agent setup, adapt them to your services/stack/architecture, and extend them as needed. They’re here to help you imagine how real-time observability and automation work together in the MCP context in your IDE.
Find open vulnerabilities on production, setup alert.
I have this code snippet here in my IDE, where I get a dependency vulnerability warning for my code.
Check if I see any open vulnerability/cve on production.
Analyze a specific production problem.
Setup a workflow that sends Slack alerts to the #devops-alerts channel when availability problems occur.
Debug intermittent 503 errors.
Our load balancer is intermittently returning 503 errors during peak traffic.
Pull all recent problems detected for our front-end services and
run a query to correlate error rates with service instance health indicators.
I suspect we have circuit breakers triggering, but need confirmation from the telemetry data.
Correlate memory issue with logs.
There's a problem with high memory usage on one of our hosts.
Get the problem details and then fetch related logs to help understand
what's causing the memory spike? Which file in this repo is this related to?
Trace request flow analysis.
Our users are experiencing slow checkout processes.
Can you execute a DQL query to show me the full request trace for our checkout flow,
so I can identify which service is causing the bottleneck?
Analyze Kubernetes cluster events.
Our application deployments seem to be failing intermittently.
Can you fetch recent events from our "production-cluster"
to help identify what might be causing these deployment issues?
Development
For development purposes, you can use VSCode and GitHub Copilot.
First, enable Copilot for your Workspace .vscode/settings.json
:
{
"github.copilot.enable": {
"*": true
}
}
Second, add the MCP to .vscode/mcp.json
:
{
"servers": {
"my-dynatrace-mcp-server": {
"command": "node",
"args": [
"${workspaceFolder}/dist/index.js"
],
"envFile": "${workspaceFolder}/.env"
}
}
}
Third, create a .env
file in this repository (you can copy from .env.template
) and configure environment variables as described above.
Last but not least, switch to Agent Mode in CoPilot and reload tools.
Notes
This product is not officially supported by Dynatrace. Please contact us via GitHub Issues if you have feature requests, questions, or need help.
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。