Set up your agent's retrieval in 5 minutes with Claix Retrieve
Your agent does not need the whole schema or database credentials. Define what it can query and connect it over MCP, REST or A2A.
Claix · Updated November 2026. Product: Claix Retrieve (https://www.claix.dev/). MCP: https://claix.dev/mcp. Docs: https://www.claix.dev/documentation/mcp.
Your agent already talks, follows instructions and uses tools. What it still needs is the data that matters: orders, bookings, inventory, customers, or anything else that lives in your database. Claix Retrieve puts that behind a controlled retrieval layer. You connect the database, decide what each agent may query, and integrate it through MCP, REST or A2A. Routes and agents are configured in a visual UI. The agent does not need your whole schema or database credentials.
| Piece | What you configure in Claix |
|---|---|
| Data source | A SQL connection with a read-only role |
| Schema context | A Data Map of tables, descriptions and relationships |
| Access perimeter | Routes with allowed tables and columns |
| Agent behaviour | Description, instructions and routes |
| Response | Raw rows or typed values |
| Integration | MCP, REST or A2A |
| Oversight | Traces of queries and results |
What agentic RAG is, and where SQL retrieval fits
RAG means a model uses information retrieved from an external source. It does not require documents, embeddings or a vector database. When an agent chooses to call a tool to fetch information, the retrieval is agentic. That tool can search documents, query an index, or run a controlled SQL query. “Agentic” describes how retrieval is triggered. “Vector” describes one way to find results. They are not synonyms.
Claix Retrieve is a tool for relational data. If the agent needs tomorrow's bookings or which orders are still pending, it can ask the live database instead of a copied index. Claix does not require copying your tables into a vector store. A precise name is controlled SQL retrieval for AI agents. It can sit inside an agentic RAG architecture without an embeddings pipeline.
When to use Claix Retrieve
| Agent need | Example question | Useful answer |
|---|---|---|
| Look up a status | What is the status of order 4821? | string |
| Get a count | How many bookings are confirmed? | int |
| Make a decision | Are there pending orders? | boolean |
| Work with structured data | Which orders match these conditions? | json or rows |
| Get a date | What is the expected delivery date? | date |
| Get several values | Which ids match the filter? | array:int |
Typed formats include strings, integers, booleans, dates, timestamps, JSON and some lists. In raw mode Claix returns the query rows. For semantic search over large text collections, a vector index can still be the right tool. For statuses, amounts, dates, counts and current SQL records, direct retrieval can skip an extra index.
What you need first
A Claix account, an API key, and a read-only database connection. Pick one concrete question, such as “How many orders are confirmed?”. Claix documents SQL databases including Postgres, MySQL, MariaDB and Postgres-compatible setups such as Supabase.
Step 1. Connect the database and review the Data Map
Claix drafts a Data Map of tables, descriptions and relationships for you to review. A column named status might mean payment, shipping or an internal check. The connection uses a read-only role. Retrieve is built to query data, not to run writes.
Step 2. Create a route with one job
A route is a retrieval capability: the tables and columns it may use, plus a short guide with your vocabulary and rules. A support route and an internal analytics route can share a database without exposing the same columns.
| Route part | Example |
|---|---|
| Name | Order status |
| Purpose | Operational questions about orders |
| Allowed table | orders |
| Allowed columns | id, status, estimated_delivery_date |
| Vocabulary | What each status means |
| Interpretation rule | Cancelled orders are not active |
Step 3. Create the agent and choose the response
| Mode | What comes back | When to use it |
|---|---|---|
| Raw | Query rows and a truncation flag | When your app works with the records |
| Reasoned | A value in the format you asked for | When you need a number, boolean, date or other typed answer |
In reasoned mode every question must include the required format. If the data is missing or the type is not safe to produce, the documented result can be null.
Step 4. Connect Claix over MCP
The Claix MCP server is at https://claix.dev/mcp. The documented retrieval tool is claix.retrieve.ask. A Cursor-style config:
{
"mcpServers": {
"claix": {
"url": "https://claix.dev/mcp",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}Keep the API key in the client's secret store. MCP is the connection. Access control still depends on the database role, the routes and the agent.
Step 5. Ask once and read the trace
curl -X POST "https://claix.dev/retrieve/order-support" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"questions":[{"question":"How many orders are confirmed?","format":"int"}]}'Replace order-support with an active agent slug that has a published route. The response includes the questions, the results and a log_id. You can send up to five questions per request. Also try questions the route should not be able to answer.
Why this setup is low-code
| Task | Build it yourself | With Claix Retrieve |
|---|---|---|
| Represent the schema | Design how tables and relationships are described | Review and edit the Data Map |
| Define access | Implement your own policy | Configure routes and allowed columns |
| Prepare queries | Wire generation and validation | Claix prepares and validates read queries |
| Format answers | Design outputs and type checks | Choose rows or typed answers |
| Connect tools | Build each integration | Use MCP, REST or A2A |
| Review requests | Build a retrieval log | Read Claix traces |
Production apps still need auth, secrets and error handling. What you stop building is the retrieval layer itself. Before go-live, check ambiguous questions, empty results and requests outside the route. If you use your own model key, test it in the Sandbox. Table access is not a substitute for per-user or per-tenant authorization.
Frequently asked questions
- Do I need a vector database to use Claix?
- No. Claix Retrieve queries SQL where it already lives and does not require a vector index over your tables.
- Do I have to write SQL to configure the agent?
- The usual setup is a connection, routes and business instructions. Claix prepares the read queries from the agent's questions and validates them before they run.
- Can I use Claix with the agent I already have?
- Yes. Claix is a retrieval layer, not a framework you have to rebuild around. Call it over REST, MCP or A2A.
- How is this different from a generic database MCP server?
- MCP connects a client to tools. Claix adds per-agent routes, allowed tables and columns, query validation, typed answers and traces.
- Are my tables copied somewhere else?
- Claix states that it does not copy your data into a vector store or build a vector index over it. Queries run on your database.
- Can Retrieve update rows?
- No. Retrieve is read-only. For proposed writes, Claix Guard returns allow or deny before your own code executes the statement.
Start with one question
Pick one useful question, connect the database with a read-only role and create a small route. When that query works and you can read its trace, widen the perimeter only if the use case needs it. Start at https://www.claix.dev/ and read the MCP docs at https://www.claix.dev/documentation/mcp.
You might also like…
Guide · Guard
Set up your agent's first SQL guardrails in 5 minutes
Security · Agents
How to let an AI agent query your Postgres database safely
Security · Postgres
Read-only Postgres role for AI agents: step-by-step setup
Comparison · Security
Best Ways to Give AI Agents Safe Database Access in 2026 (Compared)