MCP Server
Replay exposes an MCP (Model Context Protocol) server that lets AI agents interact with your Replay workspace. Use it from Claude Desktop, Cursor, or any MCP-compatible client to list, view, and create roleplays through natural language.Available Tools
| Tool | Description |
|---|---|
list_roleplays | List all roleplays in your workspace. Optionally filter by live/draft status. |
get_roleplay | Get detailed information about a specific roleplay including persona, scorecard, and configuration. |
create_roleplay | Create a new roleplay with a title, customer persona, and scorecard. Supports referencing existing resources by ID or creating them inline. |
Authentication
The MCP server uses OAuth 2.1 for authentication. When you connect an MCP client, it automatically:- Discovers the OAuth server via
/.well-known/oauth-protected-resource - Redirects you to log in to your Replay account
- Shows a consent screen asking you to approve access
- Exchanges the authorization for an access token
Connecting from Claude Desktop
- Open Claude Desktop
- Go to Settings → Connectors
- Click Add Custom Connector
- Enter:
- Name:
Replay - URL:
https://app.replay.sale/mcp/mcp
- Name:
- Click Save
- “List my roleplays in Replay”
- “Show me the details of my Cold Call roleplay”
- “Create a new roleplay for objection handling practice”
Connecting from Cursor
- Open Cursor Settings (Cmd+, on macOS)
- Navigate to MCP in the sidebar
- Click Add new MCP server
- Enter:
- Name:
Replay - Type:
URL (Server-Sent Events) - URL:
https://app.replay.sale/mcp/mcp
- Name:
- Click Save
Connecting from Claude Code
Run this command in your terminal:.mcp.json:
Testing with MCP Inspector
MCP Inspector is a developer tool for testing MCP servers interactively.- Set the URL to
https://app.replay.sale/mcp/mcp - Set Transport to
Streamable HTTP - Click Connect
- Complete the OAuth login flow when prompted
- Use the Tools tab to call
list_roleplays,get_roleplay, orcreate_roleplay
Tool Reference
list_roleplays
Returns all roleplays in your workspace. Parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
is_live | boolean | No | Filter by live/draft status. Omit to return all. |
get_roleplay
Get full details for a specific roleplay. Parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
roleplay_id | string (UUID) | Yes | ID of the roleplay to retrieve. |
create_roleplay
Create a new roleplay. You can reference existing personas and scorecards by ID, or create them inline. Parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title of the roleplay. |
customer_persona | object | Yes | { id: "..." } to reference existing, or { name, tts_provider, default_voice_id } to create inline. |
scorecard | object | Yes | { id: "..." } to reference existing, or { title, sections: [...] } to create inline. |
passing_score | number | No | Minimum passing score (0-100). Defaults to 70. |
language | string | No | Language code: en, es, fr-CA, pt-BR, cs. Defaults to en. |
instructions | string | No | Instructions for the AI persona during conversation. |
objective | string | No | Objective description shown to the user. |
Troubleshooting
OAuth login loop or redirect error
OAuth login loop or redirect error
Make sure your Replay account is active and you can log in at app.replay.sale. If you’re redirected back to the consent page repeatedly, try clearing your browser cookies for
app.replay.sale and reconnecting.401 Unauthorized after connecting
401 Unauthorized after connecting
Tools not showing up
Tools not showing up
Verify the URL is exactly
https://app.replay.sale/mcp/mcp (note the double /mcp). The first segment is the route path, the second is the MCP transport identifier.create_roleplay validation errors
create_roleplay validation errors
Ensure
customer_persona and scorecard are provided. When creating inline, tts_provider must be one of: Cartesia, Azure, OpenAI, ElevenLabs, Rime, Google, AzureCustomNeuralVoice. Scorecard sections need at least 1 criterion each (max 8), and at least 1 section (max 4).
