Connecting your client
Point your MCP client at the Streamable HTTP endpoint:Authorization header, or one that isn’t Bearer-prefixed, is rejected with 401 before any tool call can proceed. Ragen validates the key on each tool call — a deactivated or malformed key fails exactly as it would on POST /v1/chat.
Available tools
ragen_chat
Send a message to a Ragen assistant and receive its answer.
string
required
The ID of the assistant (project) to send the message to. Use
ragen_list_assistants to discover available IDs.string
required
The message to send to the assistant.
string
Additional context to include alongside the message — for example, the content of the page the caller is currently viewing.
string
OpenAI-style reasoning effort level:
"low", "medium", or "high". Only honoured by reasoning-capable models; ignored otherwise.ragen_chat is always non-streaming. An MCP tool call returns a single result, so there is no mechanism to forward a partial answer token-by-token. If you need streaming responses, call the Chat API directly with stream: true.ragen_list_assistants
List all assistants available to your API key’s organisation. Use this to find an assistant_id before calling ragen_chat. This tool takes no parameters.
Success response:
GET /v1/assistants endpoint as the REST API, which already returns only the assistants belonging to your API key’s organisation. There is no additional access configuration needed.
Configuring Claude Desktop
Add the following to your Claude Desktop configuration file to connect to your Ragen MCP Server:claude_desktop_config.json
https://your-ragen-instance.example.com with your RAGEN_MCP_URL value and YOUR_API_KEY with a valid Ragen API key.
Configuring Cursor
In Cursor’s MCP settings, add a new server entry with:- Transport: Streamable HTTP
- URL:
$RAGEN_MCP_URL/mcp - Authorization header:
Bearer YOUR_API_KEY
.cursor/mcp.json
Custom agents
For custom agents or any MCP-compatible SDK, use Streamable HTTP transport and supply theAuthorization: Bearer header on connection. All standard MCP tool-call patterns apply — discover tools with the standard tools/list method and invoke them with tools/call.
ragen_chat
Send a question to a specific assistant and receive a complete answer in one call.
ragen_list_assistants
Discover available assistants scoped to your API key’s organisation.