Connect AI assistants to your Incidents and Telemetry data through the Model Context Protocol.
If this is your first time working with MCP servers, check out our MCP explained guide to understand the basics.
Using one of these apps? Skip the manual setup and install the dedicated plugin:
The Better Stack MCP server runs as a remote HTTP server. Add one of the following configurations to your MCP client:
If your client supports OAuth, add this configuration:
Then sign in through the browser when your client prompts you.
For clients that support HTTP servers but not OAuth, pass your API token via the Authorization header:
If your MCP client doesn't support remote HTTP servers, you can use the mcp-remote proxy instead:
Scan the QR code on your phone, or add Better Stack Bot
In the Antigravity app or IDE:
In the Antigravity CLI, install the Better Stack plugin:
Then sign in:
/mcp and select betterstack_betterstack./new to start a new conversation.Your AI assistant can now access Better Stack data. Try these:
By default, the Better Stack MCP server exposes all available tools to your AI assistant. You can restrict which tools are available by passing a custom header in your MCP configuration.
X-MCP-Tools-Only: Allowlist - only the specified tools will be availableX-MCP-Tools-Except: Blocklist - all tools except the specified ones will be availableInclude only specific tools
Exclude specific tools
This is useful when you want to give your AI assistant read-only access, limit it to a specific workflow, or reduce the initial context size when you only need a subset of tools.
Your AI assistant can search Better Stack documentation and pull relevant articles directly into the conversation:
Search documentation: Searches Better Stack documentation and returns the contents of relevant articlesExample queries
Your AI assistant can manage monitoring infrastructure and incidents through natural language. Ask questions like:
Find and change who's on call, tag them in Slack, understand escalation policies, and change who a policy notifies.
Get on-call details: Shows who's on-call for a calendar, right now or at a given time, and its Slack handleList on-call calendars: Provides information about on-call calendars and rotationsList on-call events: Lists upcoming shifts and schedule changesGet on-call event details: Fetches details for specific on-call eventsGet on-call rotation details: Explains how rotations are configuredCreate on-call calendar: Creates an empty on-call calendar in a teamUpdate on-call calendar: Renames an on-call calendar, or sets the Slack handle that tags whoever is on callRemove on-call calendar: Removes an on-call calendar and takes it off every escalation policy step it's onUpdate on-call rotation: Sets who takes turns, how long each shift is, the handoff time, and the working hours. Only the settings you name change. Shifts from now on are regenerated and replace shifts edited by hand. Overrides stayRemove on-call rotation: Removes a calendar's rotation with its shifts from today on. Past shifts and overrides stayCreate on-call override: Puts team members on call for a window in place of the rotationUpdate on-call override: Changes who covers an override, or moves its start or endRemove on-call override: Removes an override, so the rotation decides who's on call again. Removing one that has started removes the part that already happened tooTo create, change, or remove on-call calendars, rotations, and overrides, choose Full access when you sign in with OAuth, or use an API token with Read & write access. A custom role with Create on-call overrides and request cover can also use the three override tools.
Example queries
Get available incident escalation policies: Shows available escalation targets for incidentsList escalation policies: Lists configured escalation rules and stepsGet escalation policy details: Provides detailed policy informationAdd escalation policy step member: Adds a user, on-call calendar, incident webhook, Slack integration, or other member to an escalation step, or to a new step of its ownRemove escalation policy step member: Removes a member from an escalation step, or the whole step when asked to and that member is its only one. It never removes a policy's last escalation stepList severities: Shows incident severity levels and configurationsGet severity details: Explains specific severity settingsTo change escalation policies, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
Example queries
Create, manage, and collaborate on incidents from start to resolution.
Create incident: Reports new issues with context and metadataList incidents: Finds incidents by date, status, monitor, or other criteriaGet incident details: Shows full incident information including error messages and screenshotsGet incident timeline: Displays complete incident historyGet incident comments: Retrieves incident commentsCreate incident comment: Adds team collaboration comments, optionally with uploaded files attachedUpdate incident comment: Rewrites a comment you added, or one added with an API token, and edits its copies in Slack, Microsoft Teams, and LinearRemove incident comment: Removes a comment you added, or one added with an API tokenAcknowledge incident: Takes ownership of incidents to stop escalationsEscalate incident: Routes incidents to users, teams, schedules, or policiesResolve incident: Marks incidents as fixedReopen incident: Reopens a resolved incident within 24 hours of resolutionExample queries
Check service health through monitors and heartbeats.
To create, change, or remove monitors and heartbeats, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
List monitors: Shows all monitors with filtering optionsGet monitor details: Provides monitor configuration, status, and settingsCreate monitor: Creates a new monitor to track the availability of a website, host, or serviceUpdate monitor: Changes a monitor's settings, or pauses and unpauses itRemove monitor: Removes a monitor, takes it off your status pages, and resolves its ongoing incidentGet monitor availability: Calculates SLA summaries and uptime percentagesGet monitor response times: Analyzes performance metrics and trendsExample queries
List heartbeats: Shows all heartbeat monitors and their statusGet heartbeat details: Provides heartbeat configuration and recent activityCreate heartbeat: Creates a new heartbeat that alerts when a cron job or background task stops reportingUpdate heartbeat: Changes a heartbeat's settings, or pauses and unpauses itRemove heartbeat: Removes a heartbeat, takes it off your status pages, and resolves its ongoing incidentGet heartbeat availability: Tracks uptime for scheduled tasksExample queries
Communicate service status and maintenance to users.
List status pages: Shows all your status pagesGet status page details: Provides status page configuration and current statusUpdate status page: Updates status page settings like company name, theme, layout, or custom domainGet status page resources: Lists monitors and heartbeats displayed on each pageAdd status page resource: Adds a monitor, heartbeat, or group to a status pageUpdate status page resource: Changes a resource's public name, description, widget type, or placementRemove status page resource: Removes a resource from a status pageGet status page sections: Lists the sections of a status pageCreate status page section: Creates a section to group status page resources under a headingUpdate status page section: Renames a section or moves it to a new positionRemove status page section: Removes a section and its resources from a status pageCreate status page report: Creates incident reports or maintenance announcementsCreate status page report update: Adds updates to ongoing reportsUpdate status page report: Changes a report's title or start and end timesUpdate status page report update: Changes an update's message or affected resources, edits its Slack and Microsoft Teams posts, and updates the report's statusRemove status page report: Removes a report and all its updates from the status pageRemove status page report update: Removes an update from a report; removing the last update removes the report tooList status page reports: Shows status reports for a specific pageList status page report updates: Lists updates for a specific reportGet status page report update details: Provides details for specific updatesExample queries
Set up your catalog, which adds metadata like service owners to your incidents, and keep its records current.
List catalog relations: Lists your catalog relations with their attributes and how many records each holdsGet catalog relation: Shows a relation's attributes and its recordsCreate catalog relation: Creates a relation with its primary attributes and added metadata. For services, your assistant suggests Dependencies, Connections, and Type, so the Dependencies map in Integrations → Catalog shows how your services connectUpdate catalog relation: Renames a relation, changes its description or how it matches incidents, and adds or removes attributes. Removing an attribute removes its values from every recordUpsert catalog records: Adds or updates records keyed by their primary values, so adding the same records again doesn't create duplicatesRemove catalog records: Removes records by their primary values, or every record of a relationRemove catalog relation: Removes a relation with all its attributes and records. Metadata already on incidents staysTo create, change, or remove catalog data, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
Example queries
Set up outgoing webhooks that send a request to your own endpoint when incidents, on-call, or monitors change, with the same settings as in Better Stack.
List outgoing webhooks: Lists your outgoing webhooks with their URL and the events they fire onGet outgoing webhook details: Shows a webhook's URL, events, and request. Header values and basic authentication credentials are never shownCreate outgoing webhook: Creates an incident, monitor, or on-call change webhook. Optionally set the HTTP method, headers, basic authentication, and a body templateUpdate outgoing webhook: Changes a webhook's URL, events, or request, including adding, replacing, or removing headers by nameRemove outgoing webhook: Removes a webhook, including from every escalation policy step that uses itTo fire an incident webhook from an escalation policy step, add it to the step with Add escalation policy step member.
To create, change, or remove outgoing webhooks, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
Example queries
Check and change how each connected Slack channel receives incidents, with the same settings as Configure on your Slack integration. For Slack channels that get errors, see Error tracking Slack integrations.
List Slack integrations: Lists your Slack integrations with their channel and notification typeGet Slack integration details: Shows every setting of a Slack integration: the notification type, who to invite into incident channels, who Slack users can alert, and the notification optionsEdit Slack integration: Changes those settings, for example switches to a thread or a new channel per incident, or turns off calls and SMS for alerts raised from SlackTo change a Slack integration, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
Example queries
Your AI assistant can analyze logs, query metrics, and manage observability infrastructure through natural language. Ask questions like:
You can execute ClickHouse queries directly against your Better Stack data. Use the instruction tools (Get query instructions, Get metric query instructions, Get errors query instructions, Get replays query instructions) to learn how to write queries for each data type, then run them with Execute query.
Execute query: Executes a ClickHouse SQL query against your telemetry data, including logs, spans, metrics, exceptions, and replaysRender chart: Executes a ClickHouse SQL query and renders the result as a line, bar, or pie chart, useful for visualizing trends over time directly in the conversationPlan query windows: Estimates how many rows a long-range query reads and, when it's too much for one call, splits the time range into windows to run one by oneExample queries
Manage log sources and explore data structure.
List sources: Shows all log sources with status and configurationGet source details: Provides detailed source configuration and settingsCreate source: Creates new log sources with integration guidesCreate collector: Creates a Better Stack collector for a Docker host, a Docker Swarm, or a Kubernetes cluster, and returns its secret and installation guideGet source fields: Discovers available fields for querying logs and spansExample queries
Manage and interact with your observability dashboards.
List dashboards: Lists all dashboards with their ID, name, creation, and update datesList dashboard groups: Lists the groups your dashboards are organized into and how many dashboards each one holdsGet dashboard details: Shows detailed dashboard information including charts, sections, layout, and configurationList dashboard templates: Lists all available dashboard templates, including ID, name, description, and platformCreate dashboard: Creates a new dashboard, optionally from a template or with a specific sourceConfigure dashboard: Updates a dashboard's name or source eligibilitySet dashboard variable: Creates or updates a dashboard variable, a filter in the dashboard toolbar referenced as {{name}} in chart queriesRemove dashboard variable: Removes a dashboard variable by nameExport dashboard: Exports a dashboard's full configuration, including charts, sections, and settings, as JSONImport dashboard: Imports a new dashboard from a JSON configuration, creating a new dashboard with the provided data structureRemove dashboard: Permanently removes a dashboard and all its associated chartsList dashboard versions: Lists a dashboard's versions, each the dashboard right before one change, with who made the change and which charts it touched, optionally only for one chartRollback dashboard: Rolls back the whole dashboard to a version from List dashboard versions, so every change made since is rolled back too. Alerts that come back start checking at once and can open incidentsExample queries
Get chart details: Shows chart configuration, SQL queries, and settingsGet chart building instructions: Provides guidance on chart types, units, axis settings, and best practicesGet dashboard query instructions: Provides instructions for writing ClickHouse queries used inside dashboard chartsAdd chart to dashboard: Adds a new chart with a SQL query to a dashboardConfigure chart: Updates a chart's name, type, query, or settingsRemove chart: Permanently removes a chart from its dashboardAdd dashboard section: Adds a section divider to organize charts into groupsConfigure dashboard section: Updates a section's title, description, or collapsed stateRemove dashboard section: Removes a section divider from a dashboardMove charts: Rearranges chart positions on the dashboard gridExample queries
List chart alerts: Lists chart alerts with their ID, name, chart, and statusGet chart alert details: Shows configuration of a specific alert including its configuration, SQL queries, and current incident infoGet chart alert instructions: Provides instructions for creating and configuring chart alerts, including alert types and operatorsCreate chart alert: Creates a new alert on an existing chart with support for threshold, relative, and anomaly detection alert typesConfigure chart alert: Updates an existing chart alert's configurationRemove chart alert: Permanently removes a chart alertPause or resume chart alert: Pauses or unpauses a chart alertExample queries
Inspect and adjust explorations, which are your saved Explore queries, and build funnels.
List explorations: Lists saved explorations with their ID, name, chart type, product, sources, and groupGet exploration details: Shows an exploration's sources, chart type, variables, saved time range, and query or funnel stepsCreate funnel: Saves a funnel, or its trend over time, in RUM's or Telemetry's Explore from ordered steps written as Live tail queries, and previews how many sessions reached each stepConfigure funnel: Updates a funnel's steps, session field, breakdown, chart type, name, or time rangeSet exploration variable: Creates or updates an exploration variable, most often to change which sources the exploration queriesRemove exploration variable: Removes an exploration variable by nameExample queries
Query and explore logs and distributed traces.
Get query instructions: Provides instructions for building logs and spans queries to run directly via the query toolsGet explore logs query instructions: Provides instructions for writing queries for the Explore logs page and live-tail chartsExample queries
Build dashboards and analyze performance trends.
Get metrics schema: Shows available metrics with data points and series countGet metric details: Explains how to query and use specific metrics with examplesGet metric query instructions: Provides instructions for building metrics queries to run directly via the query toolsExample queries
Extract metrics and labels from your logs.
List metric expressions: Lists the extract-metrics-from-logs rules on a sourceCreate metric expression: Creates a new metric or label extracted from log fieldsUpdate metric expression: Updates an existing metric expression's name, SQL expression, type, or aggregationsRemove metric expression: Deletes a metric expression from a sourceExample queries
Manage data regions, clusters, and secure connections.
List data regions: Shows available regions for storing dataList clusters: Lists storage clusters for direct data accessList teams: Shows teams with telemetry platform accessCreate cloud connection: Creates temporary credentials for direct ClickHouse accessExample queries
Your AI assistant can manage error tracking applications, analyze exceptions, and query error data through natural language. Ask questions like:
Manage error tracking applications and their configuration.
List applications: Shows all error tracking applications with status and configurationGet application details: Provides detailed configuration, ingestion settings, and available data tablesCreate application: Creates new error tracking applications with platform-specific integration guidesEdit application: Renames an application, pauses or resumes ingestion, or sets its VRL transformations, including the exception grouping programExample queries
Track application releases and their error patterns.
List releases: Shows all releases for an application with first and last seen timestampsCreate release: Registers a release so it appears as soon as it deploys, before its first error arrivesRemove release: Permanently removes a release. A release that still receives errors is detected again with its next eventExample queries
View detailed error information and manage error states for triage and resolution tracking.
List errors: Lists error patterns for an application with occurrence counts, affected users, and current state. Supports filtering by state, release, environment, or time rangeGet error details: Shows comprehensive error information including type, message, call site, first occurrence, and current state (unhandled, unresolved, ignored, resolved, or reoccurred)Update error state: Changes error state to mark errors as resolved, ignored, or unresolved with optional notification settingsLink error to issue: Links an error to an existing Linear issue or Jira work item, then posts every error state change as a comment on it. Accepts a Linear identifier, a Jira key, or the issue URLCreate issue for error: Creates a Linear issue or Jira work item for an error through the team's integration and links the two, using Better Stack's standard issue body and the integration's configured defaultsUnlink error from issue: Removes the link between an error and a Linear, Jira, or GitLab issue, leaving the issue itself untouchedGet error comments: Reads the conversation on an error, including comments left in Better Stack, replies in the error's Slack thread, and comments synced from a linked Linear issueCreate error comment: Posts a comment on an error, marked as posted via MCP. When the error is linked to a Linear issue that syncs comments, the comment is posted there tooExample queries
Check and change which errors each connected Slack channel receives, with the same settings as Configure on your Slack integration in Error tracking.
List errors Slack integrations: Lists your error tracking Slack integrations with their channel, applications, and tag filterGet errors Slack integration: Shows every setting of an integration: its applications and environments, Notify me when, Only when tags match, how updates are posted, and whether tagging Better Stack starts an AI SRE conversationEdit errors Slack integration: Changes those settings, for example limits the integration to some applications or environments, sends only errors with matching tags, or posts updates in a threadTo change an integration, choose Full access when you sign in with OAuth, or use an API token with Read & write access.
Example queries
Query session replay data linked to errors and user sessions.
Get replays query instructions: Provides instructions for querying session replay data, including data structure, fields, and query patterns for finding replays linked to errors or specific usersExample queries
Build and execute ClickHouse queries to analyze error patterns and individual exceptions.
Get errors query instructions: Provides comprehensive documentation for querying error data including the two-layer architecture (errors and exceptions), available columns, query patterns, and best practicesExample queries
Your AI assistant can audit who has access to your teams and manage members and their roles:
List team members: Shows members of a team, including pending invitations, with each member's e-mail, name, and roleList organization roles: Lists the roles in your organization with their IDs, including custom rolesInvite team member: Invites someone to a team by e-mail address with an optional roleChange team member role: Changes an existing team member's roleRemove team member: Removes a member from a team or cancels a pending invitationExample queries
Your AI assistant can upload files, like logs and screenshots, and attach them to incident comments:
Create file upload: Uploads a file for Create incident comment to attachUploading needs an assistant that can run shell commands on your computer, like Claude Code.
Example queries
Please feel free to message us at [email protected]. We'll get back to you as soon as we can, typically within a few hours. 🙏 Thank you!
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.