Skip to main content

MCP Server

webrain is a Model Context Protocol (MCP) server. Start it and any MCP-capable client (Claude, Claude Code, Cursor, GitHub Copilot, Codex, …) discovers its 15 tools automatically — no wrappers, no daemon.

Transports

stdio — the default; the client spawns webrain mcp and speaks JSON-RPC on stdout.
Logs go to stderr — never redirect stderr into the MCP stream. HTTP — for remote or streamable-http clients:

Register it in a client

Point CDP_URL at a running engine to reuse an already-open browser:

Verify it’s live

Ask the LLM to call webrain_guide — it returns the browser / challenge / extraction decision guide. Then try:
Scrape all product titles + prices from URL X
The model calls webrain_navigatewebrain_extract (mode=autoschema) → webrain_extract (mode=schema).

Client guides