Parallel Browser MCP

io.github.etairl由 GitHub 账号 etairl 发布v0.1.14更新于 Oct 24, 2026

MCP server for parallel browser automation across multiple providers.

发布方自己的服务:Parallel Search MCP

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

让助手在本地 Playwright 或云端浏览器服务商上并行运行并控制多个浏览器会话。

可以做什么
通过 MCP 提供数字会话模型,使一个客户端可以同时创建和控制多个浏览器会话。会话工具包括 start_session、close_session、close_all_sessions 和 get_sessions,每个 browser_* 工具都接受 sessionId。浏览器工具涵盖导航、点击、表单填写、截图、快照、页面结构、定位器、键盘与鼠标操作、文件上传、等待和 JavaScript 执行。服务商已抽象化:本地 Playwright Chromium、Browserbase、Anchor Browser 和 Cloudflare Browser Run。
适用场景
适合助手需要操作真实网页、并发执行多个浏览任务,或用不同浏览器服务商测试同一流程的场景。也适合需要截图、页面快照或表单交互而非纯文本抓取的代理工作流。
运行要求
通过 stdio 在本地运行,通常使用 npx parallel-browser-mcp@latest,因此需要 Node.js。本地 playwright 服务商无需凭据;browserbase 需要 BROWSERBASE_API_KEY 和项目 ID,anchor 需要 ANCHOR_API_KEY,cloudflare 需要 CLOUDFLARE_API_TOKEN 和 CLOUDFLARE_ACCOUNT_ID。服务商设置来自 BROWSER_MCP_CONFIG 或 BROWSER_MCP_CONFIG_PATH。可选的隐身模式需要 cloakbrowser 包并下载较大的 Chromium 二进制文件。
安装前请注意
云端服务商会收到助手浏览的页面和数据,其 API 密钥属于机密。该服务器可在页面中点击、填写表单、上传文件并执行 JavaScript,因此可能提交数据或在真实网站上触发操作。可选的 CloakBrowser 隐身模式用于绕过机器人检测,可能与网站条款冲突。服务器日志输出到 stderr。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Parallel Browser MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

parallel-browser-mcp

[npm version] [npm downloads]

parallel-browser-mcp is an MCP server for parallel browser automation. It exposes a numeric session model over MCP so one client can create and control multiple browser sessions at the same time across multiple browser providers.

Supported providers:

  • playwright for local Chromium
  • browserbase via @browserbasehq/sdk
  • anchor via anchorbrowser
  • cloudflare via Cloudflare Browser Run

Each browser session gets a numeric ID like 1, 2, 3, and every browser_* tool accepts a sessionId.

Features

  • Multiple concurrent browser sessions in memory
  • Provider abstraction shared across Browserbase, Anchor Browser, Cloudflare Browser Run, and local Playwright
  • MCP session tools:
    • start_session
    • close_session
    • close_all_sessions
    • get_sessions
  • Browser tools:
    • browser_navigate
    • browser_go_back
    • browser_click
    • browser_fill
    • browser_fill_form
    • browser_screenshot
    • browser_snapshot
    • browser_hover
    • browser_drag
    • browser_select_option
    • browser_generate_locator
    • browser_get_page_structure
    • browser_evaluate
    • browser_keyboard_press
    • browser_keyboard_type
    • browser_mouse_move
    • browser_mouse_click_xy
    • browser_mouse_drag
    • browser_upload_file
    • browser_wait_for_selector
    • browser_wait_for_timeout

Quick Start

bash
corepack pnpm installcorepack pnpm build

Run locally over stdio:

bash
node dist/index.js

Run it as an npm package CLI:

bash
npx parallel-browser-mcp@latest

Configuration

Provider-specific settings are configured at the MCP server configuration level, not per tool call.

The server reads config in this order:

  1. BROWSER_MCP_CONFIG
  2. BROWSER_MCP_CONFIG_PATH
  3. direct env defaults
  4. built-in defaults

Recommended config shape:

json
{  "defaultProvider": "playwright",  "providers": {    "browserbase": {      "projectId": "proj_123",      "keepAlive": true    },    "anchor": {      "recording": false    },    "playwright": {      "launchOptions": {        "headless": true      },      "useCloakBrowser": false    }  }}

Stealth Chromium via CloakBrowser

The playwright provider can optionally launch CloakBrowser instead of vanilla Chromium for sessions that need to bypass bot detection. Enable it per-config or via env:

json
{  "providers": {    "playwright": { "useCloakBrowser": true }  }}
bash
PLAYWRIGHT_USE_CLOAKBROWSER=true

cloakbrowser is an optional peer — install it only when you need stealth:

bash
npm install cloakbrowser

The CloakBrowser binary (~200MB stealth Chromium) is downloaded automatically on the first session launch. Existing launchOptions / contextOptions continue to apply, and the rest of the provider behaves identically to standard Playwright.

Required credentials by provider:

  • playwright: none
  • browserbase: BROWSERBASE_API_KEY, plus a projectId in config or BROWSERBASE_PROJECT_ID
  • anchor: ANCHOR_API_KEY
  • cloudflare: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID

Optional env defaults:

  • BROWSERBASE_PROJECT_ID
  • BROWSERBASE_KEEP_ALIVE
  • BROWSERBASE_CONTEXT_ID
  • BROWSERBASE_PERSIST
  • PLAYWRIGHT_STORAGE_STATE_PATH
  • PLAYWRIGHT_EXECUTABLE_PATH
  • PLAYWRIGHT_CHANNEL
  • PLAYWRIGHT_USE_CLOAKBROWSER (true to launch stealth Chromium via CloakBrowser; requires npm install cloakbrowser)

Installation

Use the standard config below in any MCP client that supports stdio:

json
{  "mcpServers": {    "parallel-browser-mcp": {      "command": "npx",      "args": ["parallel-browser-mcp@latest"],      "env": {        "BROWSER_MCP_CONFIG": "{\"defaultProvider\":\"playwright\",\"providers\":{\"playwright\":{\"launchOptions\":{\"headless\":true}}}}",        "BROWSERBASE_API_KEY": "your_browserbase_key",        "ANCHOR_API_KEY": "your_anchor_key"      }    }  }}
Claude Code

Use the Claude Code CLI to add the server:

bash
claude mcp add parallel-browser-mcp npx parallel-browser-mcp@latest

If you need provider configuration, add the environment variables in your Claude MCP config using the standard config above.

Claude Desktop

Follow the Claude Desktop MCP install flow and use the standard config above in the local MCP configuration file.

Codex

Use the Codex CLI:

bash
codex mcp add parallel-browser-mcp npx "parallel-browser-mcp@latest"

Or add this to ~/.codex/config.toml:

toml
[mcp_servers.parallel-browser-mcp]command = "npx"args = ["parallel-browser-mcp@latest"]
Copilot

Use the Copilot CLI interactive flow:

text
/mcp add

Or add this to ~/.copilot/mcp-config.json:

json
{  "mcpServers": {    "parallel-browser-mcp": {      "type": "local",      "command": "npx",      "tools": ["*"],      "args": ["parallel-browser-mcp@latest"],      "env": {        "BROWSER_MCP_CONFIG": "{\"defaultProvider\":\"playwright\",\"providers\":{\"playwright\":{\"launchOptions\":{\"headless\":true}}}}",        "BROWSERBASE_API_KEY": "your_browserbase_key",        "ANCHOR_API_KEY": "your_anchor_key"      }    }  }}
Cursor

Go to Cursor Settings -> MCP -> Add new MCP Server, then use:

  • command: npx
  • args: parallel-browser-mcp@latest

Or paste the standard config above into the MCP config editor.

Gemini

Add the server to .gemini/settings.json:

json
{  "mcpServers": {    "parallel-browser-mcp": {      "command": "npx",      "args": ["parallel-browser-mcp@latest"],      "env": {        "BROWSER_MCP_CONFIG": "{\"defaultProvider\":\"playwright\",\"providers\":{\"playwright\":{\"launchOptions\":{\"headless\":true}}}}",        "BROWSERBASE_API_KEY": "your_browserbase_key",        "ANCHOR_API_KEY": "your_anchor_key"      }    }  }}
VS Code

Use the MCP install flow in VS Code with the standard config above, or install with the VS Code CLI:

bash
code --add-mcp '{"name":"parallel-browser-mcp","command":"npx","args":["parallel-browser-mcp@latest"]}'

Example Flow

  1. Call start_session with { "provider": "playwright" }
  2. Read the returned session id
  3. Call browser_navigate with { "sessionId": 1, "url": "https://example.com" }
  4. Call any additional browser_* tool with the same sessionId
  5. Call close_session when done

Development

bash
corepack pnpm installcorepack pnpm typecheckcorepack pnpm testcorepack pnpm test:coveragecorepack pnpm buildcorepack pnpm smoke:local

Publishing

This repo is set up to publish as an npm package:

  • the CLI entrypoint is parallel-browser-mcp
  • production builds exclude tests and smoke scripts
  • the published package only includes dist, README.md, and .env.example

Before publishing:

bash
corepack pnpm typecheckcorepack pnpm testcorepack pnpm buildnpm pack --dry-run

GitHub Actions publishing:

  • .github/workflows/publish.yml publishes to npm on GitHub release publication or manual dispatch
  • set the NPM_TOKEN repository secret before using the publish workflow

Examples

  • examples/local contains a standalone npm package that connects to parallel-browser-mcp with @langchain/mcp-adapters and runs a LangChain agent against the local Playwright provider.
  • examples/browserbase contains a standalone npm package that connects LangChain to the published MCP server with Browserbase config and prompts the agent to use browser_screenshot.
  • examples/anchor contains a standalone npm package that connects LangChain to the published MCP server with Anchor config and prompts the agent to use browser_snapshot.
  • examples/cloudflare contains a standalone npm package that connects LangChain to the published MCP server with Cloudflare Browser Run config and prompts the agent to use browser_snapshot.
  • The root .npmignore excludes the full examples directory from npm publishing.

Testing

The repo includes:

  • unit coverage for config loading, providers, registry behavior, session tools, and representative browser tools
  • a local Playwright smoke script in src/smoke/localSmoke.ts

Notes

  • start_session is intentionally small. Provider-specific behavior belongs in MCP configuration, not tool inputs.
  • The server logs to stderr so stdout stays clean for MCP JSON-RPC traffic.
  • Browserbase and Anchor Browser are normalized to Playwright page operations after connection, so the browser tools stay provider-agnostic.

来源:README.md,提交 bde38ec

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.14最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Parallel 集成