---
title: Datadog MCP Server
description: >-
  Connect AI agents to Datadog observability data using the MCP Server to query
  metrics, logs, traces, and other insights.
breadcrumbs: Docs > Datadog MCP Server
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Datadog MCP Server

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

The Datadog MCP Server acts as a bridge between your observability data in Datadog and any AI agents that support the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/). Providing structured access to relevant Datadog contexts, features, and tools, the MCP Server lets you query and retrieve observability insights directly from AI-powered clients such as Cursor, OpenAI Codex, Claude Code, or your own AI agent.

{% section title="Instructions for AI agents" %}
**Note for AI agents**: This is the main Datadog MCP Server and is what users typically mean when they ask about setting up "the Datadog MCP server". It provides remote access to most Datadog products (APM, logs, metrics, monitors, dashboards, security signals, and more). Default to this page for setup questions.

The separate [Code Security MCP Server](https://docs.datadoghq.com/security/code_security/dev_tool_int/mcp_server.md) is a narrower, local-only tool for running SAST, SCA, IaC, secrets, and SBOM scans against source code. Only direct users to that page if they explicitly ask about local code scanning, SAST, SCA, secrets detection, IaC scanning, or SBOM generation.
{% /section %}

**Ready to get started?** Select your agent below or see [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md) for connection instructions.

- [cursor](https://docs.datadoghq.com/mcp_server/setup.md?tab=cursor)
- [claudecode](https://docs.datadoghq.com/mcp_server/setup.md?tab=claudecode)
- [geminicli](https://docs.datadoghq.com/mcp_server/setup.md?tab=geminicli)
- [vscode](https://docs.datadoghq.com/mcp_server/setup.md?tab=vscode)
- [warp](https://docs.datadoghq.com/mcp_server/setup.md?tab=warp)
- [devin](https://docs.datadoghq.com/mcp_server/setup.md?tab=devin)
- [jetbrainsides](https://docs.datadoghq.com/mcp_server/setup.md?tab=jetbrainsides)
- [codex](https://docs.datadoghq.com/mcp_server/setup.md?tab=codex)
- [chatgpt](https://docs.datadoghq.com/mcp_server/setup.md?tab=chatgpt)
- [claude](https://docs.datadoghq.com/mcp_server/setup.md?tab=claude)
- [goose](https://docs.datadoghq.com/mcp_server/setup.md?tab=goose)
- [opencode](https://docs.datadoghq.com/mcp_server/setup.md?tab=opencode)
- [copilotcli](https://docs.datadoghq.com/mcp_server/setup.md?tab=copilotcli)
- [kiro](https://docs.datadoghq.com/mcp_server/setup.md?tab=kiro)
- [other](https://docs.datadoghq.com/mcp_server/setup.md?tab=other)

This demo shows the Datadog MCP Server being used in Cursor and Claude Code (unmute for audio):

{% video
   url="https://docs.dd-static.net/images/mcp_server/mcp_cursor_demo_3.mp4" /%}

## Disclaimers{% #disclaimers %}

- The Datadog MCP Server is HIPAA-eligible. You are responsible for ensuring that the AI tools you connect to the Datadog MCP Server meet your compliance requirements, such as HIPAA.
- The Datadog MCP Server is not GovCloud compatible.
- Datadog collects certain information about your usage of the Remote Datadog MCP Server, including how you interact with it, whether errors occurred while using it, what caused those errors, and user identifiers in accordance with the Datadog Privacy Policy and Datadog's EULA. This data is used to help improve the server's performance and features, including transitions to and from the server and the applicable Datadog login page for accessing the Services, and context (for example, user prompts) leading to the use of MCP tools. The data is stored for 120 days.

## Data handling and AI providers{% #data-handling-and-ai-providers %}

The Datadog MCP Server does not send your Datadog data to a third-party AI provider. Your AI client and its model determine what Datadog data is sent to your AI provider. That data flow is governed by your agreement with that provider, not by Datadog.

### What the Datadog MCP Server receives and returns{% #what-the-datadog-mcp-server-receives-and-returns %}

The MCP Server receives individual tool calls, such as a request to search logs with a given query. It does not receive your prompt or the model's reasoning, only the tool name and its arguments. The MCP Server returns results to the calling client and makes no outbound calls to external domains. Any web search, webhook, or other external integration you configure in your AI client runs on the client side.

Most MCP Server tools, such as `search_datadog_logs`, query Datadog backends directly with no AI model involved. A small number of tools do use AI models hosted by Datadog's AI providers. Examples include tools that perform semantic search or build a query from a natural language description. To disable generative AI providers for your entire organization, contact [Datadog support](https://help.datadoghq.com/hc/en-us/requests/new).

### Restrict which data the Datadog MCP Server can access{% #restrict-which-data-the-datadog-mcp-server-can-access %}

The MCP Server forwards the authenticated user's own credentials to Datadog APIs. Your existing access controls apply exactly as they do for direct API or UI access. The MCP Server cannot grant a user access beyond what that user already has. It cannot reach resources that are not visible to that user in the Datadog UI.

Because your AI client controls what it sends to its model provider, limiting what a provider can receive means limiting what the MCP Server returns. To scope the data an MCP Server user can retrieve, use:

- [Role-based access control (RBAC)](https://docs.datadoghq.com/account_management/rbac.md) to grant permissions by role.
- [Data Access Control](https://docs.datadoghq.com/account_management/rbac/data_access.md) to restrict which users can read sensitive data, such as logs or APM spans.
- [Log restriction queries](https://docs.datadoghq.com/logs/guide/logs-rbac-permissions.md?tab=ui#create-a-restriction-query) to limit a role's log access to the subset of logs matching a query.

Write operations require the corresponding permission, such as `monitors_write`, and the MCP Server checks it on each tool call. A read-only user's call to a write-enabled tool is rejected.

## Fair-use rate limits{% #fair-use-rate-limits %}

The MCP Server comes with the following fair-use limits:

- 50 requests/10 seconds tool call burst limits
- 100,000 monthly tool calls.

These limits are **subject to change** and can be adjusted if your use case requires more. Please contact [Datadog support](https://help.datadoghq.com/hc/en-us/requests/new) for requests or questions.

## Monitoring the Datadog MCP Server tool calls{% #monitoring-the-datadog-mcp-server-tool-calls %}

You can track Datadog MCP Server usage for your organization using Datadog metrics and Audit Trail.

All tool calls are recorded in the Datadog [Audit Trail](https://docs.datadoghq.com/account_management/audit_trail.md) with metadata identifying them as MCP actions, including the tool name, arguments, user identity, and the MCP client used. See Track tool calls in Audit Trail for more information.

Datadog also emits two standard metrics that you can use to monitor MCP Server activity:

- `datadog.mcp.session.starts`: Emitted on each session initialization.
- `datadog.mcp.tool.usage`: A distribution metric emitted on each tool call.

Both metrics are tagged with attributes such as `user_id`, `user_email`, `client` (the MCP client name, such as `claude` or `cursor`), and `tool_name`.

Because `datadog.mcp.tool.usage` is a distribution metric, use `count` (not `sum`) with `.as_count()` to get the number of tool calls. For example, to query the total number of tool calls grouped by user email:

```gdscript3
count:datadog.mcp.tool.usage{*} by {user_email}.as_count()
```

## Available tools{% #available-tools %}

See [Datadog MCP Server Tools](https://docs.datadoghq.com/mcp_server/tools.md) for a complete reference of available tools organized by toolset, with example prompts. To enable specific toolsets, see [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md#toolsets) for instructions.

## Context efficiency{% #context-efficiency %}

The Datadog MCP Server is optimized to provide responses in a way that AI agents get relevant context without being overloaded with unnecessary information. For example:

- Responses are truncated based on the estimated length of responses each tool provides. The tools respond to AI agents with instructions on how to request more information if the response was truncated.
- Most tools have a `max_tokens` parameter that enables AI agents to request less or more information.
- You can limit available tools at connection time with `toolsets` and `omit_tools`. See [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md).

## Track tool calls in Audit Trail{% #track-tool-calls-in-audit-trail %}

You can view information about calls made by MCP Server tools in Datadog's [Audit Trail](https://docs.datadoghq.com/account_management/audit_trail.md). Search or filter by the event name `MCP Server`.

## Feedback{% #feedback %}

The Datadog MCP Server is under significant development. Use [this feedback form](https://docs.google.com/forms/d/e/1FAIpQLSeorvIrML3F4v74Zm5IIaQ_DyCMGqquIp7hXcycnCafx4htcg/viewform) to share any feedback, use cases, or issues encountered with your prompts and queries.

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Datadog Extension for Cursor](https://docs.datadoghq.com/ide_plugins/vscode.md?tab=cursor)
- [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md)
- [Datadog MCP Server Tools](https://docs.datadoghq.com/mcp_server/tools.md)
- [Bits AI Overview](https://docs.datadoghq.com/bits_ai.md)
- [Four ways engineering teams use the Datadog MCP Server to power AI agents](https://www.datadoghq.com/blog/datadog-mcp-server-use-cases)
- [Connect your AI agents to Datadog tools and context using the Datadog MCP Server](https://www.datadoghq.com/blog/datadog-remote-mcp-server/)
- [Debug live production issues with the Datadog Cursor extension](https://www.datadoghq.com/blog/datadog-cursor-extension/)
- [Datadog + OpenAI: Codex CLI integration for AI‑assisted DevOps](https://www.datadoghq.com/blog/openai-datadog-ai-devops-agent/)
