Web search in OpenCode with the x402serps MCP server
OpenCode loads remote MCP servers from opencode.json. Add x402serps as a remote server and its search and research tools appear to the agent.
opencode.json
In your project root, or ~/.config/opencode/opencode.json for all projects
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"x402serps": {
"type": "remote",
"url": "https://x402serps.com/api/mcp",
"enabled": true,
"headers": {
"X-Trial": "1"
}
}
}
}With card credits
Replace the header with "Authorization": "Bearer xs_YOUR_KEY" after buying a pack on the pricing page. Without a trial header or key, tool calls return x402 payment requirements (USDC on Base or Solana).
Run opencode mcp list to confirm it connected.
Pricing · Docs · MCP · Integrations · Help