Ristria
Token-efficient, precise web search for AI agents: ranked passages with source and date instead of whole pages (85% fewer tokens). 1,500 free searches a month.
Hosted MCP Server
npx add-mcp 'https://api.ristria.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Web search for AI agents: the passage that answers, not the whole page.
Ristria is a web search API and MCP server for AI agents. It sends your agent the passages that answer the query instead of whole pages, each with its source URL, outdated versions flagged in version_meta and every citation pinned by a SHA-256 evidence_bundle_hash.
−85% tokens fewer than the full pages of the same results, benchmark median, 30 Oct 2026
Passages, not pages.
On our benchmark of 30 October 2026 the agent read 85% fewer tokens than the full pages of the same results. The rest never reaches your model.
Token budget, benchmark median
Full pages100%
Sent to model15%
−85% tokens compared with the full pages of the same results.
curl -X POST https://api.ristria.com/v1/search \
-H "Authorization: Bearer rs_live_YOUR_API_KEY" \
-d '{
"query": "Python asyncio TaskGroup exception handling documentation",
"include_highlights": true,
"max_tokens": 600
}'
POST /v1/searchLive demo · 1 credit
Response Time
8 ms
Shared SerpCache
HIT
Packed Tokens
342 / 600
Example response. Press Execute to run it live, no key needed.
- #1Coroutines and Tasks — Python 3.14 documentation 0.7225 https://docs.python.org/3/library/asyncio-task.html The first time any of the tasks belonging to the group fails with an exception other than asyncio.CancelledError, the remaining tasks are cancelled.
Works where your agent already runs
- Claude CodeMCP client
- Hosted MCPRemote HTTP
- CursorMCP client
- REST APIAny language
- OpenCodeMCP client
- CLIZero prompt tokens
- WindsurfMCP client
- Any agentOver HTTPS
Fast when we know, thorough when we don't.
Every search starts in the hosted index and goes to the live web only when it has to. Either way, your agent gets passages back.
Your agent asksOne call
Over MCP, the zero-token CLI or REST, with a token budget.
Answer already indexed8 ms
p50 when the answer is in the hosted index.
Answer on the live web~6 s
Typical when Ristria fetches and reads the pages for you; up to about 10 s (p95).
What comes back−85% tokens
Passages instead of the full pages of the same results, benchmark median.
Every bar is one percent of the full pages.
Switch between the full pages and what Ristria sends. The rest never reaches your model, so you don't pay for it.
Full pages
100%
Sent to model
15%
Saved
−85%
Benchmark median, 30 October 2026, tokens counted with the o200k_base tokenizer.
95.4%
right when it answers
90.2%
right on 1,000 public questions
12.9%
the same model without search
SimpleQA Verified, a model answering from one Ristria search. How we measured
Three endpoints. One key.
Web search, passage ranking and extraction behind one hosted API key. Every call costs 1 credit.
- Returns ranked passages packed to your
max_tokens - Latency p50 8 ms from the index, about 6 s live (p95 10 s)
- Cost 1 credit, passage selection and Version Guard included
POST /v1/search
curl -X POST https://api.ristria.com/v1/search \
-H "Authorization: Bearer rs_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Python 3.14 asyncio TaskGroup exception handling",
"category": "general",
"include_highlights": true,
"max_tokens": 600
}'
{
"query": "Python 3.14 asyncio TaskGroup exception handling",
"total": 4,
"cache_hit": true,
"used_tokens": 342,
"response_time": 0.008,
"evidence_bundle_hash": "ev_9f8a4c2d1e7b03a5",
"context_compression": {
"raw_tokens": 360,
"compressed_tokens": 342,
"tokens_saved": 18,
"tokens_saved_pct": 5.0,
"duplicate_chunks_removed": 1
},
"results": [
{
"position": 1,
"title": "Coroutines and Tasks — Python 3.14 documentation",
"url": "https://docs.python.org/3/library/asyncio-task.html",
"score": 0.885,
"content_hash": "4a19c8e0b21f",
"version_meta": {
"detected_version": "3.14",
"query_version": "3.14",
"version_match": "exact",
"is_deprecated_warning": false
},
"highlights": [
"The first time any of the tasks belonging to the group fails with an exception other than asyncio.CancelledError, the remaining tasks are cancelled."
]
}
],
"usage": { "credits_used": 1, "remaining_credits": 2499, "plan": "free" }
}
Agent onboarding
Let your agent install it.
Pick your agent, copy the prompt, paste it in. The agent asks for your key, sets up Ristria and runs a test search.
Rather do it by hand? The setup for every client and the REST API are in the docs.
Prompt for Claude Code
Install Ristria web search for Claude Code. Follow the guide at https://ristria.com/agent-onboarding/SKILL.md: 1. Ask me for my Ristria API key. Don't write it into any file that gets committed. 2. Add the Ristria MCP server to Claude Code, using the setup the guide gives for Claude Code. 3. Run one test search and tell me whether it worked.
Four layers. One endpoint.
Every request passes through four deterministic layers. Each one writes a field you can read in the response.
Four layers stacked like sheets: L0 index at the bottom, then L1 passage selection, L2 version guard, L3 evidence on top. L0 L1 L2 L3
- L3Deterministic evidence pinning & conflict detectionev_sha256 pinned
Pins every response with a deterministic SHA-256 evidence_bundle_hash and surfaces numeric or temporal disagreements across sources.
evidence_bundle_hash: ev_9f8a4c2d1e7b03a5 - L2SDK version & deprecation guardversion_match on every result
Extracts software versions from URLs and headings, flags @deprecated notices, and automatically demotes mismatched or obsolete documentation versions.
version_meta - L1Passage selection (BM25) and dedup (64-bit SimHash)−85% tokens vs full pages
Sends the passages that match the query instead of whole pages, and drops passages repeated across results. Benchmark median, 30 October 2026.
15% of the full-page tokens reach the model
context_compression - L0Self-growing search indexp50 7.8 ms from the index
Built from the pages agents read and checked again with HTTP 304 revalidation before serving. It notices when the prices, versions or dates on a page change, and every result carries its published_date when known. After the 28 October rebuild it answered about half of the benchmark queries with no external call.
cache_hit · response_time · published_date
Example request: Python 3.14 asyncio TaskGroup exception handling
Built for enterprise agent fleets
Security, governance & production safeguards
PER-HOP DNS ANTI-SSRF GUARD
Zero Internal Network Exposure
Every URL and redirect hop (up to 5 hops) is resolved via DNS and verified against private IPv4/IPv6 ranges (127.0.0.0/8, 10.0.0.0/8, 169.254.0.0/16, ::1) before any socket opens.
SHA-256 KEY HASHING & ZERO RETENTION
Cryptographic Key Metering
API keys are hashed immediately with SHA-256 in CreditMeter and never stored in plaintext. Queries are never used to train models.
MCP CONNECTOR + MANAGED CLOUD
Standard Interfaces, No Lock-In
One API key works across MCP, REST and the zero-token CLI, so moving in or out of Ristria is a one-line configuration change.
1,500 credits. Every month.
One hosted API key for Claude Code, Cursor, OpenCode and Windsurf over MCP, for the zero-token CLI, and for plain REST.
# calls the hosted API at api.ristria.com
export RISTRIA_API_KEY="rs_live_YOUR_API_KEY"
export RISTRIA_API_URL="https://api.ristria.com"
npx -y -p @ristria/mcp ristria search \
"Python asyncio TaskGroup exception handling" \
--limit 5 --max-tokens 600