chromium-sidecar

chromium-sidecar

Enables local AI agents to operate the user's existing browser session via a Manifest V3 extension and native messaging, supporting tabs, DOM snapshots, clicks, form input, JavaScript, screenshots, cookies, network capture, and Arc Spaces.

Category
访问服务器

README

Chromium Sidecar

Chromium Sidecar lets a local AI agent operate the browser session you already use. It combines a Manifest V3 extension, a local Native Messaging host, a command-line client, and a Codex plugin in one repository.

The portable core uses Chromium extension APIs for tabs, DOM snapshots, clicks, form input, JavaScript, screenshots, cookies, and filtered network capture. Optional providers add browser-specific features; the included Arc provider can list and focus Spaces on macOS.

Install

Requirements:

  • macOS
  • Node.js 20 or newer
  • Arc, Chrome, Chromium, Brave, Edge, or Vivaldi
  • Codex CLI, if the Codex plugin is wanted

Clone this repository, then run:

git clone https://github.com/nextster/chromium-sidecar.git
cd chromium-sidecar
npm run setup

The setup command:

  1. Copies the extension to ~/.chromium-sidecar/extension.
  2. Installs the Native Messaging runtime under ~/.chromium-sidecar.
  3. Registers it for the supported Chromium browsers.
  4. Adds this repository as a local Codex marketplace and installs the chromium-sidecar plugin when Codex is available.
  5. Opens the installed browser's extensions page.

Chromium requires one manual step for an extension that is not store-published:

  1. Enable Developer mode on the extensions page.
  2. Choose Load unpacked.
  3. Select ~/.chromium-sidecar/extension.
  4. Open the extension details and enable Allow User Scripts if the browser shows that toggle.
  5. Reload Codex so it discovers the new plugin.

Run npm run setup again to update all installed components. Once version 0.4.0 is loaded, setup also asks the running extension to reload itself. Useful options are --no-open, --no-codex, and --dry-run:

npm run setup -- --no-open

What It Exposes

The Codex MCP server provides:

  • Browser status and provider discovery
  • Tab listing, background tab creation, navigation, and guarded cleanup
  • Compact DOM snapshots with stable element refs
  • Click, fill, select, wait, and JavaScript execution
  • Viewport screenshots
  • Redacted cookie access and filtered network capture
  • Replayable curl generation
  • Arc Space listing and explicit Space focusing on macOS

Agent-created tabs open in the background by default and are tracked for cleanup. Tabs that predate the MCP session cannot be closed without an explicit force flag.

CLI

The installer places the CLI at ~/.chromium-sidecar/bin/chromium-sidecar:

~/.chromium-sidecar/bin/chromium-sidecar status
~/.chromium-sidecar/bin/chromium-sidecar extension-reload
~/.chromium-sidecar/bin/chromium-sidecar tabs
~/.chromium-sidecar/bin/chromium-sidecar eval active 'document.title'
~/.chromium-sidecar/bin/chromium-sidecar arc-spaces
~/.chromium-sidecar/bin/chromium-sidecar capture-start --filter example.com
~/.chromium-sidecar/bin/chromium-sidecar capture-stop
~/.chromium-sidecar/bin/chromium-sidecar curl

Captures are stored with owner-only permissions under ~/.chromium-sidecar/captures. Cookie values, authorization headers, and sensitive request fields are redacted unless raw capture is explicitly requested.

Architecture

Codex plugin or CLI
        |
        | NDJSON RPC over ~/.chromium-sidecar/control.sock (0600)
        v
Native Messaging host <-> Chromium Sidecar extension <-> browser APIs
        |
        +-> optional providers, including Arc Spaces through JXA

There is no HTTP server or listening TCP port. The browser launches the native host and communicates over stdin/stdout; local clients use a private Unix socket.

Compatibility

Version 0.4.0 keeps migration aliases for the former Arc-specific build:

  • ARC_CODEX_* environment variables remain accepted.
  • com.artem.arc_codex_bridge is registered as a legacy Native Messaging host alias.
  • ~/.arc-codex-bridge/control.sock is served as a compatibility socket when available.
  • The extension keeps its original signing key, so its stable ID remains eiffkmiekomnbpgamfchhehdafpnfgco.

New integrations should use CHROMIUM_SIDECAR_*, com.chromium_sidecar.bridge, and ~/.chromium-sidecar.

Development

npm test
npm run setup -- --dry-run --no-codex --no-open
npm run package:extension

Repository layout:

extension/                    Manifest V3 browser extension
native-host/                  Native Messaging host, CLI, providers, and tests
plugins/chromium-sidecar/     Codex plugin, MCP server, skill, and tests
scripts/                      Setup and packaging commands
.agents/plugins/              Local Codex marketplace metadata

npm run uninstall-host removes host manifests and runtime launchers. Captures are intentionally preserved.

推荐服务器

Baidu Map

Baidu Map

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

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

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

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

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

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

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

官方
精选
本地
TypeScript
VeyraX

VeyraX

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

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

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

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

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

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

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

官方
精选