Set up Datadog in Metorial for Claude, ChatGPT and Cursor
Share Datadog with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key + application key sign-in, 35 tools (20 read-only).
To give your team Datadog in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Datadog integration in a Metorial portal, and each person signs in to Datadog with their own account. Agents can monitor infrastructure, applications, and services across cloud environments. The integration has 35 tools, 20 read-only, 10 write and 5 destructive, plus 4 triggers.
What you'll learn
- How an admin shares Datadog in a portal and how each person connects
- The 28 OAuth scopes Datadog can request, and what each one allows
- How to keep the 20 read-only tools and reject the other 15
Before you start
- A portal with at least one access group
- An account with Datadog for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Key + Application Key | Custom credentials | apiKey, appKey and site |
| OAuth2 (default) | OAuth | Signs in to Datadog after entering site |
The portal and metorial setup use OAuth2 unless someone picks another method.
API Key + Application Key
To connect, a person enters these values:
apiKey: Datadog API key (DD-API-KEY)appKey: Datadog Application key (DD-APPLICATION-KEY)site(optional): Datadog site/region for validating the keys One of "datadoghq.com", "us3.datadoghq.com", "us5.datadoghq.com", "datadoghq.eu", "ap1.datadoghq.com", "ap2.datadoghq.com", "ddog-gov.com".
OAuth2
Before the sign-in, setup asks for:
site(optional): Datadog site/region for your account One of "datadoghq.com", "us3.datadoghq.com", "us5.datadoghq.com", "datadoghq.eu", "ap1.datadoghq.com", "ap2.datadoghq.com", "ddog-gov.com".
People sign in to Datadog and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
dashboards_read | Dashboards Read | View dashboards and dashboard lists |
dashboards_write | Dashboards Write | Create, update, and delete dashboards |
monitors_read | Monitors Read | View monitors and monitor search |
monitors_write | Monitors Write | Create, edit, delete, mute, and unmute monitors |
monitors_downtime | Monitors Downtime | Manage downtimes for monitors |
metrics_read | Metrics Read | View and list metrics |
timeseries_query | Timeseries Query | Query timeseries and scalar data |
events_read | Events Read | Read events from the event stream |
logs_read_data | Logs Read Data | Read log data |
incident_read | Incident Read | View incidents |
incident_write | Incident Write | Create, update, and delete incidents |
user_access_read | User Access Read | View user access information |
user_access_invite | User Access Invite | Create users and send invitations |
api_keys_read | API Keys Read | View API keys |
api_keys_write | API Keys Write | Create and manage API keys |
synthetics_read | Synthetics Read | View Synthetics tests and results |
synthetics_write | Synthetics Write | Create, edit, and delete Synthetics tests |
slos_read | SLOs Read | View service level objectives |
slos_write | SLOs Write | Create, update, and delete SLOs |
hosts_read | Hosts Read | View host information |
apm_read | APM Read | Read and query APM and Trace Analytics |
security_monitoring_signals_read | Security Monitoring Signals Read | Read security monitoring signals |
security_monitoring_rules_read | Security Monitoring Rules Read | Read security monitoring rules |
cases_read | Cases Read | View cases |
cases_write | Cases Write | Create and manage cases |
usage_read | Usage Read | View usage data |
create_webhooks | Create Webhooks | Create webhook integrations |
manage_integrations | Manage Integrations | Manage integration configurations |
Setup settings
Whichever method you pick, setup also asks for:
site(optional): Datadog site/region for your account. Determines the API base URL. One of "datadoghq.com", "us3.datadoghq.com", "us5.datadoghq.com", "datadoghq.eu", "ap1.datadoghq.com", "ap2.datadoghq.com", "ddog-gov.com".
Use your own Datadog OAuth app
With your own OAuth app, people see your company's name on the Datadog consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Datadog and copy the Redirect URI.
Register the app with Datadog
Create an OAuth app or client in Datadog and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Datadog integration.
Admin: share Datadog in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Datadog. Under Auth Method, keep OAuth2 or pick another. For how members connect, choose Each person connects, so everyone signs in to Datadog as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Datadog.
Choose who gets it
Add the access groups that should see Datadog. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Datadog integration. Once it exists, check which groups have it:
Employee: connect Datadog
In the portal
Open Datadog in the catalog
Sign in to your portal and open Datadog. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Datadog sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth2. To connect with API Key + Application Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Datadog connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 20 read-only tools, such as get_slo and get_event, and lose the 10 write tools, such as manage_slo or post_event, and the 5 destructive tools, such as delete_slo or delete_monitor.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 35 tools, minus any you rejected. list_dashboards takes no input. It lists all Datadog dashboards in the organization.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (20)
query_metrics: Query timeseries metric data from Datadog. Needsquery,fromandto.list_synthetics_tests: List all Datadog Synthetics tests.get_dashboard: Get full details of a specific Datadog dashboard by ID, including all widget definitions and template variables. NeedsdashboardId.list_users: List users in the Datadog organization.search_logs: Search and retrieve logs from Datadog using query syntax. Needsfromandto.list_events: List events from the Datadog event stream within a time range. Needsstartandend.get_synthetics_test: Get details and recent results of a Datadog Synthetics test by its public ID. NeedspublicId.list_dashboards: List all Datadog dashboards in the organization.list_slos: List Datadog Service Level Objectives.list_incidents: List Datadog incidents.list_hosts: List infrastructure hosts monitored by Datadog.list_monitors: List and search Datadog monitors.list_active_metrics: List metric names actively reporting to Datadog since a Unix timestamp. Needsfrom.get_incident: Get details for a Datadog incident by ID, including title, severity, state, customer impact, timestamps, and fields. NeedsincidentId.get_monitor: Get full details for a Datadog monitor by ID, including its query, options, tags, and current state. NeedsmonitorId.get_metric_metadata: Get Datadog metadata for a metric, including type, unit, per-unit, description, integration, and StatsD interval when available. NeedsmetricName.get_downtime: Get details for a Datadog downtime by ID, including scope, status, monitor target, schedule, and notification settings. NeedsdowntimeId.get_slo: Get details for a Datadog Service Level Objective by ID, including thresholds, tags, monitors, and metric queries. NeedssloId.get_event: Get a specific Datadog event by ID, including its title, text, tags, host, priority, and alert type. NeedseventId.list_downtimes: List Datadog monitor downtimes.
Write tools (10)
manage_incident: Create or update a Datadog incident.submit_logs: Send log entries directly to Datadog. Needslogs.trigger_synthetics: Trigger one or more Datadog Synthetics tests on demand. NeedstestIds.mute_monitor: Mute or unmute a Datadog monitor. NeedsmonitorIdandaction.schedule_downtime: Schedule a downtime to temporarily mute monitoring notifications. Needsscope.manage_dashboard: Create or update a Datadog dashboard.post_event: Post an event to the Datadog event stream. Needstitleandtext.submit_metrics: Submit custom metric data points to Datadog. Needsseries.manage_monitor: Create or update a Datadog monitor.manage_slo: Create or update a Datadog Service Level Objective.
Destructive tools (5)
delete_monitor: Delete a Datadog monitor by its ID. NeedsmonitorId.delete_incident: Delete a Datadog incident by ID. NeedsincidentId.delete_slo: Delete a Datadog Service Level Objective by ID. NeedssloId.delete_dashboard: Delete a Datadog dashboard by ID. NeedsdashboardId.cancel_downtime: Cancel a Datadog downtime by ID to resume normal monitor notifications for its target scope. NeedsdowntimeId.
Triggers
Datadog has 4 triggers, which fire on events in Datadog:
monitor_state_change: Triggers when a Datadog monitor changes state (e.g., alert, warning, recovery, no data).inbound_webhooknew_event: Triggers when a new event appears in the Datadog event stream.incident_update: Triggers when a Datadog incident is created or updated.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Datadog there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Datadog on metorial.com: the integration overview