trackmcp
Back to directory
tuno-dev

datadog-mcp

View on GitHub

Datadog MCP Server

0 stars TypeScriptOthers Updated Jun 12, 2026

Documentation

Datadog MCP Server

English (This Document) | 日本語

MCP Server for Datadog API, enabling log search, trace span search, and trace span aggregation functionalities.

Features

  • Log Search: Search and retrieve logs from Datadog with flexible query options
  • Trace Span Search: Search for distributed trace spans with various filtering options
  • Trace Span Aggregation: Aggregate trace spans by different dimensions for analysis

Tools

1. `search_logs`

    2. `search_spans`

      3. `aggregate_spans`

        Setup

        You need to set up Datadog API and application keys:

        1. Get your API key and application key from the Datadog API Keys page

        2. Install dependencies in the datadog-mcp project:

        bash
        npm install
           # or
           pnpm install

        3. Build the TypeScript project:

        bash
        npm run build
           # or
           pnpm run build

        Docker Setup

        You can build using Docker with the following command:

        bash
        docker build -t datadog-mcp .

        Usage with Claude Desktop

        To use this with Claude Desktop, add the following to your `claude_desktop_config.json`:

        json
        {
          "mcpServers": {
            "datadog": {
              "command": "node",
              "args": [
                "/path/to/datadog-mcp/build/index.js"
              ],
              "env": {
                "DD_API_KEY": "",
                "DD_APP_KEY": ""
              }
            }
          }
        }

        If you're using Docker, you can configure it like this:

        json
        {
          "mcpServers": {
            "datadog": {
              "command": "docker",
                "args": [
                  "run",
                  "-i",
                  "--rm",
                  "-e",
                  "DD_API_KEY",
                  "-e",
                  "DD_APP_KEY",
                  "datadog-mcp"
                ],
              "env": {
                "DD_API_KEY": "",
                "DD_APP_KEY": ""
              }
            }
          }
        }

        Usage with VS Code

        For quick installation in VS Code, configure your settings:

        1. Open User Settings (JSON) in VS Code (`Ctrl+Shift+P` → `Preferences: Open User Settings (JSON)`)

        2. Add the following configuration:

        json
        {
          "mcp": {
            "servers": {
              "datadog": {
                "command": "node",
                "args": [
                  "/path/to/datadog-mcp/build/index.js"
                ],
                "env": {
                  "DD_API_KEY": "",
                  "DD_APP_KEY": ""
                }
              }
            }
          }
        }

        If you're using Docker, you can configure it like this:

        json
        {
          "mcp": {
            "servers": {
              "datadog": {
                "command": "docker",
                  "args": [
                  "run",
                  "-i",
                  "--rm",
                  "-e",
                  "DD_API_KEY",
                  "-e",
                  "DD_APP_KEY",
                  "datadog-mcp"
                ],
                "env": {
                  "DD_API_KEY": "",
                  "DD_APP_KEY": ""
                }
              }
            }
          }
        }

        Alternatively, you can add this to a `.vscode/mcp.json` file in your workspace (without the `mcp` key):

        json
        {
          "servers": {
            "datadog": {
              "command": "node",
              "args": [
                "/path/to/datadog-mcp/build/index.js"
              ],
              "env": {
                "DD_API_KEY": "",
                "DD_APP_KEY": ""
              }
            }
          }
        }

        If you're using Docker, you can configure it like this:

        json
        {
          "servers": {
            "datadog": {
              "command": "docker",
                "args": [
                  "run",
                  "-i",
                  "--rm",
                  "-e",
                  "DD_API_KEY",
                  "-e",
                  "DD_APP_KEY",
                  "datadog-mcp"
                ],
              "env": {
                "DD_API_KEY": "",
                "DD_APP_KEY": ""
              }
            }
          }
        }

        Frequently asked questions

        What is datadog-mcp?

        datadog-mcp is Datadog MCP Server

        How do I install datadog-mcp?

        Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

        Is datadog-mcp open source?

        Yes — it is hosted on GitHub at https://github.com/tuno-dev/datadog-mcp.

        Related MCP tools

        Run your own MCP server? See who uses it and what to fix.

        Measure it with TrackMCP