Skip to main content
Glama
Background Browser MCP

Background Browser MCP

by edwin-hou

Background Browser MCP

Give Codex and, optionally, ChatGPT access to a separate signed-in browser on your Windows PC. Routine browsing runs headless. You sign in directly on each website once, then reuse the saved session through MCP.

The project uses Playwright MCP, a local setup dashboard, a persistent Chrome profile, and recovery supervisors. It does not call a model API or require an OpenAI API key. ChatGPT access optionally uses an authenticated OAuth gateway and your own ngrok account.

Quick start on Windows

  1. On Windows, install Node.js 22 or newer and Google Chrome. Node.js 24 LTS and Windows 11 are recommended. Have your usual Codex client available.

  2. Download this repository with Code → Download ZIP, extract it, and open PowerShell in the extracted folder.

  3. Run:

    powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1
  4. Open the generated Open browser setup.url shortcut in your installation folder. The default installation is %USERPROFILE%\.background-browser.

  5. Add a website, select Sign in, and complete its password, SSO, or MFA prompts directly in the separate login window. Return to the dashboard and select Save & close sign-in window. The control stays visible and enables when the window is ready.

  6. Merge the generated codex-config.example.toml from your installation folder into your Codex MCP configuration, then reload the connection. It includes the correct paths for the local bridge, which keeps the Codex connection alive across browser-service restarts. The Codex instructions also describe the compatible direct HTTP connection.

Ask Codex: “Use my background browser to open the website I saved and verify that I am signed in.” A saved website card or a healthy service does not establish that its account session works.

Full Windows setup · Codex connection · Optional ChatGPT connection

Related MCP server: agent-login

What stays on your PC

Your separate profile and session handoff live under the installation folder. This browser does not reuse your personal Chrome profile. Login windows appear only when you start the sign-in flow; ordinary tool calls use headless Chrome. Saved sessions can expire or be invalidated by the website.

The login window starts installed Chrome directly and connects through Chrome's supported debugging interface. Websites can still restrict automated access; this project does not guarantee sign-in to every Google product or other site. See login troubleshooting.

The private dashboard updates connection status while it is open and highlights confirmed sign-in requirements observed during normal website tasks. It also shows the last received ChatGPT and Codex browser-request outcome, contact time, and failure history. A failed request keeps an attention banner even if the public gateway is reachable; passive health checks and activity on the other connection cannot clear it. A later successful request confirms connection recovery but does not prove the outcome of an earlier interrupted action. Website cards show when sign-in was saved and access was last verified, with an overview separating missing saves, sessions needing a check, recent verified access, and confirmed sign-in requirements. Verification older than 24 hours and unverified saves at least 7 days old receive reminders; those reminders do not declare an account signed out. Saved sessions and unvisited accounts are shown separately from verified access. Account tasks pause for the owner to reconnect when the browser or required account is unavailable. They do not substitute another browser/profile, scripts, connectors/APIs, cached files, memory, or public search unless the owner explicitly authorizes a different route for that task.

The private dashboard shortcut contains a local access token. The optional OAuth gateway has a separate owner passphrase. Keep both, your ngrok authtoken, browser data, and OAuth state off GitHub and out of chat messages. Each friend installs their own runtime and signs into their own accounts. Sharing this source does not share the author's browser, app, or accounts.

Requests that fail inside ChatGPT before reaching this computer cannot be recorded locally. The dashboard labels gateway reachability separately from observed request outcomes and does not infer client authorization or website sign-in from a healthy gateway. Request receipts contain only fixed reason/status codes, timestamps, and completion certainty; no tool arguments, page URLs, account names, tokens, or raw errors.

Cost and availability

The local browser components have no project service fee. Optional remote access can fit within ngrok's current free plan, which has an assigned development domain and usage caps. This is not a promise that third-party services, subscriptions, or limits will remain free forever. See ngrok's current free-plan limits.

Your Codex/ChatGPT account, available features, workspace policy, and usage limits remain separate. In particular, this project cannot grant access to custom MCP plugins if your ChatGPT account does not have it. The official custom MCP guide describes the web setup and applicable restrictions.

The PC must be awake, signed in, and connected to the internet for remote use. Recovery restarts failed components; it cannot browse while the PC is off, restore an expired website login, or guarantee recovery from every live-but-unresponsive process.

Project layout

Folder

Purpose

runtime/

Browser manager, manual login helper, dashboard, OAuth gateway, and recovery sources

scripts/

Fresh Windows installation and management

plugin/

Generic local plugin source and account-browsing skill; no registered app binding

docs/

Setup, architecture, privacy, and example configuration

The installer does not overwrite your Codex configuration. You can use the direct MCP connection or the optional local plugin template. The repository is source distribution; it is not an OpenAI plugin-store submission.

See architecture and recovery, privacy and security, and troubleshooting. Start with the local Codex connection before adding remote access.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to access content from authenticated web pages by opening a real browser for manual login and session capture. It saves browser profiles locally so users only need to log in once per service for future automated access.
      4
      161 npm
      36
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to access authenticated websites by reusing your existing browser profile and cookies, so you never share passwords and sessions persist between runs.
      5
      5
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Lets AI coding tools drive the user's already-signed-in Chrome browser — reading and snapshotting pages, clicking, typing, uploading files, screenshotting, and inspecting tabs, cookies, console, and network traffic. It works through a local Chrome extension bridge, so no remote debugging port is opened and the real, authenticated browser session is used.
      1 npm
      ISC