npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fazorboy/datadog-mcp-server

v0.1.0

Published

MCP server for Datadog — metric queries, log search, APM traces, monitor management, dashboard analysis

Readme

Datadog MCP Server

MCP server providing 16 tools for interacting with Datadog's observability platform.

Client Configuration

VS Code / GitHub Copilot

Add to .vscode/mcp.json:

{
  "servers": {
    "datadog": {
      "command": "npx",
      "args": ["-y", "@fazorboy/datadog-mcp-server"],
      "env": {
        "datadog_DD_API_KEY": "${input:datadogApiKey}",
        "datadog_DD_APP_KEY": "${input:datadogAppKey}",
        "datadog_DD_SITE": "datadoghq.com"
      }
    }
  },
  "inputs": [
    { "id": "datadogApiKey", "type": "promptString", "description": "Datadog API Key", "password": true },
    { "id": "datadogAppKey", "type": "promptString", "description": "Datadog App Key", "password": true }
  ]
}

Or install the Datadog MCP Server VS Code Extension for automatic registration with a settings UI.

Claude Desktop

Add to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{
  "mcpServers": {
    "datadog": {
      "command": "npx",
      "args": ["-y", "@fazorboy/datadog-mcp-server"],
      "env": {
        "datadog_DD_API_KEY": "your-api-key",
        "datadog_DD_APP_KEY": "your-app-key",
        "datadog_DD_SITE": "datadoghq.com"
      }
    }
  }
}

Cursor

Add to Cursor Settings → MCP → Add Server, or in .cursor/mcp.json:

{
  "mcpServers": {
    "datadog": {
      "command": "npx",
      "args": ["-y", "@fazorboy/datadog-mcp-server"],
      "env": {
        "datadog_DD_API_KEY": "your-api-key",
        "datadog_DD_APP_KEY": "your-app-key",
        "datadog_DD_SITE": "datadoghq.com"
      }
    }
  }
}

Tools (16 total)

Metric Queries (3)

| Tool | Description | |------|-------------| | datadog_query_metrics | Query timeseries metrics | | datadog_list_metrics | List available metric names | | datadog_get_metric_metadata | Get metric metadata (type, unit, description) |

Log Search (2)

| Tool | Description | |------|-------------| | datadog_search_logs | Search and filter logs | | datadog_log_facets | Get log facet values |

APM Traces (2)

| Tool | Description | |------|-------------| | datadog_search_traces | Search APM traces | | datadog_service_map | Get service dependency map |

Monitor Management (4)

| Tool | Description | |------|-------------| | datadog_list_monitors | List monitors/alerts | | datadog_create_monitor | Create a new monitor | | datadog_update_monitor | Update an existing monitor | | datadog_mute_monitor | Mute/unmute a monitor |

Dashboard & Incident (3)

| Tool | Description | |------|-------------| | datadog_list_dashboards | List dashboards | | datadog_get_dashboard | Get dashboard details and widgets | | datadog_list_incidents | List incidents |

Infrastructure (2)

| Tool | Description | |------|-------------| | datadog_list_hosts | List infrastructure hosts | | datadog_host_metrics | Get host-level metrics |

Configuration

| Variable | Required | Description | Default | |----------|----------|-------------|---------| | datadog_DD_API_KEY | Yes | Datadog API key | — | | datadog_DD_APP_KEY | Yes | Datadog Application key | — | | datadog_DD_SITE | No | Datadog site | datadoghq.com | | datadog_DD_MAX_RESULTS | No | Max results per query | 100 | | datadog_DD_LOG_RETENTION_DAYS | No | Max days back for logs | 15 | | datadog_DD_TIMEOUT_MS | No | API request timeout | 30000 | | datadog_DD_ALLOWED_TAGS | No | Tag filter (comma-separated) | — |

Security

  • API keys loaded from environment variables only — never logged or returned
  • ALLOWED_TAGS restricts queryable scope
  • Rate limiting respected (300 req/min with backoff)
  • All API calls over HTTPS
  • Zod schema validation on all inputs
  • Result sizes limited; no bulk export

Usage Examples

Ask your AI assistant natural language questions — the MCP server maps them to the right tool:

| Prompt | Tool | |--------|------| | "Query the system.cpu.user metric for env:prod over the last 2 hours" | datadog_query_metrics | | "What metrics are available matching aws.ec2?" | datadog_list_metrics | | "Get metadata for the trace.http.request.duration metric" | datadog_get_metric_metadata | | "Search logs for status:error in service:auth-api from the past 30 minutes" | datadog_search_logs | | "Show me the top log facet values for @http.status_code" | datadog_log_facets | | "Find APM traces where duration > 5s in order-service" | datadog_search_traces | | "Show the service dependency map for payment-gateway" | datadog_service_map | | "List all monitors tagged team:platform that are alerting" | datadog_list_monitors | | "Create a metric monitor for high memory usage on production hosts" | datadog_create_monitor | | "Mute monitor ID 12345 for 1 hour during a maintenance window" | datadog_mute_monitor |