datadog-mcp
Datadog MCP Server
Documentation
Datadog MCP Server
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:
npm install
# or
pnpm install3. Build the TypeScript project:
npm run build
# or
pnpm run buildDocker Setup
You can build using Docker with the following command:
docker build -t datadog-mcp .Usage with Claude Desktop
To use this with Claude Desktop, add the following to your `claude_desktop_config.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:
{
"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:
{
"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:
{
"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):
{
"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:
{
"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
Model Context Protocol Servers
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
MCP server to provide Figma layout information to AI coding agents like Cursor
The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP