Skip to main content

Quickstart

Get a browser engine, start the MCP server, and drive webrain from an LLM — in five minutes.

1. Install webrain

2. Get a browser engine

This downloads Chrome for Testing into a cache dir; that build then wins discovery over your system Chrome. See Installation for other engines (--engine obscura) and OS specifics.

3. Start the MCP server

Logs go to stderr; MCP speaks pure JSON on stdout — never redirect stderr into the stream.

4. Connect an LLM client (MCP setup)

Webrain is an MCP server - register it in your client and the 51 webrain_* tools appear automatically. Two transports:
  • stdio - webrain mcp (default; simplest for local clients)
  • HTTP - webrain mcp --http 9223, endpoint http://127.0.0.1:9223/mcp
Or over HTTP (start webrain mcp --http 9223 first):
Claude Desktop - claude_desktop_config.json:
Cursor - project .mcp.json:
Restart the client, then verify the server is live: ask the LLM to call webrain_guide - it returns the browser/challenge/extraction decision guide. Then ask the LLM something like:
Scrape all product titles + prices from URL X
The model calls webrain_navigatewebrain_autoschemawebrain_extract_json and returns structured data. No selectors on your part.

Drive it by hand instead?

Every engine + tool has a CLI twin: