browser-director
The browser MCP server that lets an agent operate a site and then direct a narrated demo of it — spotlight, camera zoom, voiceover, and cursor — from one server.
The repository is still abhinav-nigam/agent-browser until the owner renames it. The installable name is browser-director.
Demo
Demo video: not recorded yet. This is the slot for a tour the server produces of itself.
Install
pip install browser-director
playwright install chromium
# optional, for generate_voiceover and get_audio_duration
pip install "browser-director[video]"
ffmpeg is required for render_demo and for reading video duration. Voiceover providers need OPENAI_API_KEY or ELEVENLABS_API_KEY.
The old PyPI name ai-agent-browser is a shim that depends on this package and warns. The commands agent-browser and agent-browser-mcp still run, and they warn. New configs should use the names below.
Quickstart
Add the server, then ask the agent to open a page and narrate a short tour. Pass --allow-private only when the target is localhost or another private address.
Claude Code
claude mcp add browser-director -- browser-director-mcp --allow-private
Cursor
.cursor/mcp.json:
{
"mcpServers": {
"browser-director": {
"command": "browser-director-mcp",
"args": ["--allow-private"]
}
}
}
Codex
~/.codex/config.toml:
[mcp_servers.browser-director]
command = "browser-director-mcp"
args = ["--allow-private"]
Gemini CLI
~/.gemini/settings.json:
{
"mcpServers": {
"browser-director": {
"command": "browser-director-mcp",
"args": ["--allow-private"]
}
}
}
Claude Desktop and other MCP clients use the same command and args under mcpServers. Config layouts drift; if a client rejects this snippet, point it at browser-director-mcp over stdio.
Streamable HTTP is available when a client cannot spawn a process:
browser-director-mcp --transport streamable-http --host 127.0.0.1 --port 8000
That listener has no authentication. Keep it on localhost.
A direct narrated pass, once the server is connected:
gotothe page.spotlightthe control you want the viewer to see, thencamera_zoomit.generate_voiceoverfirst, so the recording can be paced to the audio.start_recording, walk the page withclick/type, thenstop_recording.render_demoto mux the recording, voiceover, and optional music into an MP4.
get_agent_guide returns selector syntax and the tool list from the server itself. AGENT.md is the same material for humans.
What it is, next to the neighbors
| browser-director | Playwright MCP | Vercel agent-browser | browser-use | Stagehand | |
|---|---|---|---|---|---|
| General browser control (navigate, click, type, read) | Yes | Yes | Yes, as a CLI | Yes, inside its own agent loop | Yes, via act / extract / observe |
| MCP server you add to an agent | Yes | Yes | Not this server. A separate, widely used CLI whose name collided with this project's old name | A library, not this kind of server | A library / SDK |
| Direct a narrated demo from the same server (spotlight, camera, cursor, voiceover) | Yes | Basic video recording | No | No | No |
| One call to mux the recording and the narration | render_demo |
No | No | No | No |
Smaller projects such as playwright-recast and demosmith-mcp produce narrated demos. They are not also a general browser-control server.
Tools
The server registers 71 tools. The count in this file is checked against the registered tools in CI (<!-- tool-count: 71 -->).
They cover navigation, interaction, waits, extraction, assertions, page state, and the cinematic tools: voiceover, recording, annotations, spotlight, camera, and render_demo. evaluate runs JavaScript in the page. Treat that as a separate, sharper risk; see below.
Security
Private-network access is off unless you pass --allow-private.
- Schemes other than
httpandhttpsare rejected, includingfile,javascript, anddata. - Hostnames that resolve to loopback, link-local, or private ranges are rejected, including cloud metadata addresses such as
169.254.169.254. - URLs with embedded usernames or passwords are rejected.
- Screenshot and export paths have to stay inside the working directory.
- Password fields are masked in
page_state.
evaluate is arbitrary JavaScript in the page's origin. An agent can read DOM state, call endpoints the page can call, and interact with a logged-in session. Private-IP blocking does not make that safe. Do not point the server at an account you would not hand to the agent.
--allow-private is for a dev server you intend the agent to open. It is not a sandbox.
--transport streamable-http does not authenticate clients. The default bind is 127.0.0.1.
CLI
browser-director start http://localhost:8080
browser-director cmd screenshot home
browser-director stop
browser-director mcp --allow-private
browser-director mcp is the same server as browser-director-mcp. Registry clients that launch the package with uvx use the mcp subcommand.
Compatibility shim
pip install ai-agent-browser installs browser-director plus a deprecated agent_browser module that warns and re-exports it. Publish steps for both distributions are in .github/workflows/publish.yml.
License
MIT. See LICENSE. Author: Abhinav Nigam.
Metadata
Release files for browser-director 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browser_director-0.3.0.tar.gz | 85.6 kB | With provenance | Details for browser_director-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser_director-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for browser_director-0.3.0-py3-none-any.whl |
Total release size: 165.5 kB
Release files / browser_director-0.3.0.tar.gz
| Download URL | browser_director-0.3.0.tar.gz |
|---|---|
| Size | 85.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1a27f84c4403ca85521f511a4128b30e05321e9fdb5942ce497564913e401a2
|
|
BLAKE2b-256 checksum How to use checksums |
801ac6499c5c9100a081650398f5839695246b88adfde84087ce31f4af51e320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / browser_director-0.3.0-py3-none-any.whl
| Download URL | browser_director-0.3.0-py3-none-any.whl |
|---|---|
| Size | 79.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f60f0b16c33c80b6a9daf48ce378fbc3319314320a074cc31b9b0bb581b0e8d
|
|
BLAKE2b-256 checksum How to use checksums |
120c889fa6e57de883aac5500ad067a1370400cf4fc93a12a4db0c178789a507
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for browser-director 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for browser_director-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.