Skip to content
browsercontrol 0.4.0

browsercontrol 0.4.0

Pypi • November 26, 2026

MCP server that gives AI agents a real browser: screenshots with numbered elements, so the agent clicks by number

pip install browsercontrol==0.4.0

A real browser for your AI agent. It sees the page and clicks by number.

Documentation · Quickstart · All 79 tools · Recipes · MCP Registry · Español

BrowserControl is an MCP server that lets Claude, Cursor, VS Code, or any other MCP client use a real Chromium browser on your machine.

After every action, the agent gets back a screenshot with a numbered box on every button, link, and field , plus the same list as text. To press the button marked 5, it calls click(5) . No CSS selectors, no guessing coordinates.

You need uv . Everything else, including the browser, is set up on first run.

Codex (installs the local MCP server and the BrowserControl skill):

Claude Code (installs the server and a skill that teaches Claude to use it):

OpenCode 2 (installs the local MCP server and the BrowserControl skill):

VS Code or Cursor: one click.

Anything else: add this to your client's MCP config.

Restart your client and you're done. Setup for Claude Desktop, Gemini CLI, Zed, OpenCode, and others is in the client guide .

Ask your agent something that needs a browser:

Open Hacker News and tell me the top three stories.

Open Hacker News and tell me the top three stories.

Find the cheapest flight from Berlin to Lisbon Friday and show me the options.

Find the cheapest flight from Berlin to Lisbon Friday and show me the options.

Each time the agent does something, BrowserControl waits for the page to settle, takes a screenshot, numbers everything you can interact with, and sends back both:

The agent reads the picture to understand the page, then picks a number for its action. Numbers are rebuilt after every step, so they always match what's on screen right now. If something has moved or gone, the tool says so instead of clicking the wrong thing.

This is called Set of Marks . It works on any site, including ones with messy markup, iframes, and shadow DOM.

What your agent can do

See all 79 tools , with every parameter.

Run it hidden. The browser opens a visible window by default. To run it headless (servers, CI), set BROWSER_HEADLESS :

Use your own Chrome. Start Chrome with --remote-debugging-port=9222 , then ask the agent to connect to it. It opens its own tab and leaves yours alone. How to set it up .

one browser between clients. Run it as an HTTP server, and point your clients at :

Limit where it can go. Allow only certain sites with BROWSER_ALLOWED_DOMAINS (comma-separated; subdomains included). tools refuse anything else, and always refuse javascript: , file: , data: , and chrome: URLs unless BROWSER_ALLOW_UNSAFE_SCHEMES=true :

Protect the HTTP server. Set BROWSER_AUTH_TOKEN and the server rejects requests without Authorization: Bearer :

Every setting is listed in Configuration .

It runs locally. The browser runs on your machine. Nothing goes through a BrowserControl server.

Logins are kept. The browser profile lives in ~/.browsercontrol/user_data , so sites you sign in to stay signed in between runs.

It's built for vision models. Every action returns an image. That gives the agent the full picture, but uses more tokens than text-only tools. See how it compares to other approaches.

The HTTP mode has no authentication unless you set BROWSER_AUTH_TOKEN . Keep it on 127.0.0.1 unless you set a token or put something in front of it.

Something not working? Check Troubleshooting , or open an issue .

The docs are built to be read by agents too: llms.txt indexes every page, llms-full.txt has all of it in one file, and tools.json lists every tool with its parameters. Any docs page is also available as Markdown by adding .md to its address.

Bug reports, fixes, and new tools are welcome.

The contributing guide covers the checks, adding a tool, and working on the docs. Please also read CONTRIBUTING.md .

Extracted Entities

Platforms (1)