# MCP server: connect an AI client to your Audiobly data

Audiobly runs a read-only [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server. Point any MCP-compatible AI client or agent framework at it, and the assistant can look up your events, read reviewed transcripts, search everything that was said, and use your stored analysis, audience intelligence and reports to build its own outputs.

- **Endpoint:** `https://api.audiobly.com/mcp`
- **Transport:** MCP Streamable HTTP. Every request is an HTTP `POST` with a JSON-RPC message; every answer is a single JSON response. The server keeps no session between requests.
- **Access:** your organisation's data only, read-only.

The server returns data that Audiobly has already stored. It never writes, never starts a job, and never runs an AI model on Audiobly's side.

---

## 1. Create an API key

The MCP server accepts **organisation API keys** only. Sign-in tokens from the dashboard are refused.

Create a dedicated key for each AI client, so you can see its use and revoke it on its own. In the dashboard go to **Organisation → API Keys**, or call the API:

```bash
curl -s -X POST https://api.audiobly.com/v1/api-keys \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"name": "AI assistant (MCP)", "scopes": ["read", "asset_view"], "expires_in_days": 90}'
# → 201 { "id": "…", "key": "sk_live_…", "scopes": ["read", "asset_view"], … }
```

| Scope | Needed for |
|---|---|
| `read` | **Required.** A key without it gets `403 FORBIDDEN` from `/mcp`. |
| `asset_view` | The two report tools (`list_reports`, `get_report_download`). Leave it out if the client should not see reports. |

Store the key as a secret in your AI client. It is shown once. Rotate it with `POST /v1/api-keys/{key_id}/rotate`; revoke it with `DELETE /v1/api-keys/{key_id}`.

Send it on every request:

```
Authorization: Bearer sk_live_…
```

| Problem | Answer |
|---|---|
| No `Authorization` header, or an unknown, revoked or expired key | `401 UNAUTHORIZED` |
| A dashboard sign-in token instead of an API key | `401 API_KEY_REQUIRED` |
| A key without the `read` scope | `403 FORBIDDEN` |
| Your organisation is not on the Enterprise plan | `403 PLAN_REQUIRED` |
| Over the request rate | `429 RATE_LIMITED` with `Retry-After` |

Errors use the same shape as the rest of the API: `{"error": {"code", "message", "request_id"}}` with an `X-Request-ID` header.

---

## 2. Connect your client

Most MCP clients take a server URL and request headers. A generic configuration:

```json
{
  "mcpServers": {
    "audiobly": {
      "type": "http",
      "url": "https://api.audiobly.com/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_…"
      }
    }
  }
}
```

The exact field names differ between clients (some call the transport `streamable-http` or ask for "remote MCP server URL" and "custom header"). What matters is: the URL above, the Streamable HTTP transport, and the `Authorization` header.

Clients that only support sign-in through a browser (OAuth) cannot connect yet. One-click sign-in is planned; until then use a client or agent framework that lets you set a header.

### Try it with curl

Every MCP request is a `POST` to `/mcp` with `Accept: application/json, text/event-stream`.

```bash
KEY=sk_live_…
MCP=https://api.audiobly.com/mcp
H=(-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
   -H "Accept: application/json, text/event-stream")

# 1. Handshake
curl -s "$MCP" "${H[@]}" -d '{"jsonrpc":"2.0","id":1,"method":"initialize",
  "params":{"protocolVersion":"2025-06-18","capabilities":{},
            "clientInfo":{"name":"curl","version":"1"}}}'

# 2. List the tools
curl -s "$MCP" "${H[@]}" -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# 3. Call a tool
curl -s "$MCP" "${H[@]}" -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call",
       "params":{"name":"search_transcripts","arguments":{"query":"plant-based pricing","limit":5}}}'
```

A tool's answer is JSON text inside `result.content[0].text`. If a tool cannot answer (for example the event is not in your organisation, or the transcript is not reviewed yet) you get `"isError": true` and a plain sentence explaining why.

---

## 3. Tools

All tools are read-only. Ids come from `list_events` and `get_event`.

| Tool | What it returns |
|---|---|
| `list_events` | Your events, newest first: id, title, status, dates, venue, and counts of sessions, sessions with a transcript, and reviewed transcripts. Filters: text in the title, date range. Up to 100 per call, paged with `offset`. |
| `get_event` | One event: dates, venue, description; the programme of sessions (talks) in order with times, speakers and each session's transcript status; the speaker list (name, job title, company, short bio, sessions); sponsors and exhibitors (name, tier, website, industry, summary). No attendees. |
| `get_transcript` | The transcript of one session, or of the whole event in programme order, as lines of `[time] Speaker: words`. Reviewed and approved transcripts only. Paged: set `max_chars` (1,000 to 60,000, default 20,000) and pass back `next_cursor` until it is `null`. |
| `search_transcripts` | Full-text search over every reviewed and approved transcript (or one event's). Each hit: event, session, speaker, start and end time in seconds, a snippet with the matched words in `**bold**`, and a relevance score. Supports `"quoted phrases"`, `OR` and `-excluded` words; words match by their English stem. |
| `get_analysis` | The stored analysis: topics, themes, named entities, sentiment (overall, per speaker, over time), audience questions, opportunities and risks, for the whole event and per session. |
| `get_audience_intelligence` | Aggregate, company-level audience data: room composition, Room Resonance per session, demand (topics that drew the most reach, sectors no session covered), voice of the room by segment, influence and share of voice. |
| `list_reports` | Reports that already exist for the event, a day, or a session, with their status. Key needs `asset_view` if it is scoped. |
| `get_report_download` | A signed download link, valid for 24 hours, for a report that is ready, plus a plain-text version's link when there is one. Key needs `asset_view` if it is scoped. |
| `get_event_insights` | The event intelligence snapshot the Insights module and event hubs show: headline numbers, sessions, top themes and their timeline, the theme-by-session heatmap, sentiment, debates, opportunities and risks, named companies and technologies, quotes and the day in review. Pass `as_of` to count only sessions that had ended by then. When the event has no snapshot yet, the first call queues its build and answers "building". |
| `get_event_stats` | Numbers for the event: `headline` (sessions, minutes, words, speakers), `qa` (questions asked and answered), `polls`, `engagement` (saves, places, questions, votes) and `listening` (live translation minutes per language). Choose with `sections`; all by default. |
| `get_themes` | Every headline theme with its share, status and sessions, plus the theme-by-session matrix; or, with `theme_key`, one theme in detail by day and session. `approved_only` hides proposed themes. |
| `get_debates` | Where speakers disagreed: each question with its sides, the speakers on each side, a quote and its moment. |
| `search_quotes` | Quotes with speaker, session and moment, filtered by text, theme, speaker or session; up to 500 per call. |
| `get_session_takeaways` | One session's approved takeaways and its quotes. |
| `get_entities` | Companies, products and technologies named on stage, most mentioned first, with the sessions they came up in; with `include_airtime`, speaking time per speaker and company. |
| `get_live_engagement` | One session's audience questions (text, votes, status, answer; never the asker's name) and its polls with their results. |

### What the transcript status means

| Status | Readable through MCP? |
|---|---|
| `published` | Yes — approved, the transcript of record |
| `reviewed` | Yes — checked and corrected by an editor, not yet approved |
| `raw` | No — machine transcript nobody has reviewed yet |
| `none` | No transcript |

`get_event` shows every session's status, so an assistant can tell the user which talks are not available yet. `get_transcript` reports how many unreviewed transcripts it left out.

---

## 4. What the MCP server does not do

These are excluded on purpose:

- **No writes.** It cannot create, change or delete anything. It does not approve, publish or edit transcripts.
- **No AI runs on Audiobly's side.** It never generates a report, never starts an analysis, never re-transcribes, and does not offer the "ask a question" features of the dashboard. Analysis and reports are returned only if they already exist. One exception: when an event has no insights snapshot yet, the first `get_event_insights` call queues the same snapshot build the Insights module would, and answers "building" until it is ready.
- **No attendee personal data.** Attendee and delegate names, email addresses, phone numbers and accounts are never returned. Audience questions come without the asker's name. Audience intelligence is aggregate and company-level, with small groups suppressed. Speakers (your public programme) are included.
- **No unreviewed transcripts.** Raw machine transcripts are neither returned nor searched.
- **No other organisation's data.** The key decides the organisation; every tool is limited to it.

---

## 5. Costs and limits

- **Cost:** MCP requests are ordinary read requests. Nothing on Audiobly's side runs an AI model, so using the MCP server adds no AI usage to your account. Your own AI client's usage is billed by the provider you use for it.
- **Rate limit:** each MCP request counts as one API request against your organisation's Enterprise rate (see [Rate limits and plans](/developers/api/rate-limits.md)). A tool call that reads several things behind the scenes still counts once. Responses carry `X-RateLimit-Limit` and `X-RateLimit-Remaining`.
- **Size:** transcripts are paged with `max_chars`; transcript search returns at most 50 hits and quote search at most 500 per call; `get_event` shortens long bios and descriptions.
- **Plan:** API keys, and so the MCP server, come with the Enterprise plan, which includes every module. Every tool answers for every event; there are no module tiers. If the organisation leaves Enterprise, its keys stop working (`403 PLAN_REQUIRED`).
- **Usage log:** every tool call is logged with your organisation, the tool name and its arguments, so we can answer support questions about it.

---

## 6. Prefer the REST API?

Everything the MCP server returns comes from the ordinary REST API, which any platform can call directly with the same key. The transcript search behind `search_transcripts` is available as:

```bash
curl -s "https://api.audiobly.com/v1/transcripts/search?q=plant-based%20pricing&limit=20" \
  -H "Authorization: Bearer $KEY"
```

```json
{
  "query": "plant-based pricing",
  "total": 3, "limit": 20, "offset": 0,
  "data": [
    {
      "event_id": "…", "event_title": "…", "event_date": "2026-09-24T09:00:00Z",
      "session_id": "…", "session_title": "…", "session_starts_at": "…",
      "transcript_version": 2, "editorial_status": "published",
      "utterance_index": 41, "speaker": "…", "start": 812.4, "end": 829.0,
      "snippet": "… **plant-based** ranges are now **priced** at parity …", "rank": 0.1
    }
  ]
}
```

Parameters: `q` (required, 2 to 200 characters), `event_id` (optional), `session_id` (optional, one session only), `limit` (1 to 100, default 20), `offset`. Needs the `read` scope. Every word must occur in the utterance (`OR` for alternatives); for a delegate's free-text question, [Ask the event](/developers/guides/ask-the-event.md) in `moments` mode ranks moments by how well they match instead.

The event list used by `list_events` also takes `q`, `date_from`, `date_to` and `include_counts=true`: `GET /v1/events?q=summit&date_from=2026-01-01&include_counts=true`. See [Fetch a complete event via the API](/developers/guides/fetch-a-complete-event.md) for everything else.
