Menu

AI

Incident Triage with MCP: A Step-by-Step Playbook (Sentry and Datadog)

A step-by-step MCP playbook for triaging production incidents with the Sentry and Datadog MCP servers: setup, workflow, prompts, guardrails and metrics.

By: Irina ShvayaOctober 28, 2026

Incident Triage with MCP: A Step-by-Step Playbook (Sentry and Datadog)

This playbook is part of our MCP playbooks, within The MCP Guide. Want help setting it up for your team? Request a free MCP readiness review.

Incident triage is the first hour of a production problem: someone on call works out what broke, how many users it hits and where to look first. That person usually jumps between an error tracker, a log search and a tracing view. With MCP (Model Context Protocol), a coding agent can pull the same Sentry errors and Datadog logs, metrics and traces into one conversation, so the engineer spends less time copying stack traces and more time deciding.

This playbook uses only tools that Sentry and Datadog document as of October 2026. It keeps the AI in a read-and-summarize role. A person still decides on rollbacks, fixes and customer messages.

Key Takeaways

  • The Sentry MCP server is a hosted service at https://mcp.sentry.dev/mcp, and Sentry recommends scoping it to one project.
  • Datadog's core toolset already covers incidents, monitors, logs, metrics, traces and hosts, and its read tools need only read permissions.
  • Start both servers read-only in practice: Sentry with a narrow skill set, Datadog with only the core toolset.
  • Datadog logs every tool call in Audit Trail under the event name "MCP Server," which gives you a record of what the agent looked at.
  • The agent gathers and summarizes evidence. A human confirms the cause and approves any change to production.

What you need

  • Sentry MCP server. See our Sentry MCP server profile. Sentry's hosted MCP page says every connection uses OAuth, and you can scope the URL to /mcp/{organizationSlug}/{projectSlug}. Scoped connections default tools to that project and hide some discovery tools.
  • Datadog MCP Server. See our Datadog MCP server profile. Datadog's overview describes it as a bridge "between your observability data in Datadog and any AI agents" and notes it is "under significant development."
  • A coding agent that speaks MCP. Claude Code, Cursor and VS Code all work with remote servers. Our guides cover connecting Claude Code to Sentry and connecting Claude Code to Datadog.
  • Accounts with the right read permissions. Datadog says the server "cannot grant a user access beyond what that user already has," so the on-call engineer's own role sets the limit.

The workflow

  1. Confirm the incident in Datadog. Ask the agent to list open incidents with search_datadog_incidents, then pull the one you care about with get_datadog_incident. Both are read tools in the core toolset, per Datadog's tools reference, and need the Incidents Read permission.
  2. Check which monitors fired. Use search_datadog_monitors to see alerting monitors around the incident start time. If you enable the alerting toolset, search_datadog_monitor_groups breaks results down by group.
  3. Find the matching errors in Sentry. Ask the agent to search issues and errors for the affected service and time window. Sentry's README names search_issues and search_errors among its AI-powered search tools, which turn plain-English questions into Sentry's query syntax.
  4. Read the logs. Use search_datadog_logs for raw lines, and analyze_datadog_logs to group and count them. Both need Logs Read Data and Logs Read Index Data.
  5. Follow a slow or failing request. Use search_datadog_spans or aggregate_spans to find bad spans, then get_datadog_trace for one full trace. In Sentry, search_traces covers the same ground for Sentry-instrumented services.
  6. Check the blast radius. search_datadog_hosts shows affected hosts, and search_datadog_entities searches the service catalog for dependencies. get_datadog_metric pulls the error-rate or latency series.
  7. Write the triage note. Ask the agent for a short summary: symptom, start time, affected services, top error, suspected cause and open questions. If your team keeps notes in Datadog, create_datadog_notebook is a write tool that needs Notebooks Write; keep it off until you trust step 1 to 6.
  8. Hand off. The on-call engineer reviews the note, decides on rollback or fix, and owns the incident update.

Example prompts

  • "List active Datadog incidents with severity SEV-1 or SEV-2 and show the details of the newest one."
  • "In Sentry, search issues in the checkout project that first appeared in the last two hours. Rank them by event count."
  • "Analyze Datadog logs for service:payments with status:error since 14:00 UTC and group them by error message."
  • "Find the slowest spans for the checkout service in the last 30 minutes and open the full trace for the worst one."
  • "Write a triage note: what broke, when it started, which monitors fired, top Sentry issue, and what we still don't know."

Guardrails

  • Scope Sentry to one project. Sentry says "Scoping to a project is recommended when possible." You can also limit skills with ?skills=inspect,triage or drop one with ?disable-skills=seer, per the README.
  • Keep Datadog to core at first. Only core is on by default. Datadog lets you add toolsets with the toolsets query parameter, so leave write-heavy and Preview toolsets off until you need them.
  • Use a read-only role. Datadog checks the matching permission on each tool call, so a role without write permissions blocks write tools.
  • Watch the token scopes for self-hosted Sentry. The stdio mode's token list includes project:write, team:write and event:write, per the README. Treat that token as a secret.
  • Expect sensitive data. Logs and error events can hold customer details and secrets, and whatever the agent reads lands in its context. Read data exfiltration through MCP before you connect production data.
  • Mind rate limits. Datadog lists fair-use limits of 50 requests per 10 seconds and 100,000 tool calls a month, "subject to change." Sentry advises running calls one at a time if you hit a Rate Limited message.
  • Keep decisions human. Rollbacks, feature-flag changes and customer messages stay with the on-call engineer. The MCP project's security best practices also warn against broad, omnibus scopes.

What to measure

  • Time to first triage note from page to written summary, compared with incidents handled without the agent.
  • Accuracy of the suspected cause, judged by the engineer after the postmortem.
  • Tool calls per incident, from Datadog Audit Trail (filter on "MCP Server"), to spot loops and wasted calls.
  • Rate-limit hits in both services.
  • Data exposure events, such as a summary that quoted a token or customer email, logged and reviewed.

Don't compare against made-up baselines. Record your own numbers for a few weeks before and after.

Next step

More playbooks live in the MCP playbooks hub. If you want help wiring Sentry, Datadog and your coding agent together with sensible scopes, see our Claude Code development service.

Frequently asked questions

Can the agent fix the bug on its own?

It can read the code and propose a fix if your coding agent has repo access, but this playbook keeps fixes human-approved. Sentry says its MCP service is "primarily designed for human-in-the-loop coding agents."

Do I need both Sentry and Datadog?

No. Each server works alone. Sentry covers application errors and traces it instruments, while Datadog adds logs, infrastructure metrics, monitors and incidents. Use what your team already runs.

Does Datadog send my logs to an AI company?

Datadog says the MCP Server "does not send your Datadog data to a third-party AI provider." Your own AI client and its model provider still receive whatever the agent reads, under your agreement with that provider.

Why are Sentry's search tools missing?

When you run Sentry's server locally, the AI-powered search tools need an LLM provider such as OpenAI, Azure OpenAI, Anthropic or OpenRouter. Without one, only those search tools are unavailable, per Sentry's README.

You Might Also like to Read

Get a FREE Website Audit

Enter your website and get a 20–30 page SEO, GEO, AEO & CRO audit within 24 hours. Completely free.

Don't have a site yet? Get in touch →

Ready to speak with a marketing expert?
Give us a call! (916) 866-7893

Websites Launched
1407
Websites Launched
Marketing Experts
29
Marketing Experts
Hours of Dedicated Work
204533
Hours of Dedicated Work
Irina S.Benjamin G.Jeanette M.David G.