apex-browser-mcp

apex-browser-mcp

Local, multi-session MCP server driving real Chrome, Chromium, WebKit, and Safari engines, with attach-to-running-Chrome support, no API keys or cloud required.

Category
Visit Server

README

apex-browser-mcp

Own, local, multi-session browser MCP. One tool surface drives real Chrome, Chromium, WebKit (Safari engine), and real Safari.app — plus attach to an already-running Chrome and drive many isolated sessions on it concurrently. No API keys, no cloud, runs on your machine.

Built because leapfrog / browser-use are Chromium-only (and browser-use needs a per-step LLM key). This spans engines and keeps everything local.

Engines

engine Backend Sessions Use
chrome Playwright chromium, channel=chrome N real Chrome
chromium Playwright chromium (bundled) N headless/CI
webkit Playwright webkit N Safari-engine cross-browser testing
safari safaridriver (WebDriver) 1 (OS limit) real Safari.app
(attach) CDP connectOverCDP N drive your already-running logged-in Chrome

Tools

browser_new_session · browser_attach · browser_navigate · browser_snapshot (indexed refs e1,e2…) · browser_click · browser_type · browser_evaluate · browser_screenshot · browser_list_sessions · browser_close_session

Run

As a daemon (multi-client, non-blocking — recommended):

npm install && npx playwright install chromium webkit
APEX_BROWSER_TRANSPORT=http node src/index.js   # http://127.0.0.1:3010/mcp

On macOS a LaunchAgent (com.apex.browser-mcp) keeps it running across reboots.

As stdio (single client): node src/index.js

Register in an MCP client

{ "mcpServers": { "apex-browser": { "type": "http", "url": "http://127.0.0.1:3010/mcp" } } }

Env

APEX_BROWSER_TRANSPORT (stdio|http) · APEX_BROWSER_PORT (3010) · APEX_BROWSER_MAX_SESSIONS (15) · APEX_BROWSER_HEADLESS (1=headless) · APEX_BROWSER_SHOTS (/tmp)

Auto-attach (opt-in): APEX_BROWSER_AUTOATTACH=1 makes the daemon poll APEX_BROWSER_CDP (default http://127.0.0.1:9222) and adopt a session the moment a debug Chrome appears — surviving boot-ordering and self-healing if that Chrome closes/reopens. Tune with APEX_BROWSER_AUTOATTACH_MODE (default|isolated) and APEX_BROWSER_AUTOATTACH_INTERVAL (ms, 5000).

Attach to your real Chrome

bin/chrome-debug.sh real   # quit Chrome first; relaunches your profile with a debug port
# then: browser_attach { mode: "default" }   → your logged-in session
#       browser_attach { mode: "isolated" }  → fresh stealthed context on the same Chrome

bin/chrome-debug.sh (no arg) uses a safe dedicated automation profile instead.

Safety invariant: attached browsers are never closed by us — sessions detach, your Chrome keeps running.

Test

node test/extensive.js        # 29 checks: engines, concurrency, isolation, errors, interaction, daemon
node test/attach-concurrent.js  # 5 sessions driving ONE attached Chrome simultaneously

Ops

  • restart: launchctl kickstart -k gui/$(id -u)/com.apex.browser-mcp
  • health: curl localhost:3010/health · logs: /tmp/abm-daemon.log

Notes

  • Real Safari.app is single-session (Apple safaridriver limit) and runs an automation window that does not inherit your everyday Safari logins. For real logins use chrome + browser_attach.
  • Node resolved via the mise shim so a version bump won't break the daemon.

MIT © Apex Radius

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured