
A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

A Chrome extension plus local MCP server that bridges web pages to the MCP server over WebSocket, letting the server run tools and read resources in the browser.
Chrome Extension Bridge MCP is cataloged as an MCP server attributed to oanakiaja. A Chrome extension plus local MCP server that bridges web pages to the MCP server over WebSocket, letting the server run tools and read resources in the browser. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Chrome Extension Bridge MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Through a WebSocket connection, using a JSON-RPC-like protocol.
The extension automatically connects to ws://localhost:54319 by default.
mcp:resource.* for browser resources and properties, and mcp:tool.* for executing functions in the browser context.
README.md · 33b97607b6e4 · Fetched 2026-11-13 09:46:18 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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.

This project consists of two main components:
With this setup, you can:
window.editor which is exposed by the website to control the editor. Just like playcanvas/editor-mcp-server.git clone https://github.com/yourusername/chrome-extension-socket-mcp.git
cd chrome-extension-socket-mcp
npm install
Run the following command to build the extension in development mode:
npm run debug
chrome://extensions/extension folder from this projectimport { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
import { Client } from "../src/client";
// Define the port for WebSocket connection
// This should match the port in your Chrome extension's WebSocket connection
const port = 54319;
const client = new Client(port);
// Establish connection to the Chrome extension
await client.connect();
// Create a new MCP server instance with name and version
const server = new McpServer({
name: "Extension-Socket-Server",
version: "1.0.0",
});
// Register a tool that executes the window.alert function in the browser
// This demonstrates how to interact with browser APIs from your server
server.tool(
"alert", // Tool name
"use window.alert", // Tool description
{ message: z.string() }, // Tool parameters schema using Zod
async ({ message }) => { // Tool implementation function
// Call the extension to execute alert in the browser context
const response = await client.callToolExtension("alert", { message });
return response;
}
);
// Register a resource to retrieve the browser's user agent
// This demonstrates how to access browser properties from your server
server.resource(
"userAgent", // Resource name
"useragent://chrome", // Resource URI template
async (uri) => { // Resource handler function
// Get the user agent from the browser
const { content } = await client.callResourceExtension("navigator.userAgent");
// Return the formatted resource
return {
contents: [
{
uri: uri.href,
text: content[0].text,
},
],
};
}
);
// Set up a transport layer for the MCP server
// StdioServerTransport uses standard input/output for communication
const transport = new StdioServerTransport();
await server.connect(transport);
// Handle application termination gracefully
process.on("SIGINT", async () => {
console.log("SIGINT signal received"); // Log when SIGINT is received
await client.dispose(); // Close the WebSocket connection
process.exit(0); // Exit the process
});
The extension automatically connects to ws://localhost:54319 by default. You can modify this in extension/content.js.
The extension exposes two main entry points for server commands:
mcp:resource.* - For accessing browser resources and propertiesmcp:tool.* - For executing functions in the browser contextnew Client(port) - Create a new client instance connecting to specified portconnect() - Connect to the MCP servercallToolExtension(toolName, params) - Call a tool in the browsercallResourceExtension(resourceName, params) - Get a resource from the browserdispose() - Close the connectionThe extension uses a simple JSON-RPC-like protocol:
Request:
{
"id": "unique-request-id",
"method": "mcp:resource.navigator.userAgent",
"params": {}
}
Response:
{
"id": "unique-request-id",
"result": "Mozilla/5.0 ..."
}
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Chrome Extension Bridge MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/chrome-extension-bridge-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.