Chrome Extension BridgeSAFE
A chrome extension bridge that allows you to connect to a mcp server to use global window object.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Chrome extension that establishes a WebSocket connection between web pages and a local MCP server. This allows you to interact with web page resources and execute functions from your mcp server.
Inspired by playcanvas/editor-mcp-server.
Overview
This project consists of two main components:
- Chrome Extension: Injects a client script into web pages that establishes a WebSocket connection to your local server.
- Local MCP Server: A WebSocket server that can send commands to the extension and receive responses.
With this setup, you can:
- Access browser APIs and DOM elements from your local server
- Execute JavaScript functions in the context of web pages
- Retrieve resources and information from web pages
- Especially, access the global object like editor, e.x : https://threejs.org/editor/. You can use
window.editorwhich is exposed by the website to control the editor. Just like playcanvas/editor-mcp-server.
Installation
Setup
- Clone the repository:
git clone https://github.com/yourusername/chrome-extension-socket-mcp.git cd chrome-extension-socket-mcp
- Install dependencies:
npm install
Development
Run the following command to build the extension in development mode:
npm run debug
Loading the Extension
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" by toggling the switch in the top right corner
- Click "Load unpacked" and select the
extensionfolder from this project - The extension is now installed. You should see a small red indicator in the top right corner of any web page indicating "MCP Extension Loaded"
Usage
Server-side
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport 2960bcc12713OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add chrome-extension-socket-mcp -- npx -y [email protected]
{
"mcpServers": {
"chrome-extension-socket-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
alert | read | use window.alert |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (4 observation(s))
- Shell
- declared (4 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, ws, zod, @eslint/js, @types/ws, eslint, globals, tsx
Gates applied: no_behavioural_pass.
2960bcc12713full audit observations/trust-audit/mcp-server/oanakiaja__chrome-extension-bridge.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 2960bcc12713 | SAFE | B | 89 | first audit |
Questions
What is the Chrome Extension Bridge MCP server?
A chrome extension bridge that allows you to connect to a mcp server to use global window object.
What tools does Chrome Extension Bridge expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Chrome Extension Bridge safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Chrome Extension Bridge need?
No credential environment variables were found in its source, so it appears to need none.
How does Chrome Extension Bridge run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as chrome-extension-socket-mcp at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (2960bcc12713), read on 2026-10-08. The repository is watched and re-audited when it changes.