cf-account-operator
Provides browser automation for web accounts using Cloudflare Browser Run, with human-in-the-loop login and encrypted profile storage.
Provides tools for managing and tracking browser automation tasks per account.
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.
CF Account Operator
Self-hosted, human-in-the-loop browser automation on Cloudflare Browser Run, exposed as a remote MCP server.
CF Account Operator is designed for people who want an AI client such as Codex to operate their own web accounts without handing passwords to the model. Authentication happens in Cloudflare Live View, browser state is encrypted and versioned in R2, and a Durable Object serializes work per account.
Browser automation can violate a site's terms, trigger anti-bot systems, or suspend an account. You are responsible for obtaining permission and complying with applicable terms and laws. Do not use this project to bypass CAPTCHA, access controls, rate limits, or technical protections.
Status
This is an early v0.1 proof of concept. It supports:
Remote MCP over Streamable HTTP at
/mcpBearer-token authentication, failing closed when unconfigured
Named
noteaccounts stored in D1One Durable Object coordinator per account
Human login through Browser Run Live View
AES-256-GCM encrypted, versioned Playwright storage state in R2
Safe note draft creation that never clicks Publish
Idempotency keys for draft tasks
Domain allowlisting and task leases
It does not yet support publishing, arbitrary browser instructions, local-runner fallback, or a production OAuth flow.
Related MCP server: Tether
Architecture
Codex / MCP client
|
| Streamable HTTP + Bearer token
v
Cloudflare Worker (/mcp)
| | |
| | +-- D1: accounts and task history
| +------------- R2: encrypted browser profiles
v
Account Durable Object
|
+-- per-account lease / browser lifecycle
v
Cloudflare Browser Run -- Live View --> human operator
|
v
note.comPrerequisites
Node.js 22 or newer
A Cloudflare account with Workers and Browser Run enabled
Wrangler authenticated with
npx wrangler loginAn MCP client that can send an
Authorization: Bearer ...header
Deploy
Install dependencies:
npm installCreate storage:
npx wrangler d1 create cf-account-operator
npx wrangler r2 bucket create cf-account-operator-profilesCopy the returned D1 database ID into wrangler.jsonc, then initialize the schema:
npx wrangler d1 execute cf-account-operator --remote --file=schema.sqlGenerate and store secrets. Keep both values private:
openssl rand -hex 32
npx wrangler secret put MCP_API_KEY
openssl rand -hex 32
npx wrangler secret put PROFILE_ENCRYPTION_KEYDeploy:
npm run deployThe MCP endpoint will be https://<worker>.<account>.workers.dev/mcp. The unauthenticated health endpoint is /health.
MCP workflow
Call
account_upsertwith a stable ID such asnote-history.Call
account_login_startand open the returned Live View URL.Log in yourself, complete MFA/CAPTCHA, and select Done.
Call
account_login_completewith the returned task ID.Call
note_draft_createwith a unique idempotency key.Open note normally and review the draft before publishing it yourself.
Available tools:
account_upsertaccounts_listaccount_statusaccount_login_startaccount_login_completenote_draft_createtask_get
Local development
Copy .dev.vars.example to .dev.vars, replace both secrets, and insert a development D1 ID in wrangler.jsonc.
Browser Run requires remote resources:
npm run devRun checks:
npm test
npm run checkSecurity model
Stored browser state is equivalent to a login credential.
Profile objects are encrypted before they reach R2 using AES-256-GCM.
Encryption uses account/version-bound additional authenticated data.
Live View URLs are short-lived bearer credentials. Never log or publish them.
The browser adapter accepts only explicit HTTPS hostnames.
Known-site adapters are preferred over model-driven arbitrary browsing.
v0.1 intentionally has no Publish tool.
For internet-facing production deployments, put Cloudflare Access or an OAuth-capable gateway in front of /mcp in addition to the bearer secret.
Contributing and support
Bug reports and pull requests are welcome. Community support is best-effort. Paid installation, adapter development, and operational support can be offered independently by maintainers; the Apache-2.0 license does not require purchasing support.
If this project saves you time, you can support its maintenance through the GitHub Sponsors button. Commercial setup and adapter work remain separate from the open-source license.
Do not include cookies, Live View URLs, account identifiers, screenshots containing private data, or secret values in issues.
License
Apache License 2.0. See LICENSE.
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.
Your own browser in the cloud, logged in to your sites, shared by you and your AI.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Cloud browsers for AI agents: saved logins, residential IPs, live human takeover, 57 browser tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables governed browser automation for AI agents with human-in-the-loop approval, audit logging, and read-only replay, supporting both ASK and AUTO autonomy modes.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely control a real, logged-in browser with per-site permissions, per-action approvals, secret redaction, and a tamper-evident audit log, all locally without a cloud relay.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to drive the Chrome, Brave, or Edge browser you are already logged into, working in a tab of its own with a visible cursor and real trusted input. You can pause, take over, or hand back control at any time, and consequential actions such as submitting, paying, sending, deleting, or uploading wait for your approval.1Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI agents to browse, click, type and read on any website the user is logged in to, using encrypted local sessions with multiple named accounts per site. It behaves like a human, asks for confirmation before risky actions, and hands control back for CAPTCHAs or 2FA.2860 PyPIMIT