Skip to content

About

Better Stack plugin for Cursor: connect Cursor to your Better Stack Incidents and Telemetry data.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Stack plugin for Cursor

Connect Cursor to your Better Stack Incidents and Telemetry data through the Model Context Protocol (MCP). Your agent can investigate incidents, check who is on call, manage uptime monitors, query logs, metrics, traces, errors and real user monitoring (RUM), and build dashboards, all in natural language.

Install

Add Better Stack to Cursor

Or add it manually to your Cursor mcp.json:

{
  "mcpServers": {
    "betterstack": {
      "type": "http",
      "url": "https://mcp.betterstack.com"
    }
  }
}

The first tool call opens a browser for OAuth sign-in. No token configuration needed. Start a new chat after signing in so the tools load.

The link and the manual config add the MCP server only. The skills come with the plugin from the Cursor Marketplace.

Not connected yet?

The plugin's connect-betterstack skill checks whether the Better Stack tools are connected. When a Better Stack request comes in and they aren't, the agent tells you how to connect instead of failing quietly. You can also ask it directly: "Set up Better Stack."

What you can do

Try asking your agent things like:

  • "Show me all monitors that are currently down."
  • "What's the availability of my website this month?"
  • "What incidents occurred yesterday?"
  • "Who's on-call right now?"
  • "Acknowledge incident #1234 and add a comment about the fix."
  • "Build an explore query to find HTTP 500 errors in the last hour."
  • "Create a dashboard showing error rates for my API service."

Tools

The plugin exposes the full Better Stack MCP toolset:

  • Incidents (formerly Uptime): incidents, on-call schedules and escalation, uptime monitors, heartbeats, status pages.
  • Telemetry: dashboards, charts, alerts, log/metric/error queries, sources and applications.
  • Documentation: search Better Stack docs from within Cursor.

The complete tool reference and example prompts live in the Better Stack MCP integration docs.

Skills

The plugin comes with skills that teach your agent how to work with Better Stack. It loads each one when the task calls for it.

Investigate

  • investigate-incident: investigates an incident or alert end to end. It finds the incident, checks who is on call, pulls the errors, logs, traces, metrics and releases around the start time, and posts a short situation report. It stays read-only unless asked to act.
  • health-check: a quick health assessment of a server or service (CPU, memory, disk, network, log levels, dependencies) with charts.

Query

  • logs-query, spans-query, metrics-query, errors-query: the SQL dialect for each data type, with the mistakes that make queries fail or return wrong numbers.
  • collector-queries: proven host, container and service queries for Better Stack Collector sources.

Dashboards and alerts

  • dashboard-builder, dashboard-layout: build dashboards that read well, with template variables and a clean grid.
  • chart-generation, chart-styling, map-hierarchy-charts: chart types, units and settings.
  • chart-alerts: threshold, relative and anomaly alerts on charts.
  • uptime-monitors: monitor types, valid settings and escalation policies.

Migrate

  • grafana-import: recreate Grafana dashboards in Better Stack.

Authentication

OAuth is the recommended flow and works out of the box with Cursor. If you prefer an API token, you can pass it via the Authorization header instead. See API authentication:

{
  "mcpServers": {
    "betterstack": {
      "type": "http",
      "url": "https://mcp.betterstack.com",
      "headers": {
        "Authorization": "Bearer $TOKEN"
      }
    }
  }
}

Limiting available tools

Restrict which tools the agent can use with one of these headers:

  • X-MCP-Tools-Only: allowlist (only the listed tools are available)
  • X-MCP-Tools-Except: blocklist (all tools except the listed ones)
{
  "mcpServers": {
    "betterstack": {
      "type": "http",
      "url": "https://mcp.betterstack.com",
      "headers": {
        "X-MCP-Tools-Only": "monitors,monitor,incidents,incident"
      }
    }
  }
}

Useful for giving your agent read-only access, scoping it to a workflow, or trimming the initial context size.

Links

License

MIT. See LICENSE.

About

Better Stack plugin for Cursor: connect Cursor to your Better Stack Incidents and Telemetry data.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages