> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect the Datadog MCP server

> Connect Datadog's remote MCP server to Spojit: the endpoint for your Datadog site, toolsets, required mcp_read and mcp_write permissions, and OAuth or token sign-in.

Datadog hosts a remote MCP server that gives AI agents access to logs, metrics, monitors, dashboards, incidents, and more. Connect it to Spojit to pull context into an incident workflow, check monitors after a deploy, or summarise errors on a schedule.

<Note>
  Spojit connects to this server through a [custom MCP server](/connectors/remote-mcp-servers/custom) connection, so you add it with **Add custom server** rather than from the connector catalog. Datadog maintains it and decides which tools it offers; see [Datadog's MCP Server setup guide](https://docs.datadoghq.com/mcp_server/setup/) for the current list.
</Note>

## Before you start

* A Datadog user with the `mcp_read` permission (and `mcp_write` for write tools), plus permission for the data each tool touches. The **Datadog Standard Role** includes both MCP permissions; custom roles need them added under **Organization Settings > Roles**.
* The MCP server is not available on the US1-FED or US2-FED (`ddog-gov.com`) sites.

## Server URL

The endpoint depends on your [Datadog site](https://docs.datadoghq.com/getting_started/site/). Open the [setup guide](https://docs.datadoghq.com/mcp_server/setup/), select your site with the site selector, and copy the endpoint it shows.

Optional query parameters:

| Parameter           | Effect                                                                                                                                                           |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `toolsets=<list>`   | Enables product toolsets, for example `toolsets=apm,llmobs`, or `toolsets=all` for every generally available toolset. Without it, only the `core` toolset loads. |
| `omit_tools=<list>` | Removes specific tools, for example `omit_tools=search_datadog_logs`.                                                                                            |
| `subdomain=<name>`  | Required with OAuth if your organization uses a custom subdomain.                                                                                                |

## Connect in Spojit

<Steps>
  <Step title="Add a custom server">
    Go to **Connections** and click **Add custom server**. Enter a **Name** such as `Datadog` and paste the **Server URL** for your site, with any parameters.
  </Step>

  <Step title="Keep Auto authentication">
    Leave **Authentication** on **Auto**, choose a visibility, and click **Save & connect**.
  </Step>

  <Step title="Approve access in Datadog">
    Datadog opens its authorization page. Sign in and approve. Spojit marks the connection **Connected** and refreshes the token automatically.
  </Step>
</Steps>

### Alternative: an access token

For unattended workflows, Datadog accepts a Personal Access Token or a Service Access Token. A service account keeps the connection independent of any one person. In Spojit choose **Token**, paste the token, keep **Header name** `Authorization` and **Prefix** `Bearer`, and click **Add**.

<Tip>
  Datadog's legacy option sends an API key and an application key as two separate headers. Custom servers send a single authentication header, so use OAuth or an access token instead.
</Tip>

## Use it in a workflow

Add a **Connector** node, pick your Datadog server under **Custom Servers**, and choose **Agent Mode** or **Direct Mode**. See [Use a custom server in a workflow](/connectors/remote-mcp-servers/custom#use-a-custom-server-in-a-workflow). With many toolsets enabled, narrow the list under **Available Tools** to keep agent runs focused.

## Troubleshooting

<AccordionGroup>
  <Accordion title="A tool is missing">
    Only the `core` toolset loads by default. Add the toolset to the URL with `toolsets=`, save, and the tool list refreshes.
  </Accordion>

  <Accordion title="Calls fail with a permissions error">
    Your role lacks `mcp_read` or `mcp_write`, or permission for the underlying data. Ask a Datadog admin to update the role.
  </Accordion>
</AccordionGroup>

## Learn more

* [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup/)
* [Datadog MCP Server](https://docs.datadoghq.com/mcp_server/)

<Snippet file="start-free.mdx" />
