Skip to main content
This recipe sets up a coding agent so it can read documentation, verify live web pages, and run browser checks. Its MCP connection uses /mcp/web, which works without needing administrative permissions over your Hyperbrowser account.

Prerequisites

  • A Hyperbrowser account for OAuth browser consent (for MCP) and HYPERBROWSER_API_KEY or hx auth login (for Step 3).
  • Claude Code, Codex, or VS Code with MCP support, plus the hx CLI installed for terminal checks.

Step 1: Connect Hosted MCP (/mcp/web)

Use the /mcp/web URL path so the coding agent gets web search, fetch, crawl, and extract tools without browser, sandbox, or account-admin tools. The full /mcp endpoint also includes admin and usage tools and scopes; see Connect to MCP for every endpoint.

Step 2: Add a Guardrail Block to AGENTS.md

Paste a concise rule block into your repository’s AGENTS.md or CLAUDE.md so the agent picks the cheapest surface and always cleans up sessions:

Step 3: Verify from the Terminal with hx

Pair MCP with hx when debugging a rendered page or streaming browser logs:

Expected output

  • Your coding agent completes browser OAuth consent for https://mcp.hyperbrowser.ai/mcp/web and lists only web tools (no browser, sandbox, or account-admin tools).
  • hx web fetch prints clean Markdown to stdout, hx --json browser create --stealth returns a session ID, hx browser open opens Live View, and hx browser stop cleans up the session.

Next Steps