Webster
Controls Firefox through a browser extension connected over WebSocket, enabling navigation, clicking, typing, DOM reading, screenshots, network inspection, tab management, and session capture/replay.
Controls Safari through a browser extension connected via HTTP long-poll, enabling navigation, clicking, typing, DOM reading, screenshots, network inspection, tab management, and session capture/replay; Safari support requires macOS and Webster.app.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Webster
Browser automation MCP server for Claude Code. Gives Claude full control of your browser — navigate pages, click elements, read DOM, take screenshots, inspect network traffic, manage tabs, capture sessions with full replay.
Supports Chrome, Firefox, and Safari simultaneously. Switch between browsers with a single tool call. Multiple Claude Code sessions share the same server and browser connection concurrently.
How it works
Webster has two parts:
MCP server — a persistent local server that Claude Code connects to over HTTP
Browser extension — auto-connects to the server via WebSocket and executes browser commands
On macOS, Webster.app (required for the Safari extension) also manages the server and provides a menu bar UI with capture controls and a global hotkey — so there's only one thing to run.
Claude Code Session A ──┐
Claude Code Session B ──┤── HTTP /mcp ──→ Webster Server ──→ Browser Extension ──→ Browser
Claude Code Session C ──┘ (persistent, (WebSocket)
launchd-managed)
↑
Webster.app ── spawns server, polls /api/*
Web Dashboard ── /dashboard
Replay Viewer ── /replay/{id}Chrome and Firefox connect via WebSocket. Safari connects via HTTP long-poll (Safari's extension sandbox blocks raw sockets from service workers). All three can be active simultaneously — use get_browsers / set_browser to route between them.
Related MCP server: Glance
Installation
1. Install the MCP server
git clone https://github.com/thehammer/webster
cd webster
bun installRun the server:
bun startRecommended: run as a persistent background service (launchd on macOS)
Create ~/Library/LaunchAgents/com.yourname.webster.plist. If you're using Webster.app for Safari (see below), point it at the app binary — Webster.app spawns the server automatically:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.yourname.webster</string>
<key>ProgramArguments</key>
<array>
<string>/Users/yourname/Applications/Webster.app/Contents/MacOS/Webster</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>HOME</key>
<string>/Users/yourname</string>
<key>WEBSTER_PORT</key>
<string>3456</string>
<key>WEBSTER_BUN_PATH</key>
<string>/path/to/bun</string>
<key>WEBSTER_PROJECT_DIR</key>
<string>/path/to/webster</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>If you're not using Safari, point directly at bun instead:
<key>ProgramArguments</key>
<array>
<string>/path/to/bun</string>
<string>run</string>
<string>/path/to/webster/src/index.ts</string>
</array>mkdir -p ~/.webster
launchctl load ~/Library/LaunchAgents/com.yourname.webster.plistConfigure Claude Code (~/.claude.json) to connect to the persistent server:
{
"mcpServers": {
"webster": {
"url": "http://localhost:3456/mcp"
}
}
}2. Install the browser extension
Build for your browser(s):
./scripts/build-extension.sh --chrome # Chrome / Edge
./scripts/build-extension.sh --firefox # Firefox
./scripts/build-extension.sh --safari # Safari (requires macOS + Xcode)
./scripts/build-extension.sh --all # all threeChrome / Edge — build/extension/chrome/
Open
chrome://extensions(oredge://extensions)Enable Developer mode
Click Load unpacked → select
build/extension/chrome/
Firefox — build as a zip (newer Firefox requires a packaged file, not a bare directory):
./scripts/build-extension.sh --firefox --zipOpen
about:debugging→ This FirefoxClick Load Temporary Add-on → select
build/extension/webster-firefox.zip
Safari — Webster.app hosts the extension, manages the bun server, and provides the menu bar UI all in one. Build, sign, and launch:
./scripts/build-extension.sh --safari --run--run converts the extension to an Xcode project, builds it, quits the installed Webster.app and its server (through launchd if you have a LaunchAgent for it, otherwise directly), installs the new build to ~/Applications/Webster.app and starts it. Without --run, --safari --xcode generates and patches the project and opens it in Xcode.
--run restarts the shared server, which ends every MCP session on it: other Claude sessions using webster must reconnect. The script prints a notice (with the active session count) before stopping it. It only stops the app launchd already has loaded, the app's own processes, and a leftover server started from this checkout; any other process holding the port makes it stop with an error. To make it honour a non-default port, export WEBSTER_PORT (a plain shell variable is not seen by the script).
Verified on Xcode 27.2; older Xcodes that already emit project.pbxproj take the unchanged path. Xcode 27's safari-web-extension-converter writes project.xcproj instead of project.pbxproj; the build converts it back with xcodebuild -convert-project pbxproj before patching, and fails with a clear message if neither file exists.
The one manual step: Safari → Settings → Extensions → enable Webster (if Safari doesn't list it, turn on Develop → Allow Unsigned Extensions first; the build is ad-hoc signed). Once enabled, curl localhost:3456/api/status lists a safari extension and the extension popup shows a Connected row for port 3456.
Webster.app installs to ~/Applications/Webster.app. To start it automatically at login, set up a launchd plist pointing at Webster.app/Contents/MacOS/Webster (see Step 1 above).
The extension auto-connects to the server on port 3456. The popup shows connection status; Chrome and Firefox also let you add additional server ports for concurrent sessions (Safari uses a single port).
Capture & Replay
Webster can record comprehensive browser sessions:
start_capture(includeInput: true, recordFrames: true)
# ... browse around ...
stop_capture()
# → returns { sessionId, replayUrl, eventCount, frameCount, ... }Captures include:
Full network request/response bodies via Chrome Debugger Protocol
Mouse & keyboard input (clicks, moves, keypresses)
Console output (log, warn, error, info)
JS errors and unhandled rejections
Page state (URL, title, scroll position, viewport)
Screenshot frames for video playback
Data streams from the extension to the server in real-time — resilient to browser extension restarts. Stored on disk under ~/.webster/captures/.
Replay viewer
Open http://localhost:3456/replay/{sessionId} to view a captured session:
Video playback from captured frames
Network waterfall with timing bars
Click overlay showing input events on the video
Console output panel synced to timeline
Page state bar (URL, title, scroll)
Event density minimap
Keyboard controls: Space (play/pause), arrows (seek), < > (speed)
Web dashboard
Open http://localhost:3456/dashboard for a web UI with:
Server status and connected browsers
Start/stop capture with URL filter and options
Session history with thumbnails, names, and replay links
Search/filter sessions
Delete and rename sessions
Menu bar app
On macOS, Webster.app includes a full menu bar UI:
Spider icon with live server/browser status
Start/stop capture from the tray
Global hotkey: ⌃⌥R (Ctrl+Option+R) toggles capture from any app
Recent sessions with thumbnails and one-click replay
Copy replay URL, delete sessions
Export video
export_video(format: "mp4") # also: webm, gif
# → returns file path to encoded videoRequires ffmpeg installed locally.
Multi-browser usage
When multiple browsers are connected, use get_browsers and set_browser:
get_browsers → [{ browser: "chrome", active: true }, { browser: "safari", ... }, ...]
set_browser("safari") # all subsequent commands go to SafariWhen only one browser is connected, it's selected automatically.
Concurrent Claude sessions
Multiple Claude Code sessions share the same Webster server — each gets an independent MCP connection via HTTP. Use claim_tab / release_tab to coordinate tab ownership across sessions so sessions don't step on each other.
Configuration
Variable | Default | Description |
|
| Port for WebSocket, MCP HTTP, dashboard, and replay viewer |
Server registry: ~/.webster/registry.json. Logs: ~/.webster/webster.log. Captures: ~/.webster/captures/.
Tools (40 total)
Navigation & interaction
Tool | Description |
| Navigate to a URL |
| Click an element by CSS selector (auto-falls back to accessibility tree) |
| Type text into an input |
| Click at (x, y) coordinates via Chrome Debugger Protocol |
| Click an element by accessibility ref |
| Move mouse to (x, y) — triggers hover states and tooltips |
| Click and drag between two coordinates |
| Press a key with optional modifiers (Enter, Tab, Ctrl+C, etc.) |
| Scroll to an element or coordinates |
| Upload a file to a file input or drag-drop target |
| Resize the browser window |
Reading the page
Tool | Description |
| Get text content of a page or element |
| Get HTML of a page or element |
| Capture the visible tab as PNG |
| Get URL, title, viewport dimensions |
| Find elements matching a CSS selector |
| Get an element's attribute value |
| Execute JavaScript in the page |
| Get the browser's semantic element tree |
| Find elements by natural language description |
Tabs & browsers
Tool | Description |
| List all open tabs |
| Open a new tab |
| Close a tab |
| Switch to a tab |
| List all connected browser extensions |
| Set the active browser target |
| Mark a tab as owned by this session |
| Release tab ownership |
Network & storage
Tool | Description |
| Get buffered network requests (URL, status, timing) |
| Wait until no in-flight requests |
| Get cookies for a URL |
| Read localStorage |
| Write localStorage |
Capture
Tool | Description |
| Start deep capture — network bodies, input, console, frames |
| Stop capture, returns summary with replay URL |
| Read capture data — summary, events, or single event by index |
| Encode captured frames to mp4, webm, or gif |
Console & input
Tool | Description |
| Get buffered console output (optional regex filter) |
| Get buffered mouse/keyboard events from the page |
Waiting
Tool | Description |
| Wait for an element to appear in the DOM |
Development
bun test # run tests (60 tests)
bun run typecheck # type check
bun start # start server manually
./scripts/build-extension.sh --all # build all browser extensions
./scripts/build-extension.sh --safari --run # build + install Webster.app (macOS)License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Let your AI agent operate any website through a real, logged-in browser session.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to control a real browser for navigating, clicking, typing, taking screenshots, inspecting pages, and running multi-step automated tests. It also supports visual regression, session recording, and network/console monitoring through MCP tools.106 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to drive a real browser — navigating, clicking, typing, screenshotting, and inspecting pages through 30 MCP tools. Supports multi-step test scenarios, assertions, session recording, visual regression, and network/console monitoring, all from the terminal.106 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to interact with and test web applications by driving a real browser through MCP tools for navigation, clicking, typing, screenshots, assertions, console/network monitoring, and session or visual regression workflows.106 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to drive your everyday logged-in browser session — opening and closing tabs, navigating, clicking, typing, scrolling, filling forms, uploading files, taking screenshots, and reading page text, console output and network requests. It runs through a local native-messaging bridge, scoping each client session to its own window behind yours.64 npm2MIT