The Datadog MCP Server provides a powerful interface to access Datadog's monitoring capabilities through the Model Context Protocol. This server enables you to manage incidents, monitors, logs, dashboards, metrics, and other Datadog features directly through MCP clients like Claude.
Before using the MCP server, you'll need to configure your Datadog API credentials:
DATADOG_API_KEY: Your Datadog API keyDATADOG_APP_KEY: Your Datadog Application keyDATADOG_SITE (optional): The Datadog site (e.g. datadoghq.eu)DATADOG_SUBDOMAIN (optional): The Datadog subdomainExport these credentials in your environment:
export DATADOG_API_KEY="your_api_key"
export DATADOG_APP_KEY="your_app_key"
export DATADOG_SITE="your_datadog_site" # Optional
export DATADOG_SUBDOMAIN="your_datadog_subdomain" # Optional
The easiest way to install the Datadog MCP Server for Claude Desktop is through Smithery:
npx -y @smithery/cli install @winor30/mcp-server-datadog --client claude
If you prefer to install manually:
pnpm install
pnpm build
pnpm watch # for development with auto-rebuild
To use this MCP server with Claude Desktop, add it to your claude_desktop_config.json file:
Location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.jsonConfiguration using local build:
{
"mcpServers": {
"datadog": {
"command": "/path/to/mcp-server-datadog/build/index.js",
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>",
"DATADOG_SUBDOMAIN": "<YOUR_SUBDOMAIN>"
}
}
}
}
Configuration using npx:
{
"mcpServers": {
"mcp-server-datadog": {
"command": "npx",
"args": ["-y", "@winor30/mcp-server-datadog"],
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>",
"DATADOG_SUBDOMAIN": "<YOUR_SUBDOMAIN>"
}
}
}
}
Since MCP servers communicate over standard input/output, debugging can be challenging. You can use the MCP Inspector tool:
npm run inspector
This will provide a URL you can open in your browser to see logs and send requests manually.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "datadog" '{"command":"npx","args":["-y","@winor30/mcp-server-datadog"],"env":{"DATADOG_API_KEY":"<YOUR_API_KEY>","DATADOG_APP_KEY":"<YOUR_APP_KEY>","DATADOG_SITE":"<YOUR_SITE>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"datadog": {
"command": "npx",
"args": [
"-y",
"@winor30/mcp-server-datadog"
],
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"datadog": {
"command": "npx",
"args": [
"-y",
"@winor30/mcp-server-datadog"
],
"env": {
"DATADOG_API_KEY": "<YOUR_API_KEY>",
"DATADOG_APP_KEY": "<YOUR_APP_KEY>",
"DATADOG_SITE": "<YOUR_SITE>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect