Skip to main content
Glama
edwin-hou

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 session & return to background.

  6. Add this server to Codex as Streamable HTTP, then restart/reload its MCP connection:

    http://127.0.0.1:8933/mcp

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: Browser MCP

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 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.

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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    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
    116 npm
    36
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI agents to drive your real, logged-in Chrome browser with existing sessions and cookies, bypassing CAPTCHA and anti-bot measures, with support for multi-session and human-in-the-loop workflows.
    40
    58
    MIT
  • A
    license
    A
    quality
    B
    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