Repository avatar
Other Tools
v0.4.0
active

browser-director

io.github.abhinav-nigam/browser-director

Operate a site, then direct a narrated demo from one MCP server.

Documentation

browser-director

PyPI CI License: MIT

browser-director

Pick this over Playwright MCP or Vercel agent-browser when the agent should both operate the site and direct a narrated demo of it — spotlight, zoom, voiceover, and cursor — from the same server.

Narrated demo of browser-director on the Wikipedia article for the Model Context Protocol

The clip is browser-director on the English Wikipedia article for the Model Context Protocol: search, a ring spotlight on the opening paragraph, a zoom, then a focus spotlight on an infobox row. The mp4 is 50 seconds at 1280×720. The gif is a 13.6 second highlight. The voice is OpenAI tts-1-hd, voice nova, mixed with render_demo. MP4.

The GitHub repository is abhinav-nigam/browser-director.

Install

pip install browser-director
playwright install chromium

ffmpeg is required for render_demo. The Wikipedia demo’s voiceover uses generate_voiceover(provider="openai", voice="nova"), which reads OPENAI_API_KEY. media_duration on an audio file needs mutagen, so install the extra:

pip install 'browser-director[video]'

uvx browser-director mcp starts the server from PyPI without a separate install. Version 0.4.0 lists 35 tools. Older names are available only when BROWSER_DIRECTOR_LEGACY_TOOLS=1.

MCP config

Copy one of these. They all run uvx browser-director mcp. Add --allow-private to the args only when the agent should open localhost or another private address.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "browser-director": {
      "command": "uvx",
      "args": ["browser-director", "mcp"]
    }
  }
}

Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "browser-director": {
      "command": "uvx",
      "args": ["browser-director", "mcp"]
    }
  }
}

Claude Code

claude mcp add browser-director -- uvx browser-director mcp

Recipes

Run these from a checkout after pip install -e . and playwright install chromium. Details are in examples/README.md.

Recipe
Scrape and summariseRead example.com and print the title, first paragraph, and word count.
Form fillFill the public httpbin form and check the echo.
ScreenshotSave a viewport PNG of example.com.
Narrated demoWikipedia search, ring and focus spotlights, zoom, cursor, OpenAI nova (espeak-ng if OPENAI_API_KEY is unset), render_demo.

Comparison

Checked against the Playwright MCP README and the Vercel agent-browser README plus its video-recording notes, in November 2026. "Not documented" means I did not find it there. It is not a claim that the feature can never exist.

browser-directorPlaywright MCPVercel agent-browser
Drive a browser (open, click, type, read)YesYes. Tool list in its README.Yes. Rust CLI; snapshot returns refs such as @e1.
MCP serverYes. uvx browser-director mcp.Yes.Yes. Docs say agent-browser mcp.
Save a video of the sessionrecording with action start or stop.browser_start_video / browser_stop_video. Also chapter cards and action callouts.record start / record stop to webm or mp4. --cursor draws a pointer.
Spotlight, camera zoom, and a voiceover on that same serverYes. spotlight, camera (action=zoom), generate_voiceover or your own audio, then render_demo.Not in the tool list I read.Not in the recording docs I read.

Tools

The server registers 35 tools. CI checks this sentence against the registered list (<!-- tool-count: 35 -->). Set BROWSER_DIRECTOR_LEGACY_TOOLS=1 to also list the 0.3 names. Those aliases are removed in 0.5. The mapping is in docs/plans/0.4-tool-consolidation.md.

They cover navigation, interaction, one wait, read, assert, and the demo tools: spotlight, camera, recording, generate_voiceover, and render_demo. evaluate runs JavaScript in the page.

Security

Private-network access is off unless the server is started with --allow-private.

  • Schemes other than http and https are rejected, including file, javascript, and data.
  • Hostnames that resolve to loopback, link-local, or private ranges are rejected, including 169.254.169.254.
  • URLs with embedded usernames or passwords are rejected.
  • Screenshot and export paths have to stay inside the working directory.

evaluate is arbitrary JavaScript in the page's origin. Private-IP blocking does not make that safe.

License

MIT. See LICENSE. Author: Abhinav Nigam.

PYPI
browser-director
Install Command
pip install browser-director
Runtime: uvx