This product is not supported for your selected Datadog site. ().
Join the Preview!
The Datadog MCP Server is in Preview. There is no charge for using the Datadog MCP Server during the Preview. If you're interested in this feature and need access, complete this form. Learn more about the MCP Server on the Datadog blog.
The Datadog MCP Server is not supported for production use during the Preview.
Only Datadog organizations that have been specifically allowlisted can use the Datadog MCP Server. It is not available to the general public.
The Datadog MCP Server is not available for organizations that require HIPAA compliance.
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.
Overview
Datadog’s managed MCP Server acts as a bridge between your observability data in Datadog and AI agents that support the Model Context Protocol (MCP). 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.
This page provides instructions for connecting your AI agent to the Datadog MCP Server, lists the available tools, and includes example prompts.
This demo shows the Datadog MCP Server being used in Cursor and Claude Code (unmute for audio):
Client compatibility
The following AI clients are compatible with the Datadog MCP Server.
The Datadog MCP Server is under significant development, and additional supported clients may become available.
Datadog users must have the Incidents Readpermission to use the MCP Server.
Connect in Cursor and VS Code
Datadog’s Cursor and VS Code extension includes built-in access to the managed Datadog MCP Server. Benefits include:
No additional MCP Server setup after you install the extension and connect to Datadog.
One-click transitions between multiple Datadog organizations.
[Cursor only] Better fixes from Fix in Chat on Code Insights (issues from Error Tracking, Code Vulnerabilities, and Library Vulnerabilities), informed by context from the MCP Server.
To install the extension:
If you previously installed the Datadog MCP Server manually, remove it from the IDE’s configuration to avoid conflicts. To find the MCP Server configuration:
Cursor: Go to Cursor Settings (Shift + Cmd/Ctrl + J) and select the MCP tab.
VS Code: Open the command palette (Shift + Cmd/Ctrl + P) and run MCP: Open User Configuration.
Install the Datadog extension following these instructions. If you have the extension installed already, make sure it’s the latest version, as new features are released regularly.
Sign in to your Datadog account. If you have multiple accounts, use the account included in your Product Preview.
Restart the IDE.
Confirm the Datadog MCP Server is available and the tools are listed in your IDE:
Cursor: Go to Cursor Settings (Shift + Cmd/Ctrl + J), and select the MCP tab.
VS Code: Open the chat panel, select agent mode, and click the Configure Tools button.
Connect in supported AI clients
The following instructions are for all MCP-compatible clients. For Cursor or VS Code, use the Datadog extension for built-in access to the Datadog MCP Server.
This method uses the MCP specification’s Streamable HTTP transport mechanism to connect to the MCP Server.
Point your AI agent to the MCP Server endpoint for your regional Datadog site. For example, if you’re using app.datadoghq.com to access Datadog, use the endpoint for the US1 site.
If your organization uses a custom sub-domain, use the endpoint that corresponds to your regional Datadog site. For example, if your custom sub-domain is myorg.datadoghq.com, use the US1 endpoint.
This method uses the MCP specification’s stdio transport mechanism to connect to the MCP Server.
Use this option if direct remote authentication is not available for you. After installation, you typically do not need to update the local binary to benefit from MCP Server updates, as the tools are remote.
Run datadog_mcp_cli login manually to walk through the OAuth login flow.
The MCP Server automatically starts the OAuth flow if a client needs it, but doing it manually lets you choose a Datadog site and avoid the AI client timing out.
Configure your AI client to use the Datadog MCP Server. Follow your client’s configuration instructions, as MCP Server setup varies between third-party AI clients.
For example, for Claude Code, add this to ~/.claude.json, making sure to replace <USERNAME> in the command path:
Alternatively, you can also configure Claude Code by running the following:
claude mcp add datadog --scope user -- ~/.local/bin/datadog_mcp_cli
Authentication
The MCP Server uses OAuth 2.0 for authentication. If you cannot go through the OAuth flow (for example, on a server), you can provide a Datadog API key and application key as DD_API_KEY and DD_APPLICATION_KEY HTTP headers. For example:
The Datadog MCP Server supports toolsets, which allow you to use only the tools you need, saving valuable context window space. These toolsets are available:
core: The default toolset
synthetics: Tools for interacting with Datadog Synthetic tests
software-delivery: Tools for interacting with Software Delivery CI Visibility
To use a toolset, include the toolsets query parameter in the endpoint URL when connecting to the MCP Server (remote authentication only). For example:
https://mcp.datadoghq.com/api/unstable/mcp-server/mcp retrieves only the core tools (this is the default if toolsets is not specified).
https://mcp.datadoghq.com/api/unstable/mcp-server/mcp?toolsets=synthetics retrieves only Synthetic Testing-related tools.
https://mcp.datadoghq.com/api/unstable/mcp-server/mcp?toolsets=core,synthetics,software-delivery retrieves core, Synthetic Testing, and Software Delivery tools.
Available tools
This section lists the tools available in the Datadog MCP Server and provides example prompts for using them.
Datadog MCP Server tools are under significant development and are subject to change. Use this feedback form to share any feedback, use cases, or issues encountered with your prompts and queries.
search_datadog_docs
Toolset: core Returns AI-generated answers to Datadog questions, sourced from Datadog documentation.
How do you enable Datadog profiling in Python?
What’s the best way to correlate logs and traces?
How does RUM auto-instrumentation work?
search_datadog_events
Toolset: core Searches events like monitor alerts, deployment notifications, infrastructure changes, security findings, and service status changes.
Show me all deployment events from the last 24 hours.
Find events related to our production environment with error status.
Get events tagged with service:api from the past hour.
Help me understand why the Synthetic test on endpoint /v1/my/tested/endpoint is failing.
There is an outage; find all the failing Synthetic tests on the domain api.mycompany.com.
Are Synthetic tests on my website api.mycompany.com still working in the past hour?
edit_synthetics_tests
Toolset: synthetics Edits Datadog Synthetic HTTP API tests.
Improve the assertions of the Synthetic test defined on my endpoint /v1/my/tested/endpoint.
Pause the test aaa-bbb-ccc and set the locations to only European locations.
Add my team tag to the test aaa-bbb-ccc.
synthetics_test_wizard
Toolset: synthetics Preview and create Datadog Synthetics HTTP API Tests.
Create Synthetics tests on every endpoint defined in this code file.
Create a Synthetics test on /path/to/endpoint.
Create a Synthetics test that checks if my domain mycompany.com stays up.
search_datadog_ci_pipeline_events
Toolset: software-delivery Searches CI events with filters and returns details on them.
Show me all the pipelines for my commit 58b1488.
Show me the latest pipeline failure in branch my-branch.
Propose a fix for the job integration-test that fails every time on my branch my-branch.
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.
Track tool calls in Audit Trail
You can view information about calls made by MCP Server tools in Datadog’s Audit Trail. Search or filter by the event name MCP Server.
Feedback
The Datadog MCP Server is under significant development. During the Preview, use this feedback form to share any feedback, use cases, or issues encountered with your prompts and queries.
Further reading
Additional helpful documentation, links, and articles: