> 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.

# Quickstart

> **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).

#### Create an MCP key

In the Raya dashboard, open **Raya API** and click **Create MCP Key**. Give it a name (for example the person or machine using it) and copy the key: it starts with `raya_mcp_` and is shown only once.

MCP keys are listed in the **Keys** table with the type **MCP**, and can be revoked there. A team can have up to 10 active MCP keys.

> **Note**
>
> MCP keys are separate from your API keys. They only work on the MCP server, and your existing API keys and integrations are not affected.

#### Add Raya to your assistant

The server is at `https://mcp-beta.getraya.app/mcp` (MCP over streamable HTTP). Send your key in the `X-API-Key` header.

#### Claude Code

```bash
claude mcp add --transport http raya https://mcp-beta.getraya.app/mcp --header "X-API-Key: raya_mcp_..."
```

#### Cursor

Add this to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "raya": {
      "url": "https://mcp-beta.getraya.app/mcp",
      "headers": { "X-API-Key": "raya_mcp_..." }
    }
  }
}
```

#### Other clients

Any MCP client that supports remote servers over HTTP with a custom header works. Use the URL `https://mcp-beta.getraya.app/mcp` and the header `X-API-Key: raya_mcp_...`.

> **Warning**
>
> Treat the key like a password: anyone with it can read your agents and calls and run simulations on your credits. Don't commit it to a repository.

#### Check it's connected

In Claude Code, run `/mcp`: **raya** should show as connected. Then ask:

> "List my Raya agents."

Your assistant should list your team's agents.

#### Ask for something real

Pick an agent and try one of the [example prompts](/mcp/example-prompts).

## Writing integration code? Add the docs server too

If your assistant is writing code against the Raya APIs (creating batches, updating agents, passing `agent_args`), connect the Raya docs as well. It lets the assistant search these docs and read the API reference while it codes, so it uses the real endpoints and fields. It needs no key, and it's separate from the MCP key above.

#### Claude Code

```bash
claude mcp add --transport http raya-docs https://docs.getraya.app/_mcp/server
```

#### Cursor

Add it next to `raya` in your `mcp.json`:

```json
{
  "mcpServers": {
    "raya-docs": {
      "url": "https://docs.getraya.app/_mcp/server"
    }
  }
}
```

#### Other clients

Add a remote MCP server with the URL `https://docs.getraya.app/_mcp/server`. Assistants without MCP can read [docs.getraya.app/llms.txt](https://docs.getraya.app/llms.txt), an index of every page.

| Server                                       | Use it to                                                      | Key          |
| -------------------------------------------- | -------------------------------------------------------------- | ------------ |
| `raya` (`mcp-beta.getraya.app/mcp`)          | Work on your agents: read calls, run simulations, test prompts | Your MCP key |
| `raya-docs` (`docs.getraya.app/_mcp/server`) | Look up the docs and API reference while writing code          | None         |

## What your assistant sees

The server gives your assistant:

* **Tools** to read agents, calls and the knowledge base, estimate costs, and run simulated calls. See the [reference](/mcp/reference).
* **Ready-made workflows** (MCP prompts) for the main jobs, each carrying Raya's prompt-writing guidelines. See [example prompts](/mcp/example-prompts#ready-made-workflows).
* **Instructions** on how to work safely: estimate before running, test on the same scenarios, never change the live agent, and report the credits used.