Datadog

by i524

Not rated
GitHub

About

Provides a bridge to the Datadog API, enabling metrics and logs retrieval for monitoring and observability workflows using TypeScript and Bun runtime.

Details

Author
i524
Repository
i524/datadog-mcp-server
License
MIT License
Categories
Productivity, Design, Developer Tools, AI, Frontend, API, Project Management
Tags
#integration

- Log Searching: Search Datadog logs using flexible query parameters
- Time-Based Filtering: Filter logs by specific time ranges
- Pagination Support: Navigate through large log sets with cursor-based pagination
- Coming Soon: Metrics retrieval functionality

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Datadog
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @i524/datadog-mcp-server
    Environment
    • DD_API_KEY <your-datadog-api-key>
    • DD_APP_KEY <your-datadog-app-key>

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Prerequisites

- A Datadog account with API access
- Datadog API and Application keys(See docs for detail)

search-logs

Search logs from Datadog with flexible filtering options. Parameters: filterQuery (required string), filterFrom (optional string), filterTo (optional string), cursor (optional string)

search-logs

Search logs from Datadog with flexible filtering options.

Parameters:

- filterQuery (required): A query string to filter logs. See Datadog Log Search Syntax for details.
- filterFrom (optional): The minimum timestamp for requested logs (ISO 8601 format).
- filterTo (optional): The maximum timestamp for requested logs (ISO 8601 format).
- cursor (optional): The cursor to use for pagination.

Example Usage:

// Search for error logs from a specific service in production
{
  "filterQuery": "service:awesome-service status:error",
  "filterFrom": "2025-01-01T00:00:00Z",
  "filterTo": "2025-01-02T00:00:00Z"
}

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "datadog": {
            "env": {
                "DD_API_KEY": "<your-datadog-api-key>",
                "DD_APP_KEY": "<your-datadog-app-key>"
            },
            "args": [
                "-y",
                "@i524/datadog-mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": {
        "DD_API_KEY": "<your-datadog-api-key>",
        "DD_APP_KEY": "<your-datadog-app-key>"
    },
    "args": [
        "-y",
        "@i524/datadog-mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": {
        "DD_API_KEY": "<your-datadog-api-key>",
        "DD_APP_KEY": "<your-datadog-app-key>"
    },
    "args": [
        "-y",
        "@i524/datadog-mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": {
        "DD_API_KEY": "<your-datadog-api-key>",
        "DD_APP_KEY": "<your-datadog-app-key>"
    },
    "args": [
        "/c",
        "npx",
        "-y",
        "@i524/datadog-mcp-server"
    ],
    "command": "cmd"
}

Datadog MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to search and analyze Datadog logs directly. This integration allows AI assistants to query your Datadog logs using natural language, making troubleshooting and log analysis more efficient.

Features

- Log Searching: Search Datadog logs using flexible query parameters
- Time-Based Filtering: Filter logs by specific time ranges
- Pagination Support: Navigate through large log sets with cursor-based pagination
- Coming Soon: Metrics retrieval functionality

Prerequisites

- A Datadog account with API access
- Datadog API and Application keys(See docs for detail)

Setup

Add the MCP server configuration to your AI assistant's MCP settings file:

> Note: This MCP server only supports stdio transport. SSE transport is not supported.

"datadog-mcp-server": {
  "command": "npx",
  "args": ["-y", "@i524/datadog-mcp-server"],
  "env": {
    "DD_API_KEY": "<your-datadog-api-key>",
    "DD_APP_KEY": "<your-datadog-app-key>"
  }
}

Usage

Available Tools

search-logs

Search logs from Datadog with flexible filtering options.

Parameters:

- filterQuery (required): A query string to filter logs. See Datadog Log Search Syntax for details.
- filterFrom (optional): The minimum timestamp for requested logs (ISO 8601 format).
- filterTo (optional): The maximum timestamp for requested logs (ISO 8601 format).
- cursor (optional): The cursor to use for pagination.

Example Usage:

// Search for error logs from a specific service in production
{
  "filterQuery": "service:awesome-service status:error",
  "filterFrom": "2025-01-01T00:00:00Z",
  "filterTo": "2025-01-02T00:00:00Z"
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.