Docs
Connect Ristria to your agent.
Ristria is a search and extraction API for AI agents. One key works for the MCP connector, the CLI and the REST API. The connector forwards each call to the hosted service: nothing to host on your machine.
20 MCP clients.
Set RISTRIA_API_KEY and add the server to your client. Most clients read the same mcpServers config; the others have their own format, below.
| Client | Where the config goes | Config |
|---|---|---|
| Claude Code | claude mcp add (terminal) | Claude Code |
| Cursor | ~/.cursor/mcp.json, or .cursor/mcp.json per project | mcpServers |
| Claude DesktopRestart Claude Desktop after saving. | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows) | mcpServers |
| OpenCode | ~/.config/opencode/opencode.json, or opencode.json in the project root | OpenCode |
| Devin Desktop (formerly Windsurf)Windsurf became Devin Desktop on 2026-06-02. | ~/.config/devin/mcp_config.json (macOS, Linux), %APPDATA%\devin\mcp_config.json (Windows), .devin/mcp_config.json per project | mcpServers |
| VS Code (GitHub Copilot) | .vscode/mcp.json | VS Code (GitHub Copilot) |
| GitHub Copilot CLI | ~/.copilot/mcp-config.json, or copilot mcp add | GitHub Copilot CLI |
| Zed | ~/.config/zed/settings.json | Zed |
| Cline | MCP Servers → Configure → Configure MCP Servers (cline_mcp_settings.json); CLI: ~/.cline/data/settings/cline_mcp_settings.json | mcpServers |
| Continue | .continue/mcpServers/ristria.yaml | Continue |
| OpenAI Codex CLI | ~/.codex/config.toml, or codex mcp add | OpenAI Codex CLI |
| Gemini CLI | ~/.gemini/settings.json, or .gemini/settings.json per project | mcpServers |
| Antigravity CLI | ~/.gemini/config/mcp_config.json, or .agents/mcp_config.json per workspace | mcpServers |
| Goose | ~/.config/goose/config.yaml (macOS, Linux), %APPDATA%\Block\goose\config\config.yaml (Windows) | Goose |
| Kiro (IDE and CLI, formerly Amazon Q Developer CLI) | ~/.kiro/settings/mcp.json, or .kiro/settings/mcp.json per workspace | mcpServers |
| JetBrains Junie | ~/.junie/mcp/mcp.json, or .junie/mcp/mcp.json per project | mcpServers |
| JetBrains AI AssistantIts docs show command and args only. If the key is not picked up, add Ristria to Claude Desktop and use Import from Claude. | Settings | Tools | AI Assistant | Model Context Protocol (MCP) → Add → JSON configuration | mcpServers |
| LM Studio (0.3.17+) | Program tab → Install → Edit mcp.json | mcpServers |
| Warp | ~/.warp/.mcp.json, .warp/.mcp.json per project, or Settings → Agents → MCP servers | mcpServers |
| Amp | ~/.config/amp/settings.json, or .amp/settings.json per workspace | Amp |
Checked against each client's own documentation on 2026-10-19.
Shared mcpServers config
Cursor, Claude Desktop, Devin Desktop, Cline, Gemini CLI, Antigravity CLI, Kiro, Junie, JetBrains AI Assistant, LM Studio, Warp
{
"mcpServers": {
"ristria": {
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com"
}
}
}
}If the file already has an mcpServers object (or other settings, as in Gemini CLI), add the ristria entry to it instead of replacing the file.
Claude Code
terminal
claude mcp add ristria \
-e RISTRIA_API_KEY=rs_free_YOUR_API_KEY \
-e RISTRIA_API_URL=https://api.ristria.com \
-- npx -y @ristria/mcpAdds the server to the current project for you only (local scope). Pass --scope user to use it in every project.
OpenCode
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ristria": {
"type": "local",
"command": ["npx", "-y", "@ristria/mcp"],
"enabled": true,
"environment": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com"
}
}
}
}OpenCode uses its own mcp key, not mcpServers.
VS Code (GitHub Copilot)
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "ristria-api-key",
"description": "Ristria API key",
"password": true
}
],
"servers": {
"ristria": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "${input:ristria-api-key}",
"RISTRIA_API_URL": "https://api.ristria.com"
}
}
}
}VS Code uses servers and needs "type": "stdio". The input prompts for the key once, so it never sits in the file.
GitHub Copilot CLI
~/.copilot/mcp-config.json
{
"mcpServers": {
"ristria": {
"type": "local",
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com"
},
"tools": ["*"]
}
}
}Or from the terminal:
copilot mcp add ristria --env RISTRIA_API_KEY=rs_free_YOUR_API_KEY --env RISTRIA_API_URL=https://api.ristria.com -- npx -y @ristria/mcpZed
~/.config/zed/settings.json
{
"context_servers": {
"ristria": {
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com"
}
}
}
}Zed uses context_servers. Merge it into your existing settings.json.
OpenAI Codex CLI
~/.codex/config.toml
[mcp_servers.ristria]
command = "npx"
args = ["-y", "@ristria/mcp"]
[mcp_servers.ristria.env]
RISTRIA_API_KEY = "rs_free_YOUR_API_KEY"
RISTRIA_API_URL = "https://api.ristria.com"Or from the terminal:
codex mcp add ristria --env RISTRIA_API_KEY=rs_free_YOUR_API_KEY --env RISTRIA_API_URL=https://api.ristria.com -- npx -y @ristria/mcpContinue
.continue/mcpServers/ristria.yaml
name: Ristria
version: 0.0.1
schema: v1
mcpServers:
- name: ristria
type: stdio
command: npx
args:
- "-y"
- "@ristria/mcp"
env:
RISTRIA_API_KEY: rs_free_YOUR_API_KEY
RISTRIA_API_URL: https://api.ristria.comKeep the quotes around "@ristria/mcp": a YAML value cannot start with @.
Goose
~/.config/goose/config.yaml
extensions:
ristria:
name: ristria
cmd: npx
args: ["-y", "@ristria/mcp"]
envs:
RISTRIA_API_KEY: rs_free_YOUR_API_KEY
RISTRIA_API_URL: https://api.ristria.com
enabled: true
type: stdio
timeout: 300Goose names the fields cmd and envs. goose configure → Add Extension → Command-line Extension does the same interactively.
Amp
~/.config/amp/settings.json
{
"amp.mcpServers": {
"ristria": {
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com"
}
}
}
}Amp uses the flat key amp.mcpServers.
Agent frameworks.
Each framework starts npx -y @ristria/mcp over stdio and gives your agent the 12 Ristria tools. In the official MCP SDKs for Python and TypeScript the env values are added to the default environment, which includes PATH, so npx is still found.
OpenAI Agents SDK
python
from agents import Agent
from agents.mcp import MCPServerStdio
async with MCPServerStdio(
name="ristria",
params={
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com",
},
},
) as server:
agent = Agent(name="Assistant", mcp_servers=[server])LangChain / LangGraph
python · langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient(
{
"ristria": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@ristria/mcp"],
"env": {
"RISTRIA_API_KEY": "rs_free_YOUR_API_KEY",
"RISTRIA_API_URL": "https://api.ristria.com",
},
},
}
)
tools = await client.get_tools()langchain-mcp-adapters is no longer maintained; LangChain points new projects to langchain[mcp].
Mastra
typescript · @mastra/mcp
import { MCPClient } from '@mastra/mcp'
const mcp = new MCPClient({
servers: {
ristria: {
command: 'npx',
args: ['-y', '@ristria/mcp'],
env: {
RISTRIA_API_KEY: 'rs_free_YOUR_API_KEY',
RISTRIA_API_URL: 'https://api.ristria.com',
},
},
},
})
const tools = await mcp.listTools()Vercel AI SDK
typescript · @ai-sdk/mcp
import { createMCPClient } from '@ai-sdk/mcp'
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'
const mcpClient = await createMCPClient({
transport: new StdioClientTransport({
command: 'npx',
args: ['-y', '@ristria/mcp'],
env: {
RISTRIA_API_KEY: 'rs_free_YOUR_API_KEY',
RISTRIA_API_URL: 'https://api.ristria.com',
},
}),
})
const tools = await mcpClient.tools()The CLI.
Coding agents that work from a shell can call the ristria binary directly. No tool schemas sit in the system prompt, and the output is the same JSON, with --max-tokens packing.
export RISTRIA_API_KEY="rs_live_YOUR_API_KEY"
export RISTRIA_API_URL="https://api.ristria.com"
# 1. Search with a token budget
npx -y -p @ristria/mcp ristria search "Python asyncio TaskGroup exception handling" --limit 5 --max-tokens 600
# 2. Extract HTML, /llms.txt or PDF documents
npx -y -p @ristria/mcp ristria extract "https://docs.python.org/3/library/asyncio-task.html" --max-chars 8000
# 3. Map a documentation site (sitemaps and link discovery)
npx -y -p @ristria/mcp ristria map "https://modelcontextprotocol.io" --limit 20
# 4. Find similar technical pages
npx -y -p @ristria/mcp ristria similar "https://docs.python.org/3/library/asyncio-task.html" --limit 5
# 5. Estimate the monthly credits of a workload
npx -y -p @ristria/mcp ristria cost --searches 25000 --extracts 5000 --research 500REST API.
From any language, send a Bearer request to /v1/search. Passages and max_tokens packing are included in the credit.
curl -X POST https://api.ristria.com/v1/search \
-H "Authorization: Bearer rs_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Google Search Central robots.txt documentazione italiano",
"category": "general",
"include_highlights": true,
"max_tokens": 600
}'Tools and endpoints.
The 12 MCP tools, the REST route where there is one, and the cost.
| MCP tool | What it does | Cost |
|---|---|---|
| searchPOST /v1/search | Web search with rank fusion, Okapi BM25 passage selection, recency and entity-overlap boosts, fast-path highlights, and max_tokens packing. Optional intent: one sentence on why the agent is searching, used to pick and order the passages. | 1 credit |
| web_searchMCP only (same as POST /v1/search) | The same search with default settings. Takes only query, intent and limit, with the same limits as search. For clients like OpenCode whose tool list shows only short tools. | 1 credit |
| find_similarPOST /v1/similar | Profiles a seed URL from its title and key terms and ranks related pages on other sites by lexical and entity-overlap similarity. | 1 credit |
| mapPOST /v1/map | Discovers site URLs via /robots.txt, /sitemap.xml (<sitemapindex>) and concurrent link discovery. | 1 credit |
| crawlMCP only | Combines map discovery with 3-worker parallel extraction and query-driven BM25 passage selection. | 5 credits |
| researchMCP only | 2-hop agentic research: runs sub-queries in parallel, derives emergent technical terms for Hop 2, fuses via RRF, and returns the best sources with their key passages, numbered for citation. Optional intent, as in search. Your agent writes the answer. | 3 mini · 5 pro |
| extractPOST /v1/extract | Extracts clean Markdown/text from HTML, /llms.txt, .md, and PDF documents, with a 7-day cache. | 1 credit |
| extract_batchMCP only | Parallel extraction for up to 20 URLs with optional query-driven BM25 highlight selection. | 2 credits up to 10 URLs, +1 per 5 more |
| content_gapMCP only | Calculates a deterministic domain-diversity score (0–100) across top SERP results for SEO/AEO topic analysis. | 1 credit |
Security.
Every URL that extract, map, crawl or similar fetches is resolved and checked before connecting and on every redirect, up to 5 hops. Loopback, link-local and private IPv4 and IPv6 ranges are blocked.