---
title: MCP server
description: Connect Claude Code, Cursor or any MCP client to Erised with a read key, so your AI tool can check an integration and answer questions about your data.
order: 11
---
# MCP server

Erised runs a [Model Context Protocol](https://modelcontextprotocol.io) server at `https://app.erised.run/mcp`. Connect your AI coding tool to it and the tool can check its own integration work ("did my identify arrive?") and answer questions about your site's data. It is **read-only**: nothing can be sent, changed or deleted through it (`validate_event` checks a payload without storing it).

## 1. Create a read key

In the app, **Settings → API keys → Create key**, type **Read (rk_)**. A read key belongs to one site, is shown once, and can be revoked at any time. It cannot send events.

A read key gives the connected tool the same view of the site as the dashboard, including people's emails and event properties. Create one only for tools you trust, and revoke it when you are done.

## 2. Connect your tool

Claude Code:

```bash
claude mcp add --transport http erised https://app.erised.run/mcp \
  --header "Authorization: Bearer rk_live_YOUR_READ_KEY"
```

Cursor (`.cursor/mcp.json`) and other clients that take a JSON config:

```json
{
  "mcpServers": {
    "erised": {
      "url": "https://app.erised.run/mcp",
      "headers": { "Authorization": "Bearer rk_live_YOUR_READ_KEY" }
    }
  }
}
```

Keep the key out of version control: use your tool's user-level config, or an environment variable where it supports one.

## Tools

| Tool | What it answers |
| --- | --- |
| `get_install_status` | Has the site received its first page view, track event and identify (and an error report, when error reporting is on)? A site whose events all come from a server (an app through its backend, or a backend only) is `kind: "server"` and needs no page view |
| `list_recent_events` | The newest events as raw JSON, filtered by type, event name or person (email or user id) |
| `get_event_catalog` | Every event name with count, last time and key-event flag, and the page paths seen |
| `check_identity` | For a user id, email or anonymous id: does a person hold it, is it verified, which browsers are joined, when was the last identify, and what to fix |
| `get_person` | One person's profile: identities, traits, counts, merges, the error issues they hit, and recent events |
| `list_funnels` | The saved funnels and their steps |
| `run_funnel` | A saved funnel over the last 7, 30 or 90 days: people per step, conversion, drop-off, median time |
| `list_issues` | Error issues over 7, 14 or 30 days, by people affected: title, culprit, level, status, events, people |
| `get_issue` | One issue: stack frames of the latest occurrence, releases, events per day, people affected, and what the person did in the 10 minutes before |
| `validate_event` | A dry run of one event or a batch through the real validation: what would be stored, rejected (with each issue) or dropped as a duplicate, and for an error, the scrubbed properties, the grouping and the issue it would join. Nothing is stored |
| `get_docs` | These docs as Markdown: without a topic, the list of pages; with a page slug (`quickstart`, `identity`, `http-api`, `apps`, `errors`, …), that page |

A typical error fix: ask your assistant to call `list_issues`, then `get_issue` on the issue that reached the most people. The frames marked `inApp` point at your code; after the fix ships with a new `release`, `get_issue` shows whether that release still produces it.

Your assistant does not need this website to write an integration: `get_docs` gives it every page, and the same pages are MCP resources (`erised://docs/<slug>`, Markdown) for clients that attach resources.

A typical integration check: after adding the server identify, sign up in your product, then ask your assistant to call `check_identity` with the new account's email. It should report `verified: true` and one joined anonymous id; if not, its hints say what to change.

## Details

- Transport: Streamable HTTP, JSON responses, no session. Protocol versions 2025-03-26, 2025-06-18 and 2025-11-25.
- Every call reads only the site the key belongs to.
- Calls are rate-limited per key. A browser page on another origin is refused.
