parallel-browser-mcp
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 20 GitHub stars
Code Warn
- process.env — Environment variable access in examples/anchor/index.js
- process.env — Environment variable access in examples/browserbase/index.js
- process.env — Environment variable access in examples/cloudflare/index.js
- process.env — Environment variable access in examples/local/index.js
Permissions Pass
- Permissions — No dangerous permissions requested
This tool is an MCP server that enables AI agents to run and control multiple, concurrent browser sessions simultaneously. It provides an abstraction layer that works across several browser automation providers, including local Playwright, Browserbase, Anchor, and Cloudflare.
Security Assessment
Overall Risk: Medium. As a browser automation tool, its core function is to make network requests, navigate web pages, and execute JavaScript (`browser_evaluate`). The audit confirmed no hardcoded secrets are present in the codebase, which is good. However, it requires handling sensitive credentials—such as API keys for cloud providers (Browserbase, Anchor, Cloudflare) and authentication cookies—which must be passed through environment variables. While the tool itself doesn't request dangerous local system permissions, the nature of browser automation means it acts as a conduit for whatever data the AI agent accesses or submits online. Users should ensure strict sandboxing, especially when running locally via Playwright.
Quality Assessment
The project demonstrates strong health metrics. It uses the permissive Apache-2.0 license and is actively maintained, with repository updates as recent as today. It has garnered 20 GitHub stars, indicating a fair amount of early community interest and trust for a niche developer tool. The codebase handles environment variables cleanly through standard configuration files rather than insecurely scattering them throughout the core logic.
Verdict
Use with caution: the tool itself is actively maintained and safe to run, but the inherent risks of granting an AI agent unrestricted browser access require proper credential management and strict oversight.
An MCP server for parallel browser automation by AI agents with multiple cloud providers
parallel-browser-mcp
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:
playwrightfor local Chromiumbrowserbasevia@browserbasehq/sdkanchorviaanchorbrowsercloudflarevia 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_sessionclose_sessionclose_all_sessionsget_sessions
- Browser tools:
browser_navigatebrowser_go_backbrowser_clickbrowser_fillbrowser_fill_formbrowser_screenshotbrowser_snapshotbrowser_hoverbrowser_dragbrowser_select_optionbrowser_generate_locatorbrowser_get_page_structurebrowser_evaluatebrowser_keyboard_pressbrowser_keyboard_typebrowser_mouse_movebrowser_mouse_click_xybrowser_mouse_dragbrowser_upload_filebrowser_wait_for_selectorbrowser_wait_for_timeout
Quick Start
corepack pnpm install
corepack pnpm build
Run locally over stdio:
node dist/index.js
Run it as an npm package CLI:
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:
BROWSER_MCP_CONFIGBROWSER_MCP_CONFIG_PATH- direct env defaults
- built-in defaults
Recommended config shape:
{
"defaultProvider": "playwright",
"providers": {
"browserbase": {
"projectId": "proj_123",
"keepAlive": true
},
"anchor": {
"recording": false
},
"playwright": {
"launchOptions": {
"headless": true
}
}
}
}
Required credentials by provider:
playwright: nonebrowserbase:BROWSERBASE_API_KEY, plus aprojectIdin config orBROWSERBASE_PROJECT_IDanchor:ANCHOR_API_KEYcloudflare:CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID
Optional env defaults:
BROWSERBASE_PROJECT_IDBROWSERBASE_KEEP_ALIVEBROWSERBASE_CONTEXT_IDBROWSERBASE_PERSISTPLAYWRIGHT_STORAGE_STATE_PATHPLAYWRIGHT_EXECUTABLE_PATHPLAYWRIGHT_CHANNEL
Installation
Use the standard config below in any MCP client that supports stdio:
{
"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:
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 DesktopFollow the Claude Desktop MCP install flow and use the standard config above in the local MCP configuration file.
CodexUse the Codex CLI:
codex mcp add parallel-browser-mcp npx "parallel-browser-mcp@latest"
Or add this to ~/.codex/config.toml:
[mcp_servers.parallel-browser-mcp]
command = "npx"
args = ["parallel-browser-mcp@latest"]
Copilot
Use the Copilot CLI interactive flow:
/mcp add
Or add this to ~/.copilot/mcp-config.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.
GeminiAdd the server to .gemini/settings.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:
code --add-mcp '{"name":"parallel-browser-mcp","command":"npx","args":["parallel-browser-mcp@latest"]}'
Example Flow
- Call
start_sessionwith{ "provider": "playwright" } - Read the returned session
id - Call
browser_navigatewith{ "sessionId": 1, "url": "https://example.com" } - Call any additional
browser_*tool with the samesessionId - Call
close_sessionwhen done
Development
corepack pnpm install
corepack pnpm typecheck
corepack pnpm test
corepack pnpm test:coverage
corepack pnpm build
corepack 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:
corepack pnpm typecheck
corepack pnpm test
corepack pnpm build
npm pack --dry-run
GitHub Actions publishing:
.github/workflows/publish.ymlpublishes to npm on GitHub release publication or manual dispatch- set the
NPM_TOKENrepository secret before using the publish workflow
Examples
examples/localcontains a standalone npm package that connects toparallel-browser-mcpwith@langchain/mcp-adaptersand runs a LangChain agent against the local Playwright provider.examples/browserbasecontains a standalone npm package that connects LangChain to the published MCP server with Browserbase config and prompts the agent to usebrowser_screenshot.examples/anchorcontains a standalone npm package that connects LangChain to the published MCP server with Anchor config and prompts the agent to usebrowser_snapshot.examples/cloudflarecontains a standalone npm package that connects LangChain to the published MCP server with Cloudflare Browser Run config and prompts the agent to usebrowser_snapshot.- The root
.npmignoreexcludes the fullexamplesdirectory 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_sessionis 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.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found