datadog
LLM-optimized MCP server for Datadog APM, logs, and metrics. Delivers structured, token-efficient trace and log insights designed specifically for AI-driven debugging—not just raw Datadog data.
claude mcp add --transport stdio waabox-datadog-mcp-server java -jar datadog-mcp-server.jar \ --env DATADOG_API_KEY="Datadog API key (optional, for certain features requiring API access)"
How to use
This MCP server provides a Datadog tracing and log analysis workflow that lets AI assistants query Datadog APM for error traces, search logs, and generate diagnostic workflows. You can invoke tools to list error traces for a service, inspect a specific trace in detail (including spans, logs, and a generated debugging workflow), extract structured test scenarios from traces, and correlate logs with traces to build a holistic debugging picture. The server is designed to reduce token usage by performing heavy lifting server-side, returning structured results that an AI assistant can reason over. To use it, run the Java-based MCP server (via the provided jar) and configure Claude Code’s mcp.json to point to the running instance. Once operational, you can call tools like trace.list_error_traces, trace.inspect_error_trace, trace.extract_scenario, log.search_logs, and log.correlate to interact with Datadog data programmatically.
How to install
Prerequisites:
- Java 21 or newer installed on the host
- Access to Datadog (optional API keys for certain features)
- Internet access to fetch dependencies (if running the installer or pulling the JAR)
Installation options:
Option A: Run the JAR directly
-
Ensure you have Java 21+ installed
-
Obtain the datadog-mcp-server.jar (from your build artifact or release page)
-
Start the MCP server:
java -jar datadog-mcp-server.jar
-
If needed, set environment variables (for example, DATADOG_API_KEY) before starting the process
Option B: Use the provided installer script (as described in README)
-
Prerequisites: curl, bash, and Java 21+ installed
-
Run the installer which builds and copies the JAR to the Claude environment:
curl -fsSL https://raw.githubusercontent.com/waabox/datadog-mcp-server/main/install.sh | bash
-
Follow prompts to provide your Datadog API keys (optional) and complete installation
-
Configure Claude Code's mcp.json to reference the running MCP server
Note: The server is Java-based and expects a JAR artifact. If you deploy in a container or cloud environment, ensure port exposure and proper environment variables are configured.
Additional notes
Tips and caveats:
- Datadog API access: Some features may require an active Datadog API key. If you don’t provide one, optional features may be disabled.
- Environment labeling: Use the env parameter (prod, staging, dev) consistently when querying traces to keep results aligned with your Datadog data.
- Performance: Server-side processing reduces token usage for AI reasoning but depends on the Datadog API response times. For large time windows, consider narrowing the range with from/to and limit parameters.
- Troubleshooting: If the MCP server fails to start, check Java version compatibility, ensure the JAR path is correct, and verify network access to Datadog endpoints. Logs will help identify missing environment variables or authentication issues.
Related MCP Servers
git
An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management, and more, via the MCP standard. STDIO & HTTP.
memory
A MCP (Model Context Protocol) server providing long-term memory for LLMs
mcp-coroot
MCP server for Coroot observability platform - integrate monitoring, troubleshooting, and configuration tools with AI agents
MCPDebugger
A lightweight MCP debugger designed for learning and experimentation. Supports Windows executables (x86 and x64).
mezmo
Mezmo MCP: A remote Model Context Provider (MCP) for AI assistants and IDEs to interact with the Mezmo observability platform—enabling pipeline management, log querying, and root-cause analysis via the Model Context Protocol.
mozichem-hub
A modular Python toolkit for creating MCP modules tailored to chemical engineering and chemistry workflows.