VM

viamus/mcp-datadog

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 3 forks 质量 63 趋势 13MIT

A Datadog MCP implemented in C# that exposes logs, metrics, traces, and monitors as structured context for AI agents, enabling automated observability analysis, test validation, incident...

概览

A Model Context Protocol (MCP) server for Datadog integration, enabling AI assistants to interact with Datadog Logs, Monitors, Metrics, Incidents, and Dashboards. Copy and edit the environment file with your Datadog credentials: This project implements an MCP server that exposes tools for querying and managing Logs, Monitors, Metrics, Incidents, and Dashboards in Datadog. It can be used with any compatible MCP client, such as Claude Desktop, Claude Code, or other assistants that support the protocol. 1. Go to your Datadog organization settings: https://app.datadoghq.com/organization-settings/api-keys 2. Click to create an API Key 3. Go to Application Keys: https://app.datadoghq.com/organization-settings/application-keys 4. Click to create an Application Key 5. Copy both keys immediately (you won't see them again!) Best for: Production use, quick setup without .NET installed Best for: Deployment without .NET runtime Edit claude_desktop_config.

README

以下为原文 README 节选,完整内容请查看原文。

MCP Datadog Server

A Model Context Protocol (MCP) server for Datadog integration, enabling AI assistants to interact with Datadog Logs, Monitors, Metrics, Incidents, and Dashboards.


Quick Start

Get up and running in 3 steps:

1. Clone and configure

git clone https://github.com/viamus/mcp-datadog.git
cd mcp-datadog

Copy and edit the environment file with your Datadog credentials:

cp .env.example .env

Edit .env with your Datadog API keys:

DATADOG_API_KEY=your-api-key-here
DATADOG_APPLICATION_KEY=your-application-key-here
DATADOG_SITE=api.datadoghq.com

Need API Keys? See Creating Datadog API Keys below.

2. Run the server

Option A - Docker (recommended):

docker compose up -d
# Server runs at http://localhost:8081

Option B - .NET CLI:

dotnet run --project src/Viamus.DataDog.Mcp.Server
# Server runs at http://localhost:5100

3. Verify it’s working

# Docker
curl http://localhost:8081/health

# .NET CLI
curl http://localhost:5100/health

You should see: Healthy


About

This project implements an MCP server that exposes tools for querying and managing Logs, Monitors, Metrics, Incidents, and Dashboards in Datadog. It can be used with any compatible MCP client, such as Claude Desktop, Claude Code, or other assistants that support the protocol.


Available Tools

Log Tools

Tool Description
search_logs Search logs using Datadog query syntax with time range and pagination

Monitor Tools

Tool Description
list_monitors Lists all monitors with optional filters (name, tags, state)
get_monitor Gets details of a specific monitor by ID including thresholds and state

Metric Tools

Tool Description
query_metrics Query time-series metric data using Datadog query syntax
list_metrics Lists available metric names, optionally filtered by host
get_metric_metadata Gets metadata for a specific metric (type, description, unit)

Incident Tools

Tool Description
list_incidents Lists incidents with pagination
get_incident Gets detailed information about a specific incident

Dashboard Tools

Tool Description
list_dashboards Lists all dashboards with basic information
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "datadog": { "url": "http://localhost:8081" } } }