home / mcp / datadog mcp server
exposes Datadog APIs for incidents, monitors, logs, dashboards, metrics, traces, hosts, and RUM via MCP tools.
Configuration
View docs{
"mcpServers": {
"winor30-mcp-server-datadog": {
"command": "npx",
"args": [
"-y",
"@winor30/mcp-server-datadog"
],
"env": {
"DATADOG_SITE": "datadoghq.com",
"DATADOG_API_KEY": "YOUR_API_KEY",
"DATADOG_APP_KEY": "YOUR_APP_KEY",
"DATADOG_SUBDOMAIN": "<your-subdomain>",
"DATADOG_STORAGE_TIER": "indexes"
}
}
}
}You can integrate and operate Datadog data through an MCP server that exposes Datadog API capabilities as MCP tools. This enables you to manage incidents, monitors, logs, dashboards, metrics, APM traces, RUM data, and more from a single, consistent interface you connect to with your MCP client.
To use the Datadog MCP Server, connect your MCP client to one or more configured MCP endpoints. You can execute each tool to perform specific Datadog actions, such as listing incidents, fetching dashboards, querying metrics, or retrieving logs. Each tool returns structured data that you can display or process within your workflow.
Prerequisites: ensure you have Node.js and npm installed on your system. You will also use a package manager such as npm or npx to run or install the MCP server.
Option A: Install and run the MCP server via the Smithery installer command.
npx -y @smithery/cli install @winor30/mcp-server-datadog --client claudeOption B: Run the MCP server locally from a repository clone or built package. Build and start the server using the standard development workflow.
pnpm install
pnpm build
pnpm watchOption C: Run the MCP server with a local JavaScript entry point (recommended for Claude Desktop usage). You can configure Claude to load a local built server.
{
"mcpServers": {
"datadog": {
"command": "/path/to/mcp-server-datadog/build/index.js",
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>",
"DATADOG_SUBDOMAIN": "<YOUR_SUBDOMAIN>",
"DATADOG_STORAGE_TIER": "indexes"
}
}
}
}Or, run the MCP server using npx with explicit packaging arguments.
{
"mcpServers": {
"datadog": {
"command": "npx",
"args": ["-y", "@winor30/mcp-server-datadog"],
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>",
"DATADOG_SUBDOMAIN": "<YOUR_SUBDOMAIN>",
"DATADOG_STORAGE_TIER": "indexes"
}
}
}
}You need valid Datadog credentials to authorize the MCP server to access Datadog resources. Prepare these environment variables before starting the server.
Required credentials and optional settings:
Treat your API keys as secrets. Do not commit them to source control. Use environment configuration mechanisms provided by your deployment environment to inject these values at runtime.
If you encounter issues, enable verbose logs and verify that the MCP server process can reach the Datadog APIs using the configured keys. You can run the MCP Inspector to monitor requests and responses between your MCP client and the server.
The MCP server exposes a set of tools that map to Datadog capabilities, including incidents, monitors, logs, dashboards, metrics, traces, hosts, and RUM data. Each tool accepts specified inputs and returns structured results suitable for downstream processing.
Retrieve a list of incidents from Datadog. Supports optional filter and pagination inputs.
Retrieve detailed information about a specific Datadog incident by ID.
Fetch the status of Datadog monitors with optional groupStates, name, and tags filters.
Search and retrieve logs from Datadog using a query and time range.
Get a list of Datadog dashboards with optional name and tag filters.
Retrieve a specific Datadog dashboard by its ID.
Retrieve metrics data for a given Datadog query and time range.
Retrieve a list of Datadog APM traces with optional filters and sorting.
Get a list of hosts from Datadog with multiple filtering and pagination options.
Get the total number of active hosts in Datadog over a time window.
Mute a host in Datadog with optional end time and message.
Unmute a previously muted host in Datadog.
List scheduled downtimes with optional currentOnly and monitorId filters.
Schedule a downtime for a scope with optional recurrence and metadata.
Cancel a scheduled Datadog downtime by its ID.
Get all RUM applications in the organization.
Search and retrieve RUM events with a time range and limit.
Group and count RUM events by a specified dimension.
Get RUM page performance metrics for specified views.
Retrieve RUM page waterfall data filtered by application name and session.