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
- You send the task to the model with the Zenrows MCP server attached as a tool source.
- The model calls
browser_navigate, which opens a cloud browser session and returns itssession_id. - 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_screenshotand more. - It repeats step 3 until it has the answer, then calls
browser_closeand replies.
https://mcp.zenrows.com/mcp with your Zenrows API key. Your code sends one request and reads one response.
Build the agent
SetANTHROPIC_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.
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: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. 401from the Zenrows server: theauthorization_tokenorauthorizationvalue 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.
Related recipes
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.