MCP quickstart
One connection for tools and the viewer
-
Configure the Selenium MCP endpoint supplied for your integration. Keep the API key or
OAuth token on your backend.
-
Connect using Streamable HTTP and discover the available tools with
tools/list.
-
Read account capabilities, quote the work, and start it only after the quoted cost is
authorized.
-
Poll using the returned timing hints. Read the assessment before choosing a saved route.
-
Call
get_route_family and load its advertised UI resource through your MCP Apps
host.
Already using an MCP Apps-compatible host? It can retrieve Selenium’s viewer directly. A
plain MCP client needs a host bridge to render the UI; a separate React package is optional.
Read the MCP reference and viewer hosting guide linked here:
https://b12-labs.com/docs/selenium-route-search/
Use the configured Selenium MCP connection. Discover tools, read account tiers and limits, quote before starting paid work, and retain the same quote/reference when recovering an uncertain result. Preserve the full tool result, including _meta, when rendering the viewer.
Embedded route viewer
Run the host example
Download and extract the example. With Node 22 or later, follow its README to configure your
MCP endpoint, trusted OAuth issuer, and registered client. Register the local callback
http://127.0.0.1:43580/oauth/callback, then run:
npm ci --ignore-scripts
npm run build
npm start
Open the local host on loopback port 43580 and choose Connect Selenium.
After provider consent, it fetches the viewer over MCP and displays it through the official
AppBridge. The sandbox uses a separate origin on port 43581. The example browses existing
assessments; it does not launch paid searches.
OAuth sessions and refresh tokens stay on the backend and survive a local restart. For a
shared platform, bind each grant to your authenticated user and enforce narrower access
rules on the backend. Opening one route does not restrict the credential’s assessment
library.