# MCP

Query your real user monitoring data from AI assistants like Claude Code, Cursor, or Claude through the Better Stack MCP server.

## Set up the MCP server

Follow the [MCP server guide](https://betterstack.com/docs/getting-started/integrations/mcp/) to connect the Better Stack MCP server to your AI assistant. One setup covers all Better Stack products, including real user monitoring.

## What you can do

Once connected, your AI assistant can work with your real user monitoring data:

- **List applications** and their configuration.
- **Query web events and session replays** with ClickHouse SQL, e.g. find the replays of a specific user, list sessions with errors, or aggregate page views.
- **Chart the results** and link you directly to sessions and replays in Better Stack.

Ask questions like:

```
[label Example prompts]
Which pages had the most rage clicks this week?
Find session replays of user jane@example.com from yesterday.
What's the conversion from /pricing to signup in the last 7 days?
```

## Need help?

We're here for you! Let us know at [hello@betterstack.com](mailto:hello@betterstack.com) and we'll be happy to help.
