autopilot-mcp
Provides tools for accessing and managing a Bitwarden vault, including listing logins, filling credentials into forms, generating TOTP codes, creating/updating/deleting entries, and revealing credentials with auditing.
Allows reading SMS verification codes by navigating to the Google Messages web interface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@autopilot-mcplog into my bank account and show the balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
autopilot-mcp
A browser-automation MCP server. It hands an LLM a generic set of browser tools — navigate, screenshot, read text, run JS, click, type — that work on any URL, with each site backed by its own persistent Camoufox browser profile. Logins are filled straight from a Bitwarden vault so passwords never enter the model's context, and any sequence of steps that works can be saved as a "playbook" for one-call replay next time.
Tools
Browser (free-roam)
Each registrable domain (eTLD+1) gets its own persistent browser profile
under data/profiles/<profile>/. navigate(url) auto-derives the profile
from the URL; everything else takes profile explicitly.
Tool | Description |
| Open a URL. Auto-derives profile from eTLD+1 (overridable). Returns visible text. |
| PNG screenshot of the profile's current page. |
| Visible text only — cheaper than a screenshot. |
| Current URL for the profile. |
| Preferred for form fills / button clicks. Selector-based. |
| Click at (x, y). Use when run_js can't target the element. |
| Type into the focused element. |
| Send a real key ( |
| Attach a local file to a |
| Scroll up or down. |
run_js takes either an expression or a statement body — scripts using
return or top-level await are wrapped in an async IIFE automatically.
For parallel work on the same site, use isolated browser instances — each clones the site's base profile so concurrent sessions don't collide:
Tool | Description |
| Clone a base profile into a temporary isolated browser profile and open a URL. Returns |
| List live spawned instances and TTLs. |
| Close an instance and delete its temporary profile. |
| Browser navigation/inspection scoped to one |
| Page interaction scoped to one |
| Upload/login helpers scoped to one |
Example: spawn_instance(url="https://accounts.example.com/...", clone_from_profile="example.com")
lets each parallel branch work in its own cloned session. Always call
close_instance(instance_id) when the branch is finished; timed-out instances
are also cleaned up automatically.
Credentials (Bitwarden, fill-don't-reveal)
Tool | Description |
| Search the vault. Returns id/name/urls/username/has_totp — never passwords. |
| Inject creds from Bitwarden straight into form fields. Password never returns. |
| Current 6-digit TOTP, computed locally from the stored seed. |
| Transport, lock state, item count, snapshot age. |
| New vault entry. Refuses name collision. |
| Patch fields on an existing entry. |
| Create-or-update by (url, username). The signup convenience path. |
| Send to Bitwarden trash. Requires |
| ESCAPE HATCH — returns plaintext. Requires |
Local file server (uploads)
For sites that ask the user to upload a local file. Two paths:
Standard
<input type="file">— useattach_file(profile, selector, path). Works even when the input is hidden inside a custom dropzone widget; target the input itself, not the visible drop area.Pure-JS uploader (no real input element) — use the local CORS file server below. The MCP publishes the file at an unguessable URL on
127.0.0.1; the LLM usesrun_jstofetch()it inside the page, wrap the Blob in aFile, and dispatch a syntheticdropevent (or set it on a hidden input viaDataTransfer).
Tool | Description |
| Publish a local file at |
| List currently-published files. |
| Revoke a token immediately. |
Security envelope: server binds 127.0.0.1 only; tokens are uuid4 hex (122
bits of entropy); one token = one file path (no directory traversal); idle
entries reaped on every request. Override the bind via
AUTOPILOT_FILE_SERVER_HOST / AUTOPILOT_FILE_SERVER_PORT env vars.
Playbooks
Tool | Description |
| List saved playbooks (filter by |
| Execute a playbook. Returns screenshots/text from observation steps. |
| Save a step sequence. Call after a successful task. |
| Remove a broken playbook. |
| List run-ledger entries (one record per execution), newest first; filter by name/success. |
| Fetch one run ledger's full JSON by |
Related MCP server: Playwrightium
Workflow
list_playbooks(url_match)— is there already a playbook for this task?run_playbook(name)— if yes, run it. Done.Otherwise:
navigate(url)→screenshot/get_text→run_js/click/type_text.On a login page:
fill_login(url)— Bitwarden injects creds directly. If the form needs 2FA:get_totp(vault_item)thentype_text(profile, code).For SMS 2FA: open your messages-on-web client in its own profile and read the code from there.
After the task succeeds,
save_playbook(...)so next time is one call.Just signed up somewhere new?
upsert_login(url, username, password)stores it and Bitwarden sync pushes to your other devices.
Credentials setup (Bitwarden)
The MCP unlocks Bitwarden with a master password stashed in the OS keyring (DPAPI-encrypted on Windows, scoped to your user). It never lands on disk outside the keyring, and never enters the model's context.
How the vault is reached
The MCP drives a bw serve daemon — one bw process, unlocked once, that
answers over loopback HTTP. It starts on the first credential call and is
locked and killed after 15 idle minutes (and on shutdown).
One daemon per box, not per MCP process. A client that starts one autopilot
MCP per job ends up with several at once, so they rendezvous through data/bw-serve.json (port + a shared
last-touch stamp, guarded by a lock file): the first process in spawns and owns
the daemon, later ones adopt its port. Only the owner locks or kills it, and
only once every process has been idle past the window — otherwise a sibling
mid-login would have the vault yanked out from under it. A state file pointing
at a dead port is detected by probe and replaced.
This replaced a per-operation bw <cmd> --session … design, which is broken on
Bitwarden CLI ≥ 2026.3.0: bw unlock --raw returns a session that every
subsequent process rejects with Vault is locked. Reads survived on a
local-decryption fallback (LocalBitwardenVault); writes had no fallback and
failed outright, and nothing ever synced. Reproduce the underlying bug with:
S=$(bw unlock --raw --passwordenv BW_PW); bw list items --session "$S" # Vault is locked.Set AUTOPILOT_BW_TRANSPORT=cli to force the old path (it still works for
reads); serve to require the daemon and fail loudly if it can't start;
auto (default) prefers the daemon and falls back to the CLI.
Security posture: bw serve has no authentication, so the daemon binds
127.0.0.1 on a random port (never the well-known 8087), keeps Bitwarden's
origin protection on, and does not outlive its idle window. Any local process
running as you could still reach it while it is up — that is the same exposure
as the keyring master password itself, but keep the idle window short.
Staying in sync
vault_status() reports lock state, item count, and sync_age_minutes. The
daemon syncs on start, before the first read once the local snapshot is older
than AUTOPILOT_BW_SYNC_TTL_MINUTES (default 30), and after every write.
Without that TTL the snapshot silently drifts: on the CLI path sync only ever
ran after a write, and writes were failing, so the vault could go weeks stale
and logins added in the Bitwarden app simply did not exist as far as the model
could tell.
TOTP
Codes are computed locally with pyotp from the seed stored on the vault item.
Bitwarden's own bw get totp / GET /object/totp are Premium-gated and answer
Premium status is required to use this feature. without it. Only items whose
list_logins row shows has_totp: true can produce a code.
One-time setup for a fresh machine, top to bottom:
1. Install the Bitwarden CLI
winget install --id Bitwarden.CLI --accept-source-agreements --accept-package-agreementswinget puts bw.exe on PATH via a shim — open a new shell afterward so the
update takes effect. (No winget? npm install -g @bitwarden/cli, or grab a
binary from https://bitwarden.com/download/.) Verify:
bw --version # e.g. 2026.3.0
bw status # {"status":"unauthenticated", ...}2. Log in
Interactive — only your terminal sees the master password.
bw loginPrompts for email, master password, and a two-step token. On success
bw status reports "status":"locked" — leave it locked; the MCP unlocks on
demand.
3. Stash the master password in the OS keyring
Keep it out of .env and off the command line. After uv sync, stash it at
the hidden prompt:
uv run python -c "import keyring, getpass; keyring.set_password('autopilot-mcp', 'bw_master', getpass.getpass('Master password: ')); print('stored')"This writes to service autopilot-mcp, username bw_master. Confirm without
printing the value:
uv run python -c "import keyring; v = keyring.get_password('autopilot-mcp', 'bw_master'); print(f'present={v is not None} length={len(v) if v else 0} backend={keyring.get_keyring().__class__.__name__}')"
# present=True length=<your pw length> backend=WinVaultKeyring4. Smoke-test the unlock loop
Runs the real path — keyring read, daemon start, unlock, list, lock — without printing the password:
uv run python -c "
import credentials
c = credentials.BitwardenClient()
print(c.vault_status())
c.lock()
"A transport: serve, status: unlocked, and a non-zero item_count mean
setup is done. A transport: cli line means the daemon could not start —
serve_unavailable in the same output says why.
Maintenance
Rotate the master password — re-stash; the entry is overwritten in place:
uv run python -c "import keyring, getpass; keyring.set_password('autopilot-mcp', 'bw_master', getpass.getpass('New master password: '))"Remove the keyring entry (the MCP then fails at startup until restored):
uv run python -c "import keyring; keyring.delete_password('autopilot-mcp', 'bw_master')"bwfell off PATH — open a new shell (winget's PATH update doesn't reach already-open shells); if still missing, re-run the install from step 1.Force a re-sync —
vault_status(sync=True)from the MCP, orbw syncfrom a shell. Only needed if the vault was edited elsewhere and you don't want to wait outAUTOPILOT_BW_SYNC_TTL_MINUTES.Duplicate entries for one site — several logins can legitimately share a URL (one per account). Lookups refuse to guess between them; pass
account="<username>"tofill_login/get_totp, orvault_item=<id>from the ids the error lists.Log out —
bw logoutdrops the account from localbwstate; repeat steps 2–3 to restore.
Initial browser session setup
Each profile gets one persistent browser profile the first time it's opened. For sites where you want the session pre-established (to handle 2FA challenges / "remember me" outside the MCP flow):
uv run python scripts/manual_login.py <url>A visible Camoufox window opens at the URL. Log in, complete 2FA, check
"remember me", close the window. The profile at data/profiles/<eTLD+1>/
persists across headless MCP invocations.
Environment variables
All optional — defaults are sane for local use.
Variable | Default | Description |
|
| Set |
|
| Per-page navigation/action timeout, in ms. |
|
| Wall-clock cap on a single tool call. |
|
| Wall-clock cap on a |
|
| Timeout for a single |
|
|
|
|
| How stale the local snapshot may get before a read re-syncs. |
|
| How long to wait for |
|
| Where sibling MCP processes rendezvous on one shared daemon. |
|
| Bind interface for the local file server. |
|
| Bind port for the local file server ( |
|
|
|
|
| Root log level for all |
| — | Override the Bitwarden CLI data directory (standard |
Credentials are pulled from Bitwarden — there are no per-site username/password environment variables.
Development
uv sync --extra dev
uv run camoufox fetch
uv run ruff check .
uv run pytest
uv run python server.py # stdio modeThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA browser automation server providing Playwright capabilities for controlling web browsers, capturing screenshots, extracting content, and performing complex interactions through an MCP interface.6Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server for browser automation that allows AI to perform web tasks using Playwright through direct commands, reusable YAML shortcuts, or custom scripts. It features secure environment variable management and guided automation creation to build robust, repeatable browser workflows.22MIT
- AlicenseAqualityAmaintenanceA high-performance browser automation MCP server that provides AI agents with a fast, persistent Chromium instance via Playwright. It features reference-based element interaction, snapshot diffing, and manual handoff capabilities to handle complex tasks like CAPTCHAs.611832MIT
- AlicenseBqualityAmaintenanceBrowser automation MCP server with persistent memory for AI assistants, enabling automated web testing and workflow replay with self-healing selectors.543MIT
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TylerFlar/autopilot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server