opencode-brave-search

Mathias-g/opencode-brave-search
★ 0 stars TypeScript Search Updated 4d ago
Brave Search as a custom tool for opencode. One TypeScript file, two arguments, replacing the Brave MCP server's eight tools. Measured at 222 context tokens against 9,879, and ~1,200 per search against ~4,200, by trimming results to titles, URLs and snippets.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "opencode-brave-searc": {
      "command": "npx",
      "args": [
        "-y",
        "Mathias-g/opencode-brave-search"
      ]
    }
  }
}

README Excerpt

A custom opencode tool that adds web search backed by the Brave Search API. opencode's own `websearch` tool routes through Exa's hosted service and is only available on the opencode provider or with `OPENCODE_ENABLE_EXA` set. This one calls Brave directly, works on any provider, and returns a compact result list instead of a full API response object.

Tools (3)

countfreshnessquery