tether
Automates a real human-logged-in Firefox browser tab through a userscript bridge, enabling navigation, JavaScript evaluation, clicks, fills, waits, snapshots, and page capture.
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.
tether
A browser userscript bridge to a backend, doing three jobs:
Control (
puppetd/,userscript/core.js,bin/puppet) — automate a real, human-logged-in browser session from a CLI/UI. Documented below and in PUPPET.md.Feed (
puppetd/feed.py) — passively ship the raw HTML of pages you browse to disk, for offline fact/data extraction. See FEED.md.Pipeline (
puppetd/pipeline.py) — a replayable work ledger over the feed: declared stages, leases, schemas, dispositions, replay. Workers (an LLM over MCP,puppet work --claude, any script) pull items; the daemon runs no models. See PIPELINE.md.
All three run over one userscript, one daemon, one secret:
puppet CLI ──HTTP──▶ daemon (host) ◀──HTTP── userscript (browser tab)
(the AI/UI) history + queue control: evals JS, reports routes
+ feed store feed: ships settled pages
offline parser ◀── feed filesThe daemon decides per URL which channel is live (
GET /config, re-asked on every SPA route change). Control (remote JS eval) runs only on thematchglobs in~/.puppet/config.json; feed rules can add sites that are captured but never driven.@matchin the generated script is the union of both, so a new feed domain needs no hand edits.Every request carries
X-Puppet-Secret. The install URL carries it as?k=— the script embeds the secret, so it is never served without it. Get the URL frompuppet install.
Driving it from an LLM (MCP)
The daemon is also an MCP server at /mcp (streamable HTTP, same secret). puppet daemon
prints the exact line; it is:
claude mcp add --transport http tether http://<host>:8787/mcp --header "X-Puppet-Secret: <secret>"Tools: browser_status, browser_navigate (waits for the new page and reports where it
landed), browser_snapshot (text + links + form controls with selectors), browser_eval,
browser_click, browser_fill, browser_wait_for, browser_pin, browser_history,
feed_recent, feed_read, feed_rules_get/set, pipeline_status/claim/submit/
replay/outputs/stages_get/stages_set, events. The server's instructions
teach the model the rules (one active tab, navigation, the human handles logins/CAPTCHAs);
the same text is at GET /info for anything that doesn't speak MCP.
Navigation keeps the session. A full page load replaces the script instance (new tab
id). The old instance leaves its id behind on pagehide; the new one reports it as
X-Puppet-Prev, and the daemon hands the driving session and any pin to it
(session.handoff in the log). Clicks that navigate are covered the same way.
Related MCP server: @tokens/dsh-browser-use
Control: puppet
Drive a real, human-logged-in browser tab synchronously from a CLI — Selenium-for-the-hands, but with no webdriver / Marionette / CDP fingerprint. Because the tab is a genuine human session, anti-bot defenses (DataDome et al.) see a human, and the human and AI share the tab: the human handles gated steps (logins, CAPTCHAs), the AI does the grinding.
The AI is the loop — it runs puppet commands turn by turn and reads the
output, exactly like any other shell tool. See PUPPET.md for the
full design.
Userscript (
userscript/core.js) — reportsouterHTML+URL on every load and SPA route change; long-polls the daemon for JS toeval.Daemon (
puppetd/, stdlib-only) — holds the capture timeline and command queue; bridges blocking CLI calls to the polling userscript.CLI (
puppet) — each call is one blocking request to the daemon.
Quick start
# 1. start the daemon (generates ~/.puppet/config.json with a shared secret)
./bin/puppet daemon # or: pip install -e . && puppet daemon
# 2. open the status page the daemon prints (http://<host>:8787/?k=<secret>) in the Firefox
# you browse from: it has setup steps, an Install / update button, live tabs + script
# versions, feed rules and recent captures. (`puppet install` prints the script URL.)
# 3. open the target site in that Firefox, then drive it:
./bin/puppet status
./bin/puppet js 'return location.href'
./bin/puppet js 'return await fetch("/api/...").then(r=>r.json())' # the real prize
./bin/puppet history lastCommand surface
command | meaning |
| eval in the active tab, |
| the capture timeline (big HTML → file) |
| navigate and wait for the new page; prints where it landed |
| sugar over |
| the event log |
| is a tab connected, what URL |
| latest feed captures (see FEED.md) |
| pipeline status, replay, outputs; run a worker (see PIPELINE.md) |
| lifecycle |
Locked semantics: reads return through js; goto blocks until the new page
has attached and reports where it landed. A click that navigates destroys the
userscript mid-call, but the session follows the page, so act, then wait for what
you expect (or history last). js supports await and times out with a clear
error — it never hangs. Big payloads → file path.
Security
The daemon runs arbitrary JS in a logged-in browser, so: it binds to one
interface (default 127.0.0.1), requires the secret on every request (header, or
?k= on the install routes), compares it in constant time, and only enables eval on
the match globs — feed-only sites are never driven. Captured HTML carries
session PII — it stays under ~/.puppet/ (or wherever feed.dir points). For a LAN browser, set host in
~/.puppet/config.json to the daemon's LAN IP (never the public interface).
Development
Fully autonomous, headless dev loop — no real browser, no real target needed:
pip install playwright && playwright install firefox
python dev/harness.py # headless Firefox + local fixtures, asserts full round-trips
python tests/test_smoke.py # browserless daemon/store/client testsdev/harness.py injects core.js with Playwright's add_init_script (the same
hook GM provides) and points it at dev/fixtures/ — which fake a pushState SPA
route change and delayed async content. The only dev/prod difference is a ~5-line
transport shim (fetch vs GM_xmlhttpRequest), selected by typeof GM_xmlhttpRequest.
The one human-in-the-loop moment is once, at the end: install the userscript in real Firefox and confirm an end-to-end hit on the real target passes its bot wall.
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
Let your AI agent operate any website through a real, logged-in browser session.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to fully control a browser for web automation, including navigation, clicking, typing, scrolling, screenshots, and DOM inspection, with session persistence and anti-bot bypass.4028 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables language models to control a real visible browser with a full set of 24 tools for navigation, clicking, form filling, screenshots, and reading page structure, while preserving login states and supporting configurable browser policies.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a real, authenticated Chrome browser through native tools for navigation, DOM interaction, form filling, scraping, screenshots, and human-in-the-loop checkpoints while minimizing tokens and latency.MIT
- AlicenseNot gradedqualityAmaintenanceLets AI agents drive the user's real Chromium browser, including opening and controlling tabs, taking screenshots, capturing network traffic, recording screen activity, and handing control back for logins or payments while using the user's existing sessions, logins, and extensions.1,172MIT