v1.5.0Passages with version and evidence, 1 credit per search. See what we measured

Web search MCP / OpenCode

Web search MCP server for OpenCode

OpenCode has its own websearch and webfetch tools, and with many MCP servers enabled it shows the agent only a few tools from each. The setup below connects Ristria and the tips make sure the agent uses it.

Set it up

  1. Create an API key in the console.
  2. Add the entry above to ~/.config/opencode/opencode.json.
  3. Restart OpenCode and ask for something current.
~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "ristria": {
      "type": "remote",
      "url": "https://api.ristria.com/mcp",
      "enabled": true,
      "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
    }
  }
}

OpenCode puts each server directly under mcp, with type remote. An opencode.json in the project root works too.

Hosted endpoint: https://api.ristria.com/mcp (Streamable HTTP, key as a bearer token). Checked against OpenCode: MCP servers on 2026-12-04.

What OpenCode did with Ristria

Measured on 2026-11-09 with plain requests that name no tool, 10 requests per agent.

  • OpenCode 2.2.6 with Qwen 3.5 often kept its built-in websearch for facts and news, and its built-in webfetch to read a URL or list a site.
  • It did not call research to compare options, and picked find_similar 1 time in 2.
  • With several large MCP servers enabled, Ristria rarely made it into the tool catalog the agent sees.

Tips for OpenCode

Make the agent use Ristria

Either name it in the prompt or in AGENTS.md (“use the Ristria tools for web search”), or turn the built-in web tools off.

opencode.json
{
  "permission": { "websearch": "deny", "webfetch": "deny" }
}

Why web_search exists

OpenCode’s Code Mode lists the shortest tool signatures first. web_search is search with its defaults (query, intent, limit), so it fits there; use search when you need dates, domains or depth.

What your agent gets

Each search returns the passages that answer the query, with the source URL of each, instead of the whole pages. On our benchmark of 30 Oct 2026 the answer the agent read was 85% lighter than the full pages of the same results (median). With one search per question, an open model answered 90.2% of SimpleQA Verified correctly. Method and limits are on the benchmarks page.

ToolWhat it doesCredits
searchBasic or advanced, BM25 passages included1 credit
extractOne URL: HTML, /llms.txt or PDF1 credit
maprobots.txt, sitemaps and link discovery1 credit, up to 200 URLs
find_similarSeed title and key terms, lexical and entity overlap1 credit
researchmini: 2 sub-queries and a follow-up search · pro: 4 sub-queries and deeper extraction; cited sources and passages, no written report3 credits mini · 5 credits pro

Free plan: 1,500 credits a month. Try every endpoint and MCP tool. A card check unlocks the credits, with no charge. Credits renew every month. Every tool and its options are in the tools reference; plans are on the pricing page.

Other clients