Skip to main content
Give a model the Zenrows browser tools and it becomes a browser agent: it opens a page in Zenrows Browser, the browser for agents, decides each next step from what it sees, and clicks, types and reads until the task is done. The Anthropic and OpenAI APIs call the Zenrows MCP server for you, so the whole agent is one API request, with no framework and no browser to run. Uses: Browser through the Zenrows MCP server and its browser_* tools

Ask your AI agent

With the Zenrows MCP server connected to Claude, Cursor or any MCP client, paste this prompt. Your agent picks the right Zenrows tools and settings on its own.

How it works

  1. You send the task to the model with the Zenrows MCP server attached as a tool source.
  2. The model calls browser_navigate, which opens a cloud browser session and returns its session_id.
  3. The model reads the page and acts on it with the other browser_* tools: browser_fill, browser_click, browser_press_key, browser_wait_for_selector, browser_get_text, browser_query_selector_all, browser_screenshot and more.
  4. It repeats step 3 until it has the answer, then calls browser_close and replies.
The LLM provider runs this loop on its side and calls https://mcp.zenrows.com/mcp with your Zenrows API key. Your code sends one request and reads one response.

Build the agent

Set ANTHROPIC_API_KEY or OPENAI_API_KEY, and replace YOUR_ZENROWS_API_KEY with your key. The tool list limits the agent to the browser tools, so it browses instead of scraping.
Install the SDK first: pip install anthropic, npm install @anthropic-ai/sdk or pip install openai. The Anthropic examples also turn on server-side fallbacks, which hand a declined request to another Claude model automatically.

Example output

These are the browser steps behind the task, run against the Zenrows MCP server with the same tools the agent calls:
The model picks its own selectors and order, so its steps can differ from this run. Its answer names the three products: Chaz Kangeroo Hoodie, Teton Pullover Hoodie and Bruno Compete Hoodie.

Customize it

Troubleshooting

  • The agent answers without opening a page: name the action in the task (“Log in at…”, “Open…”) and keep the system prompt that tells it to use the browser tools.
  • The answer ends mid-task: the task needs more steps. Raise max_tokens, or split the job into two requests.
  • 401 from the Zenrows server: the authorization_token or authorization value isn’t a valid Zenrows API key. Copy it again from the dashboard.
  • A session stays open after an error: keep “call browser_close on every session you open” in the system prompt. Sessions also end on their own when their time runs out.

Let your AI assistant browse with Browser tools

The same tools from Claude, Cursor or any chat client.

Fetch first, open a Browser when a task needs interaction

Give your agent fast reading and a full browser.

Build a research agent with live web data

An agent that reads and cites live pages.

Connect Playwright or Puppeteer to Zenrows Browser

Drive the browser from your own code.