Secure Datadog access for AI agents

Metrics, logs, traces, dashboards, incidents, monitors, and notebooks via Datadog's official MCP server.

Through Datadog, agents can query metrics, search logs and APM traces, read dashboards, incidents, monitors, and notebooks, and walk your service topology – every call runs through your policies and is logged for audit.

Server URL: https://mcp.datadoghq.com/v1/mcp

Credential modes

Datadog supports per-org dynamic registration only, so there is no app to create on Datadog's side and no client ID or secret to enter. See Credential modes for how it compares with Use SecureAuth's app and Bring your own app.

Before you begin

  • A Datadog account that can reach the metrics, logs, and dashboards your agents need.
  • Administrator access to your Agent Authority workspace, to add the resource.

Setup

  1. In the Agent Authority console, go to Resources and click Add Resource.
  2. Select Datadog from the catalog.
  3. On Choose how to install Datadog, click Per-org dynamic registration. Selecting it adds the resource right away with its tools pre-configured.

Dynamic client registration

When you add the resource, the gateway registers its own OAuth client with Datadog – the credential that lets it sign users in. Datadog's own organization and role-based permissions still apply, so an agent can only reach what the person who signed in could already reach.

Verify the connection

The gateway syncs the Datadog tools automatically. To check the connection end to end, ask your agent to run a request:

Search my Datadog monitors

If your monitors come back, the connection is working.

How users connect

Access is per user. Each additional user connects their own Datadog account the first time their agent calls a Datadog tool: the gateway returns a sign-in link, the user authorizes once, and the tools work from then on. Go to Connections to manage linked accounts.

Available tools

All tools are read-only.

ToolDescription
aggregate_eventsAggregate events (counts, sums, percentiles) grouped by field/time
aggregate_rum_eventsAggregate RUM events (sessions, errors, load times)
aggregate_spansAggregate APM spans (request counts, durations, error rates)
analyze_datadog_logsRun SQL analysis against a virtual logs table
get_change_storiesGet change events (deploys, scaling, config) for an APM service
get_datadog_dashboardGet a dashboard's title, description, tags, and widgets
get_datadog_incidentGet incident details, timeline, and follow-ups
get_datadog_metricQuery metrics data (timeseries or scalar)
get_datadog_metric_contextGet a metric's metadata, tags, and related assets
get_datadog_notebookGet a notebook by ID
get_datadog_traceGet an APM trace's spans by trace ID
list_datadog_skillsList available Datadog skill guides
load_datadog_skillLoad a Datadog skill guide
search_datadog_dashboardsFind dashboards by title, widget, team, or author
search_datadog_eventsSearch raw events
search_datadog_hostsQuery the hosts inventory with SQL
search_datadog_incidentsSearch incidents by state, severity, team, or semantic query
search_datadog_logsSearch raw logs or log patterns
search_datadog_metricsList available metrics
search_datadog_monitorsFind monitors by title, status, team, or tag
search_datadog_notebooksFind notebooks by author, type, or content
search_datadog_rum_eventsSearch raw RUM events
search_datadog_service_dependenciesGet upstream/downstream service dependencies
search_datadog_servicesFind services by name or team
search_datadog_spansSearch raw APM spans

Required scopes

The gateway does not request a fixed scope list for Datadog. It registers the client without naming any scopes and records the ones Datadog returns.

Policy examples

Rules are evaluated top to bottom and the first match wins. Allow rules on their own restrict nothing – your org starts with a seeded Allow all rule, so any tool your allows don't cover still falls through to it. Narrowing access needs a catch-all deny scoped to this resource, ordered below the allows. New rules are inserted at the top of the list, so create them in reverse order or drag them into place. See Policies.

  • Observability triage only. Allow search_datadog_logs, search_datadog_incidents, get_datadog_incident, and search_datadog_monitors, then deny * below them so no other Datadog tool falls through to Allow all.
  • Keep Datadog out of an agent's reach entirely. Deny * scoped to this resource and to that agent, above the seeded Allow all rule.

Since every Datadog tool is read-only, these examples limit what an agent can see rather than what it can change.

Next steps

  • Create a policy – start from the triage pattern in Policy examples above.
  • Policies – how rule order, scoping, and the seeded Allow all rule interact.
  • Connections – manage the Datadog accounts your users have linked.

On this page