Using Cursor?
Click here to add the Better Stack MCP server
Connect AI assistants to your Uptime 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.
The Better Stack MCP server runs as a remote HTTP server. Add one of the following configurations to your MCP client:
OAuth (recommended)
If your client supports OAuth, use this minimal configuration and sign in through the browser when prompted:
If you're using Claude Code, you can add the server directly from the CLI:
Click here to add the Better Stack MCP server
API token
For clients that support HTTP servers but not OAuth, pass your API token via the Authorization header:
Proxy (mcp-remote)
If your MCP client doesn't support remote HTTP servers, you can use the mcp-remote proxy instead:
Check out Connect to Local MCP Servers for setup instructions.
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 who's on-call and understand escalation policies.
Get on-call details: Shows who's currently on-call across all schedulesList 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 configuredExample 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 informationList severities: Shows incident severity levels and configurationsGet severity details: Explains specific severity settingsExample 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 commentsAcknowledge 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.
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 serviceGet 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 reportingGet heartbeat availability: Tracks uptime for scheduled tasksExample queries
Communicate service status and maintenance to users.
List status pages: Shows all public 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 reportsList 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
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 — works with 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 conversationExample 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 guidesGet 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 datesGet 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 eligibilityExport 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 chartsExample 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
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 guidesExample queries
Track application releases and their error patterns.
List releases: Shows all releases for an application with first and last seen timestampsExample 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 settingsExample 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
Please feel free to message us at hello@betterstack.com. 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.