ChromeWire MCP

ChromeWire MCP

Real browser tabs for AI agents through a safe localhost MCP bridge, enabling control of Chrome tabs via MCP-compatible AI CLIs.

Category
访问服务器

README

<div align="center">

⚡ ChromeWire MCP

Real browser tabs for AI agents — through a safe localhost MCP bridge.

MCP Server Node 20+ Windows supported Apache 2.0 Localhost only

ChromeWire MCP connects the official Codex Chrome Extension to MCP-compatible AI CLIs:
GSD / Pi, Codex CLI, Claude Code, Cursor, Windsurf, and other agentic tools.

🌐 Project site · 🧩 Official extension · 🛡 Security · 🧰 Troubleshooting

</div>

Independent project. Not affiliated with OpenAI, Google, Chrome, or the official Codex Chrome Extension team.

🚀 Easy install via your AI agent

Copy one of these prompts into your AI coding agent / CLI assistant. The agent should inspect this repository and follow the bundled install skill at skills/install-codex-chrome-mcp/SKILL.md.

🇺🇸 English prompt

Look into this repository: https://github.com/bakhtiersizhaev/chromewire-mcp
Install ChromeWire MCP in my local AI CLI / agentic MCP setup. Add it as an MCP server for the CLI I am using. Follow the repository instructions and the agent install skill here: skills/install-codex-chrome-mcp/SKILL.md
Verify the required local prerequisites and the official Codex Chrome Extension: https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg
If the extension page is unavailable in my region, tell me that a USA IP via VPN/proxy may be required. Keep the MCP endpoint bound to 127.0.0.1. Run npm test, npm run check, npm run doctor, npm run smoke, then show me the final MCP config.

🇷🇺 Русский промпт

Посмотри этот репозиторий: https://github.com/bakhtiersizhaev/chromewire-mcp
Установи ChromeWire MCP в мой локальный AI CLI / agentic MCP setup. Добавь его как MCP server для CLI, которым я пользуюсь. Следуй инструкциям репозитория и agent install skill: skills/install-codex-chrome-mcp/SKILL.md
Проверь нужные локальные зависимости и официальный Codex Chrome Extension: https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg
Если страница расширения недоступна в моём регионе, скажи, что может понадобиться USA IP через VPN/proxy. MCP endpoint должен оставаться на 127.0.0.1. Запусти npm test, npm run check, npm run doctor, npm run smoke, потом покажи финальный MCP config.

🇨🇳 中文提示词

请查看这个仓库:https://github.com/bakhtiersizhaev/chromewire-mcp
请把 ChromeWire MCP 安装到我的本地 AI CLI / agentic MCP 环境中,并把它添加为当前 CLI 使用的 MCP server。请按照仓库说明和这个 agent install skill 执行:skills/install-codex-chrome-mcp/SKILL.md
请检查所需的本地依赖项和官方 Codex Chrome Extension:https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg
如果该扩展页面在我的地区无法打开,请告诉我可能需要使用 USA IP / VPN / proxy。MCP endpoint 必须保持绑定到 127.0.0.1。请运行 npm test、npm run check、npm run doctor、npm run smoke,然后给我最终 MCP config。

✨ Why this exists

AI browser automation is usually split between fake browser sandboxes, heavy Playwright scripts, and extension-only tools. ChromeWire MCP gives an agent a small, local, inspectable bridge into real browser tabs while keeping the control surface narrow and local-first.

Icon Capability What it means
🧠 Agent-ready Built for MCP-compatible AI CLIs and includes install/debug skills.
🔌 Local MCP endpoint Default endpoint is http://127.0.0.1:8962/mcp.
🧩 Official extension bridge Uses the official Codex Chrome Extension/native-host connection.
🛡 Privacy-minded defaults No cookies, passwords, browser history, or storage are exposed by default.
🧪 Verifiable setup Includes doctor, smoke, syntax checks, and release-readiness tests.
🌍 Human + agent docs English, Russian, Chinese descriptions and copy/paste agent prompts.

🧩 Official Codex Chrome Extension

Install the official Codex Chrome Extension first:

https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg

Direct link: https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg

Availability note: the Chrome Web Store listing may be region-gated for some users. If the official extension page is unavailable in your region, you may need a USA IP via VPN/proxy before installing it. Use only legal, policy-compliant access methods for your location and account.

🏷 Repository category and tags

Category: developer tools · AI browser automation · MCP server · local-first automation

Search keywords: ChromeWire MCP, Codex Chrome Extension MCP, Model Context Protocol, Chrome MCP server, real browser automation, AI CLI browser control, Claude Code Chrome MCP, Codex CLI Chrome, Cursor MCP Chrome, Windsurf MCP Chrome, GSD Pi MCP, browser-use MCP bridge, localhost browser bridge, agentic browser automation.

🧭 What it connects

flowchart TD
    Browser[Browser profile] --> Ext[Official Codex Chrome Extension]
    Ext --> Native[Local native host / browser pipe]
    Native --> Bridge[ChromeWire MCP bridge]
    Bridge --> MCP[Local MCP stdio or HTTP endpoint]
    MCP --> GSD[GSD / Pi]
    MCP --> Codex[Codex CLI]
    MCP --> Claude[Claude Code]
    MCP --> Other[Cursor / Windsurf / other MCP clients]

🖥 Current platform status

Platform Status Notes
Windows Supported Uses local codex-browser-use* named pipes exposed by the official extension/native host. Installer writes the manifest and registers the required HKCU\Software\Google\Chrome\NativeMessagingHosts\... key when the bundled Codex native host is found.
macOS Supported with Codex-launched stdio Installs/checks the Codex Chrome native-host manifest and discovers local /tmp/codex-browser-use/*.sock sockets. Use the stdio MCP entrypoint launched by Codex so the browser socket peer authorization accepts the process.
Linux / Ubuntu Supported when the official Codex native host is present Uses Unix domain sockets from /tmp/codex-browser-use or CODEX_CHROME_SOCKET_DIR. Installer checks standard Codex resource paths and supports CODEX_CHROME_NATIVE_HOST_PATH / CODEX_APP_RESOURCES_PATH overrides.

The package includes cross-platform configuration paths. Windows uses named pipes; macOS and Linux use Unix domain sockets created by the Codex Chrome native host.

On macOS, the Codex browser socket authorizes the connecting process by code signature and process ancestry. For Codex CLI, configure ChromeWire as a stdio MCP server so Codex itself launches it:

[mcp_servers.chromewire]
command = "/Applications/Codex.app/Contents/Resources/node"
args = ["/absolute/path/to/chromewire-mcp/src/stdio.js"]
startup_timeout_sec = 20.0
tool_timeout_sec = 180.0

Starting the macOS bridge from launchd, Homebrew Node.js, or another unsigned parent can leave the extension visible but unreachable with errors such as pipe closed or Working instances: none.

🛡 Security model

  • The server binds to 127.0.0.1 by default.
  • Do not expose this MCP server to the public internet.
  • The bridge does not expose cookies, passwords, browser history, or storage by default.
  • Some tools can still open tabs, click buttons, type text, scroll pages, and read visible text from pages you explicitly target.
  • Only use it on Chrome profiles and machines you own or are authorized to control.

Read docs/SECURITY.md before using this with real accounts.

✅ Requirements

  • Node.js 20+
  • Google Chrome
  • Official Codex Chrome Extension installed and enabled: https://chromewebstore.google.com/detail/hehggadaopoacecdllhhajmbjkdcmajg
  • A working native-host connection from the extension
  • Windows, macOS, or Linux/Ubuntu with the official Codex native host available

🛠 Manual install

git clone https://github.com/bakhtiersizhaev/chromewire-mcp.git
cd chromewire-mcp
npm install
npm run install:codex-native-host
npm test
npm run check
npm run doctor
npm run smoke

On macOS, npm run smoke may return a macos_peer_authorization diagnostic because npm changes the process ancestry. If your final MCP config uses Codex-launched stdio, run this direct live smoke from a Codex-launched shell:

/Applications/Codex.app/Contents/Resources/node scripts/smoke.js

Stdio MCP mode

Use stdio when your MCP client can launch local commands. This is the recommended Codex CLI mode and the required mode on macOS when Codex peer authorization is active.

npm run start:stdio

Codex CLI on macOS:

[mcp_servers.chromewire]
command = "/Applications/Codex.app/Contents/Resources/node"
args = ["/absolute/path/to/chromewire-mcp/src/stdio.js"]
startup_timeout_sec = 20.0
tool_timeout_sec = 180.0

Codex CLI on Windows/Linux:

[mcp_servers.chromewire]
command = "node"
args = ["/absolute/path/to/chromewire-mcp/src/stdio.js"]
startup_timeout_sec = 20.0
tool_timeout_sec = 180.0

HTTP MCP mode

Use HTTP when your MCP client supports Streamable HTTP MCP and you want to keep the bridge running separately.

npm start

Default endpoint:

http://127.0.0.1:8962/mcp

Override host/port:

CODEX_CHROME_MCP_HOST=127.0.0.1 CODEX_CHROME_MCP_PORT=8970 npm start

🔌 MCP client config

{
  "mcpServers": {
    "chromewire": {
      "type": "http",
      "url": "http://127.0.0.1:8962/mcp"
    }
  }
}

See examples/gsd.mcp.json.

👤 Profile selection

Profiles are discovered from the local Chrome user data directory. No profile names or IDs are hardcoded.

Useful tools:

  • codex_chrome_list_profiles
  • codex_chrome_set_profile
  • codex_chrome_health

Preferences are stored outside the repository by default:

~/.codex-chrome-mcp/profile-preference.json

🤖 Agent install skill

An AI agent can install this bridge by following skills/install-codex-chrome-mcp/SKILL.md.

📜 Attribution and forks

This project uses Apache-2.0 plus a NOTICE file. Forks, redistributions, packages, and derivative works must preserve attribution to the original project in NOTICE and in the project README or equivalent documentation.

🌍 Short descriptions

See docs/DESCRIPTIONS.md for English, Russian, and Chinese descriptions.

📚 Documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选