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

# Build with AI assistants

> Ask the documentation a question with Ask AI, or connect Claude Code, Cursor or VS Code to the Docs MCP server.

## Summary

This page covers Ask AI and the Docs MCP server that Claude Code, Cursor and VS Code can search.
Both answer from these pages and the API reference only, and neither calls the Rasen API or needs
an API key. It does not
cover calling the Rasen API from your own AI agent; start with the
[Quickstart](/get-started/quickstart) for that.

## Ask AI

Select **Ask AI** at the top of any page and ask in your own words, for example "How do I retry a
publish safely?". The answer links the pages it used. Answers are generated by AI and can be wrong:
check an endpoint in the [API reference](/api-reference/context/get) before you rely on it.

Never paste an API key, a secret value or customer data into a question.

## Connect the Docs MCP server

The Docs MCP server lives at:

```text
https://docs.rasen.ai/_mcp/server
```

It uses the Streamable HTTP transport, needs no sign-in, and offers one read-only tool,
`searchDocs`, which returns the documentation passages that match a question.

#### Claude Code

```bash
claude mcp add --transport http rasen-docs https://docs.rasen.ai/_mcp/server
```

Run `claude mcp list` to confirm that `rasen-docs` is connected.

#### Cursor

Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in one project:

```json
{
  "mcpServers": {
    "rasen-docs": {
      "url": "https://docs.rasen.ai/_mcp/server"
    }
  }
}
```

#### VS Code

Add the server to `.vscode/mcp.json` in your project:

```json
{
  "servers": {
    "rasen-docs": {
      "type": "http",
      "url": "https://docs.rasen.ai/_mcp/server"
    }
  }
}
```

#### Other clients

Add a remote MCP server with the Streamable HTTP transport and the URL above. No headers or
credentials are needed.

Every page also has **Connect to Claude Code** and **Connect to Cursor** in its page actions menu,
which copy or open the same configuration.

## Give a model the pages as Markdown

| Source                           | What it returns                                                       |
| -------------------------------- | --------------------------------------------------------------------- |
| `https://docs.rasen.ai/llms.txt` | An index of every page, with instructions for AI agents               |
| Any page URL followed by `.md`   | That page as clean Markdown, for example `/get-started/quickstart.md` |
| The page actions menu            | **Copy page** as Markdown, or open the page in Claude or ChatGPT      |

The MCP server and Ask AI describe the API as documented. When an operation is specified but not
available yet, they say so; see [API availability](/get-started/api-availability).

## Related

* [Quickstart](/get-started/quickstart)
* [API availability](/get-started/api-availability)
* [API reference](/api-reference/context/get)