Web-MCP-Bridge – Connect browser-based LLMs to MCP servers and tools
Web MCP Bridge connects free web versions of ChatGPT, Gemini, and Claude to local MCP servers over WebSockets with fifty percent lower prompt token overhead.
By Dillip Chowdary • Oct 31, 2026 • Source: github.com
Open-source developer Rufus, building under Astrax at astrabots.pro, released Web MCP Bridge, an open-source MIT-licensed extension and local daemon that connects browser-based AI chats directly to local Model Context Protocol tools without requiring paid platform subscriptions or custom API keys. According to github.com's report, the system pairs a Chromium browser extension loaded in developer mode with a local Python daemon to bridge web sessions on ChatGPT, Google Gemini, and Anthropic Claude Web to locally hosted MCP servers. Users interact with free web chat interfaces while giving models controlled access to workstation tools, scripts, and filesystem resources through local sockets.
This breakdown examines the technical architecture, execution security boundaries, operational token footprints, and setup procedures of the Astrax bridge across supported operating systems. The guide is written for software engineers, automation builders, and security practitioners who evaluate browser agent frameworks, run local MCP toolchains, or want to give standard web-based large language model chats structured tool-execution capabilities on personal workstations without maintaining external API endpoints.
Web-MCP-Bridge – Connect browser-based LLMs: what actually changed
Standard consumer browser interfaces for ChatGPT, Gemini, and Claude operate as isolated cloud environments that cannot discover or execute tools hosted on a user's machine. The Astrax project changes this paradigm by placing a lightweight JavaScript adapter inside the active browser tab while running a local companion socket server on the host machine. Instead of relying on native provider tool protocols, the extension injects compact instruction signatures into the conversation stream so models emit structured JSON request blocks directly into normal chat bubbles.
The architecture eliminates traditional server subscriptions and API provisioning previously required to connect desktop tool pipelines to frontier models. The repository supplies dedicated adapters, located at adapters/chatgpt.js, adapters/gemini.js, and adapters/claude.js, each containing approximately 40 lines of code dedicated to specific DOM selectors and submission hooks. Users can register multiple MCP servers inside the extension management popup, set up to five active simultaneously, and toggle the entire bridging layer using a global master switch in the popup or in-page panel.
Web-MCP-Bridge – Connect browser-based LLMs: how it works

Communication begins when a user injects system instructions via a bottom-left page panel in an active ChatGPT, Gemini, or Claude tab. When an LLM decides to trigger an external function, it returns a JSON object identifying the target server, tool name, and call arguments. The extension intercepts this markup, transmits the parameters across a local WebSocket connection to mcp_ws_bridge.py listening on port 8080, and forwards execution to the registered MCP process. After execution finishes, the bridge returns the payload wrapped in structured result tags, which the extension automatically posts back into the chat as unformatted data to defend against prompt-injection attacks.
Binary outputs, audio files, and generated images return as authentic attachments inside the active session rather than truncated base64 text strings, while lengthy textual outputs are uploaded in full. The background layer runs without relying on page timers, protecting long-running tasks from browser tab throttling when windows are hidden or minimized. To ensure models maintain operational context during lengthy conversations, the system injects a single-line reminder with every message alongside periodic full context re-injections. State persistence relies on per-call identification tags, exponential backoff reconnect logic, and keep-alive handling for Manifest V3 background service workers.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
Web-MCP-Bridge – Connect browser-based LLMs: why it matters now
Traditional tool integration approaches force engineers to bypass consumer chat interfaces in favor of commercial API endpoints, incurring recurring per-token inference charges and separate subscription tiers. Web MCP Bridge circumvents that requirement by adapting standard web chat interfaces into fully functional local execution controllers. The extension also compresses tool descriptions into compact name and parameter signatures rather than bulky raw JSON Schema objects, achieving an estimated 50 percent reduction in prompt token consumption across active sessions while displaying live token cost estimates within the popup interface.
Local environment security remains strictly isolated from arbitrary web code through defensive networking boundaries. The Python bridge listens exclusively on local interface 127.0.0.1, enforces token authentication, and restricts incoming WebSocket origins strictly to chrome-extension origins, preventing untrusted websites from pinging active workstation utilities. Users manage execution safety through a three-state permission selector offering Allow always, Ask every time, and Don't allow options configured globally or tailored individually per connected server in both the popup and in-page panel.
Web-MCP-Bridge – Connect browser-based LLMs: who is affected
Software engineers and data scientists using local MCP servers gain an immediate path to experiment with filesystem operations, command runners, and database inspectors from free browser interfaces. Developers can evaluate tool behaviors against three major commercial models simultaneously by switching browser tabs instead of rewriting code for provider-specific tool formats. Because the project includes automated service installers for Windows, macOS, and Linux through install_service.py, individuals running personal workstations can configure background persistence at system login without managing complex background process managers or root system daemons.
At the same time, security teams and developers managing workstation environments must recognize that connecting MCP servers with filesystem or operating system access introduces risks if applied indiscriminately. Astrax explicitly cautions operators to register trusted servers only, as tools possess whatever privileges their parent processes hold. Developers contributing to community tooling also gain a small, extensible codebase where supporting a new AI web platform requires authoring roughly 40 lines of DOM selectors tested with npm test and packaged using npm run pack.
Web-MCP-Bridge – Connect browser-based LLMs: what to watch
Deployment and maintenance require careful operational hygiene across local package dependencies and browser extensions. Installation begins by cloning the repository, installing dependencies from server/requirements.txt via pip, and loading the unpacked folder into Chromium browsers under developer mode. Users can launch a single server using mcp_ws_bridge.py, run the bundled demo_mcp_server.py script, or supply a configuration file structured after servers.example.json to manage multiple daemons concurrently. Removal of system-level persistence is handled symmetrically by executing install_service.py with the uninstall flag.
Future ecosystem developments will center on platform adapter stability and expanding community adapters beyond the initial three browser interfaces. Because consumer web chat frontends frequently update DOM classes, maintainers point users to the project Spanish README for selector-fix guides, architecture schematics, and roadmap updates. As browser providers modify their rendering pipelines or implement stricter content security policies, tracking whether Astrax preserves low-latency WebSocket communication and seamless binary file pasting will determine how reliably web-bridged MCP tooling survives production interface shifts.
Developer Action Items
- ☐ Diff the official changelog for Anthropic / Claude / ChatGPT before you bump — APIs, defaults, and removed flags only.
- ☐ Install through the vendor's documented channel in staging; keep a one-command rollback and time-box the canary.
- ☐ Grep your repo for old flag names, lockfile pins, and plugin versions that the notes mark as breaking.
- ☐ Prefer the first patch cut over the day-zero tag unless you have a reason to be on the leading edge.
- ☐ If HN AI Agents did not name a region, plan, or SKU, screenshot the official availability line before you promise it to users.
Web-MCP-Bridge – Connect browser-based LLMs FAQ
What models and platforms does Web MCP Bridge currently support?
The extension includes dedicated adapters for ChatGPT, Google Gemini, and Claude Web through adapters located in the extension repository.
How does Web MCP Bridge secure local tools against malicious websites?
The Python bridge binds strictly to 127.0.0.1, accepts connections solely from verified chrome-extension origins, supports access tokens, and uses a three-state permission selector.
How does the system reduce token overhead compared to standard tool calling?
The bridge formats tools using concise name and parameter signatures instead of full JSON Schema definitions, reducing token overhead by approximately 50 percent.
How are local MCP servers managed and launched on the host machine?
Users run the Python bridge script over WebSocket port 8080 or install background login services across Windows, macOS, and Linux using the provided service installer script.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement