Set Up the Datadog MCP Server

This product is not supported for your selected Datadog site. ().

Learn how to set up and configure the Datadog MCP Server, which lets you retrieve telemetry insights and manage platform features directly from AI-powered clients. Select your client:

Datadog’s Cursor and VS Code extension includes built-in access to the managed Datadog MCP Server.

  1. Install the extension (omit --profile and profile name to install to the default Cursor profile):

    cursor --install-extension datadog.datadog-vscode --profile <PROFILE_NAME>
    

    Alternatively, install the Datadog extension. If you have the extension installed already, make sure it’s the latest version.

  2. Sign in to your Datadog account.

    Sign in to Datadog from the IDE extension
  3. Restart the IDE.

  4. Confirm the Datadog MCP Server is available and the tools are listed: Go to Cursor Settings (Shift + Cmd/Ctrl + J), select the Tools & MCP tab, and expand the extension’s tools list.

  5. If you previously installed the Datadog MCP Server manually, remove it from the IDE’s configuration to avoid conflicts.

Datadog MCP Server is not supported for your selected site ().

Point your AI agent to the MCP Server endpoint for your regional Datadog site. For the correct instructions, use the Datadog Site selector on the right side of this documentation page to select your site.

Selected endpoint (): .

  1. Run in terminal:

    claude mcp add --transport http datadog-mcp 

    Alternatively, add to ~/.claude.json:

    {
       "mcpServers": {
         "datadog": {
           "type": "http",
           "url": ""
          }
        }
     }
  2. To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

    ?toolsets=apm,llmobs

Datadog MCP Server is not supported for your selected site ().

If remote authentication is not available, use local binary authentication instead.

Connect Claude (including Claude Cowork) to the Datadog MCP Server by adding it as a custom connector with the remote MCP URL.

  1. Follow the Claude help center guide on custom connectors to add a new custom connector.

  2. When prompted for a URL, enter the Datadog MCP Server endpoint for your Datadog site (). For the correct instructions, use the Datadog Site selector on the right side of this documentation page to select your site.

    To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

    ?toolsets=apm,llmobs
  3. Complete the OAuth login flow when prompted.

Datadog MCP Server is not supported for your selected Datadog site ().

Point your AI agent to the MCP Server endpoint for your regional Datadog site. For the correct instructions, use the Datadog Site selector on the right side of this documentation page to select your site.

Selected endpoint (): .

  1. Edit ~/.codex/config.toml (or your Codex CLI configuration file) to add the Datadog MCP Server with HTTP transport and the endpoint URL for your site. For example:

    [mcp_servers.datadog]
    url = ""
    

    To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

    ?toolsets=apm,llmobs
  2. Log in to the Datadog MCP Server:

    codex mcp login datadog
    

    This opens your browser to complete the OAuth flow. Codex stores the resulting credentials so you don’t need to log in again until the token expires.

Datadog MCP Server is not supported for your selected site ().

Datadog’s Cursor and VS Code extension includes built-in access to the managed Datadog MCP Server.

  1. Install the extension (omit --profile and profile name to install to the default VS Code profile):

    code --install-extension datadog.datadog-vscode --profile <PROFILE_NAME>
    

    Alternatively, install the Datadog extension. If you have the extension installed already, make sure it’s the latest version.

  2. Sign in to your Datadog account.

  3. Restart the IDE.

  4. Confirm the Datadog MCP Server is available and the tools are listed: Open the chat panel, select agent mode, and click the Configure Tools button.

    Configure Tools button in VS Code
  5. If you previously installed the Datadog MCP Server manually, remove it from the IDE’s configuration to avoid conflicts. Open the command palette (Shift + Cmd/Ctrl + P) and run MCP: Open User Configuration.

Datadog MCP Server is not supported for your selected site ().

JetBrains offers the Junie and AI Assistant plugins for their range of IDEs. Alternatively, many developers use an agent CLI, such as Claude Code or Codex, alongside their IDE.

Point your plugin to the MCP Server endpoint for your regional Datadog site. For the correct instructions, use the Datadog Site selector on the right side of this documentation page to select your site.

Selected endpoint (): .

Go to Tools > Junie > MCP Settings and add the following block:

{
  "mcpServers": {
    "datadog": {
      "type": "http",
      "url": ""
    }
  }
}

To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

?toolsets=apm,llmobs

You are prompted to login through OAuth. The status indicator in the settings displays a green tick when the connection is successful.

Go to Tools > AI Assistant > Model Context Protocol (MCP) and add the following block:

{
  "mcpServers": {
    "datadog": {
      "url": ""
      "headers": {
        "DD_API_KEY": "<YOUR_API_KEY>",
        "DD_APPLICATION_KEY": "<YOUR_APP_KEY>"
      }
    }
  }
}

To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

?toolsets=apm,llmobs

The status indicator in the settings displays a green tick when the connection is successful.

Many developers use an agent CLI such as Claude Code or Codex alongside their JetBrains IDE. See the configuration for those CLI tools:

The Datadog plugin for JetBrains IDEs integrates with these agent CLIs. For an uninterrupted experience, install the plugin at the same time as you configure the Datadog MCP Server.

Datadog MCP Server is not supported for your selected site ().

For most other supported clients, use these instructions for remote authentication. For Cline or when remote authentication is unreliable or not available, use local binary authentication.

Point your AI agent to the MCP Server endpoint for your regional Datadog site. For the correct instructions, use the Datadog Site selector on the right side of this documentation page to select your site.

Selected endpoint (): .

  1. Add the Datadog MCP Server to your client’s configuration file using the HTTP transport and your site’s endpoint URL. For example:

    {
       "mcpServers": {
         "datadog": {
           "type": "http",
           "url": ""
         }
       }
     }
  2. To enable product-specific tools, include the toolsets query parameter at the end of the endpoint URL. For example, this URL enables only APM and LLM Observability tools:

    ?toolsets=apm,llmobs

Example configuration file locations:

ClientConfiguration file
Gemini CLI~/.gemini/settings.json
Kiro CLI~/.kiro/settings/mcp.json

Datadog MCP Server is not supported for your selected site ().

Supported clients

ClientDeveloperNotes
CursorCursorDatadog Cursor & VS Code extension recommended.
Claude CodeAnthropic
ClaudeAnthropicUse custom connector setup. Includes Claude Cowork.
Codex CLIOpenAI
VS CodeMicrosoftDatadog Cursor & VS Code extension recommended.
JetBrains IDEsJetBrainsDatadog plugin recommended.
Goose, Kiro, Kiro CLI, ClineVariousSee the Other tab above. Use local binary authentication for Cline if remote authentication is unreliable.
The Datadog MCP Server is under significant development, and additional supported clients may become available.

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, based on your selected Datadog site ():

{
  "mcpServers": {
    "datadog": {
      "type": "http",
      "url": "",
      "headers": {
          "DD_API_KEY": "<YOUR_API_KEY>",
          "DD_APPLICATION_KEY": "<YOUR_APPLICATION_KEY>"
      }
    }
  }
}

For security, use a scoped API key and application key from a service account that has only the required permissions.

Local binary authentication

Local authentication is recommended for Cline and when remote authentication is unreliable or not available. After installation, you typically do not need to update the local binary to benefit from MCP Server updates, as the tools are remote.

  1. Install the Datadog MCP Server binary (macOS and Linux):

    curl -sSL https://coterm.datadoghq.com/mcp-cli/install.sh | bash
    

    This installs the binary to ~/.local/bin/datadog_mcp_cli.

    For Windows, download the Windows version.

  2. Run datadog_mcp_cli login manually to walk through the OAuth login flow and choose a Datadog site.

  3. Configure your AI client to use the stdio transport with datadog_mcp_cli as the command. For example (replace <USERNAME> with your username):

    {
      "mcpServers": {
        "datadog": {
          "type": "stdio",
          "command": "/Users/<USERNAME>/.local/bin/datadog_mcp_cli",
          "args": [],
          "env": {}
        }
      }
    }
    

    On Windows, replace the command path with the location of the downloaded .exe file (for example, C:\Users\<USERNAME>\bin\datadog_mcp_cli.exe).

    For Claude Code, you can instead run:
    claude mcp add datadog --scope user -- ~/.local/bin/datadog_mcp_cli

Test access to the MCP Server

  1. Install the MCP inspector, a developer tool for testing and debugging MCP servers.

    npx @modelcontextprotocol/inspector
    
  2. In the inspector’s web UI, for Transport Type, select Streamable HTTP.

  3. For URL, enter the MCP Server endpoint for your regional Datadog site.

    For example, for :

  4. Click Connect, then go to Tools > List Tools.

  5. Check if the available tools appear.

Further reading

Additional helpful documentation, links, and articles: