> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getraya.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getraya.app/_mcp/server.

# Overview

> **Warning**
>
> **Experimental, in beta.** Raya's MCP server is new and may change. For feedback, suggestions or problems, email [support@litwizlabs.ai](mailto:support@litwizlabs.ai).

Raya's MCP server connects your AI assistant (Claude Code, Cursor, or any [Model Context Protocol](https://modelcontextprotocol.io) client) to your Raya voice agents. You work on an agent by asking in plain language:

> "Calls on the collections agent drop after the first question. Find out why, test a fix, and give me the new prompt."

The assistant reads the agent's prompt and its real calls, replays them as **simulated calls**, tests a fix side by side with the current prompt, and hands you the text to apply. A simulated call runs your agent with the same prompt, tools and model as a real call, but nobody is phoned.

## Why use it

#### Find the cause, not a guess

The assistant reads real transcripts and replays the conversation, so you see the turn where the agent goes wrong and the part of the prompt responsible.

#### Test before you change anything

Drafts run only in simulations. Your live agent is never touched; nothing changes until you paste the new text yourself.

#### Prove the fix works

The same scenarios run on the current prompt and the draft, several times each, so you get a score (for example 3/3 against 1/3), not an impression.

#### Stay in control of spend

Before running anything, the assistant estimates the credits, shows you the plan and waits for your go-ahead.

## What it can and can't do

| Can                                                        | Can't                                                         |
| ---------------------------------------------------------- | ------------------------------------------------------------- |
| Read your agents, prompts, tools, knowledge base and calls | Create or change an agent: you apply changes in the dashboard |
| Run simulated calls, replay real ones, test drafts         | Place real phone calls                                        |
| Write the prompt for a new agent and test it               | See full phone numbers (they're masked, e.g. `98•••••210`)    |
| Estimate the cost of a test plan before running it         | Work with a regular API key: it needs an MCP key              |
| Answer common questions about how Raya works               |                                                               |

## How it works

#### Your assistant reads

It lists your agents and calls and reads the prompt, tools and knowledge base of the agent you're working on.

#### It plans and estimates

It writes the scenarios to test, each with a pass condition, and shows you the estimated credits.

#### It simulates

After your go-ahead, it runs each scenario several times on the current prompt and on the draft, playing the caller and answering tool calls with realistic mock results.

#### It reports

You get the scores, the before and after of each changed section, the credits used, and the final text to paste into the agent in the dashboard.

#### [Quickstart](/mcp/quickstart)

Create an MCP key and connect your assistant in two minutes.

#### [Example prompts](/mcp/example-prompts)

What to ask, and the ready-made workflows.