home / mcp / datadog mcp server
Provides MCP access to Datadog data for monitors, metrics, dashboards, logs, events, and incidents.
Configuration
View docs{
"mcpServers": {
"abhi276k-datadog-mcp": {
"command": "node",
"args": [
"/absolute/path/to/datadog/index.js"
],
"env": {
"DD_SITE": "datadoghq.com",
"DD_API_KEY": "YOUR_API_KEY",
"DD_APP_KEY": "YOUR_APP_KEY"
}
}
}
}You can run a Datadog MCP Server locally to access Datadog monitors, metrics, dashboards, logs, events, and incidents through a lightweight MCP interface. This lets you query and manage Datadog data from your MCP-enabled clients with consistent tooling and scripts.
Start by configuring your MCP client to connect to the Datadog MCP Server as a local, stdio-based server. You run the server on your machine and point your MCP client to it, allowing you to fetch monitors, metrics, dashboards, logs, events, and incidents from Datadog through familiar MCP endpoints.
Prerequisites: you need Node.js and npm installed on your system.
Install dependencies for the MCP server package.
npm installConfigure Datadog credentials by creating a local environment file from a template and placing your keys inside. You will use these keys to authenticate with Datadog.
Copy the environment template to a new file and edit it with your keys.
cp .env.template .envObtain your credentials from your Datadog account, then fill them in the .env file along with the site region.
DD_API_KEY=your_datadog_api_key_here
DD_APP_KEY=your_datadog_app_key_here
DD_SITE=datadoghq.com # or another site like datadoghq.euTest the configuration to ensure the MCP server can authenticate with Datadog.
npm testUse a local, stdio-based MCP server configuration so your MCP clients can launch and control the server directly from your machine.
The example configuration shown below demonstrates how to run the Datadog MCP Server as a local process with environment variables.
{
"type": "stdio",
"name": "datadog",
"command": "node",
"args": ["/absolute/path/to/datadog/index.js"],
"env": {
"DD_API_KEY": "your_api_key",
"DD_APP_KEY": "your_app_key",
"DD_SITE": "datadoghq.com"
}
}Common issues include authentication problems, incorrect site configuration, and network connectivity. Ensure your API and application keys are correct, the DD_SITE matches your Datadog instance, and the machine has outbound HTTPS access to Datadog APIs.
If you encounter a startup or runtime issue, run with debug logging enabled to surface detailed information that helps pinpoint the cause.
During development, you can install dependencies, run tests, and start in development mode to verify behavior and iterate quickly.
npm install
npm test
npm run devRetrieve Datadog monitors with filtering options such as status and tags.
Search for metrics in your Datadog account using a query and limit results.
List Datadog dashboards and retrieve details with optional filters.
Search logs with advanced filtering, supporting query, time range, and limit.
Retrieve events within a specified time range and optional filters like priority and tags.
List incidents from Datadog incident management with optional query and limit.