Connecting
Point your MCP client at the Streamable HTTP endpoint:Available Tools
The Ragen MCP Server exposes two tools today.ragen_chat — Send a message to an assistant
ragen_chat — Send a message to an assistant
Send a message to a Ragen assistant and receive a grounded answer drawn from its knowledge base. This is the MCP equivalent of ResponseOn success:On failure:
POST /v1/chat.Parametersstring
required
The ID of the Ragen assistant (project) to send the message to. Use
ragen_list_assistants to discover available IDs.string
required
The message to send. Must be at least one character.
string
Optional additional context to include alongside the message — for example, the content of the page the user is currently viewing. Helps the assistant give more relevant answers.
string
OpenAI-style reasoning effort level:
low, medium, or high. Only honored by reasoning-capable models; silently ignored otherwise.ragen_chat is always non-streaming. MCP tool calls return a single result, not a Server-Sent Events stream. If you need token-by-token streaming, call the Chat API directly with stream: true.ragen_list_assistants — List available assistants
ragen_list_assistants — List available assistants
List all assistants available to your API key’s organization. Use this to discover assistant IDs before calling On failure:Scoping is automatic: results are limited to assistants owned by the API key’s organization. There is no separate access configuration required.
ragen_chat.ParametersThis tool takes no parameters.ResponseOn success:Configuring Claude Desktop
To add Ragen to Claude Desktop, open yourclaude_desktop_config.json file and add a ragen entry under mcpServers. Claude Desktop supports Streamable HTTP MCP servers via a proxy command; use npx with the @modelcontextprotocol/server-fetch helper (or any HTTP-to-stdio bridge you prefer):
claude_desktop_config.json
https://your-ragen-instance.example.com/mcp with your actual $RAGEN_MCP_URL/mcp value.
Step-by-Step Usage Example
Once your MCP client is connected, follow these steps to query your knowledge base:1
List your assistants
Call
ragen_list_assistants with no parameters to see which assistants are available to your API key.2
Pick an assistant ID
Identify the
id of the assistant whose knowledge base you want to query. In the example above, you’d use "asst-abc123" to reach the Support Bot.3
Ask your question with ragen_chat
Call
ragen_chat with your chosen assistant_id and the question you want answered.Current Scope
Today the Ragen MCP Server exposes two tools:
ragen_chat and ragen_list_assistants. File upload and full thread history via MCP are on the roadmap — they follow the same pattern and will be added as additional tools in a future release.Chat API Quickstart
Use the TypeScript SDK or REST API directly for streaming and advanced control.
TypeScript SDK Reference
Full method reference for
@webamigos/ragen-sdk-ts, including file upload and error handling.