Browser MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Browser MCP Server navigate to example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌐 Browser MCP Server
The most comprehensive Browser MCP Server for AI agents — 70 tools with human-like behavior, stealth anti-detection, session reuse, multi-browser support, 50+ device presets, and token-optimized outputs.
Built on Playwright + Model Context Protocol.
✨ Key Features
Feature | Description |
🤖 Human-Like Behavior | Bezier curve mouse movements, variable-speed typing, smooth scrolling — evades bot detection |
🛡️ Stealth Anti-Detection | WebGL spoofing, canvas fingerprint noise, navigator.webdriver hidden, plugin/language spoofing |
🔄 Session Reuse | Connect to existing Chrome via CDP or user-data-dir — keeps cookies, logins, tabs |
🌍 Multi-Browser | Chromium, Firefox, WebKit — test across all engines |
📱 50+ Device Presets | iPhone, iPad, Pixel, Galaxy, OnePlus, Desktop — full viewport/UA/touch emulation |
🌐 Proxy Support | HTTP/HTTPS/SOCKS5 proxy with bypass rules |
📊 Network Monitoring | Auto-capture all requests/responses, console logs, filter by type |
📸 Visual Annotation | mark_page: numbered boxes on interactive elements — massive token savings |
💾 Storage State | Save/load cookies + localStorage for cross-session persistence |
🎯 Smart Actions | Natural language commands: "click Login", "type hello into search" |
📉 Token Optimized | Compact outputs, configurable truncation — saves 60-80% tokens vs competitors |
🎬 Video Recording | Record browser sessions for debugging and replay |
📍 Geolocation | Override latitude/longitude for location-based testing |
🔒 HTTPS Errors | Ignore certificate errors for internal/staging sites |
Related MCP server: ScrapeLab MCP
🚀 Quick Start
Install
git clone https://github.com/user/browser-mcp-server.git
cd browser-mcp-server
npm install
npx playwright install
npm run buildRun
# Auto-detect: tries CDP on port 9222, falls back to launching a new browser
node dist/index.js
# Connect to existing Chrome (preserves your logged-in sessions)
chrome --remote-debugging-port=9222
node dist/index.js --cdp http://localhost:9222
# Reuse Chrome profile (keeps all cookies, logins, extensions)
node dist/index.js --user-data-dir "C:\Users\you\AppData\Local\Google\Chrome\User Data"
# Launch Firefox with iPhone emulation and proxy
node dist/index.js --browser firefox --device "iPhone 15" --proxy-server http://proxy:8080VS Code MCP Configuration
Add to .vscode/mcp.json:
{
"servers": {
"browser": {
"type": "stdio",
"command": "node",
"args": ["path/to/browser-mcp-server/dist/index.js"]
}
}
}Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"browser": {
"command": "node",
"args": ["path/to/browser-mcp-server/dist/index.js"],
"env": {}
}
}
}🛠️ All 70 Tools
Connection (1)
Tool | Description |
| Connect to browser (CDP/profile/temp launch). Multi-browser, device emulation, proxy. |
Navigation (5)
Tool | Description |
| Navigate to URL with configurable wait conditions |
| Go back in browser history |
| Go forward in browser history |
| Reload current page |
| Wait for page navigation to complete |
Page/Tab Management (4)
Tool | Description |
| List all open tabs |
| Open new tab (optionally with URL) |
| Close a tab by ID |
| Bring a tab to front/focus |
Interaction — Human-Like (14)
Tool | Description |
| Click element with Bezier curve mouse movement |
| Type with human-like keystroke timing |
| Fill multiple form fields with natural pauses |
| Select dropdown option by value or label |
| Check/uncheck checkbox or radio button |
| Hover with natural mouse movement |
| Press key or combo (Enter, Ctrl+C, Tab, etc.) |
| Scroll with smooth human-like motion |
| Scroll element into view |
| Wait for element to appear/disappear |
| Wait for specific text on page |
| Drag element to target with natural motion |
| Upload file(s) to input |
| Accept or dismiss browser dialogs |
Reading/Observation — Token-Optimized (14)
Tool | Description |
| Get visible text (default 4000 chars) |
| Get HTML (truncated to save tokens) |
| Get element text content |
| Get element attribute value |
| Get form element value |
| Quick true/false existence check |
| Count elements matching selector |
| Get element position and size |
| Screenshot page or element (PNG/base64) |
| Compact ARIA accessibility tree |
| List form elements (compact format) |
| List page links (deduplicated) |
| Extract table data as structured JSON |
| Run JavaScript in page context |
Cookies & Storage (10)
Tool | Description |
| Get cookies (compact format) |
| Set cookies |
| Clear all cookies |
| Get localStorage |
| Set localStorage key-value pairs |
| Get sessionStorage |
| Set sessionStorage key-value pairs |
| Clear localStorage, sessionStorage, or both |
| Save cookies + localStorage to JSON file |
| Load cookies + localStorage from JSON file |
Network Monitoring & Control (8)
Tool | Description |
| Wait for all network requests to finish |
| Wait for URL to match pattern |
| Wait for network response matching URL |
| Wait for network request matching URL |
| Get captured network requests/responses |
| Get captured console messages |
| Block URLs by pattern (ads, trackers, etc.) |
| Set custom HTTP headers |
Device & Viewport (3)
Tool | Description |
| Set viewport size for responsive testing |
| Emulate device (50+ presets) |
| List all available device presets |
Geolocation & Permissions (3)
Tool | Description |
| Override browser geolocation |
| Grant browser permissions |
| Clear all granted permissions |
Frame/iFrame Support (3)
Tool | Description |
| List all frames on the page |
| Run JavaScript in a specific frame |
| Click element inside a frame |
PDF (1)
Tool | Description |
| Save page as PDF (A4, Letter, etc.) |
Visual Annotation — mark_page (5)
Tool | Description |
| Annotate page with numbered boxes on interactive elements |
| Remove annotations |
| Click by index from mark_page |
| Type into element by index from mark_page |
| Mark + screenshot (best for visual agents) |
Smart Tools (2)
Tool | Description |
| Ultra-compact page summary (minimal tokens) |
| Natural language browser action |
Browser Management (2)
Tool | Description |
| Get browser config details |
| Close browser and cleanup |
📱 Supported Device Presets (50+)
iPhones: SE, 12 Mini, 12, 12 Pro, 12 Pro Max, 13, 13 Pro, 14, 14 Pro, 14 Pro Max, 15, 15 Pro, 15 Pro Max, 16 Pro Max
iPads: Mini, Air, Pro 11, Pro 12.9, 10th Gen
Android: Pixel 5, 6, 7, 8 Pro, Galaxy S21, S23 Ultra, Z Fold 5, A54, OnePlus 12, Moto G, Xiaomi 14, Huawei P60
Desktop: Chrome 1920x1080, Chrome 1440, Firefox, Safari, Edge, Small Laptop, Ultrawide
Landscape: iPhone Landscape, iPad Landscape, Android Landscape
🔧 CLI Options
CONNECTION:
--cdp <url> Connect via Chrome DevTools Protocol
--user-data-dir <path> Launch browser with user profile
--executable-path <path> Path to browser executable
BROWSER:
--browser <engine> chromium, firefox, or webkit (default: chromium)
--headless Run in headless mode
--timeout <ms> Default action timeout (default: 30000)
VIEWPORT & DEVICE:
--viewport <WxH> Viewport size, e.g. 1920x1080
--device <name> Emulate device preset
NETWORK:
--proxy-server <url> Proxy URL
--proxy-bypass <domains> Domains to bypass proxy
--ignore-https-errors Ignore HTTPS certificate errors
--block-service-workers Block service workers
CONTEXT:
--user-agent <string> Custom user agent
--locale <locale> Browser locale (e.g. en-US)
--timezone <tz> Timezone (e.g. America/New_York)
--color-scheme <scheme> light, dark, or no-preference
--geolocation <lat,lng> Override geolocation
--permissions <list> Comma-separated permissions
SESSION:
--storage-state <path> Load session from JSON file
VIDEO:
--record-video Record browser session
--video-dir <path> Video output directoryEnvironment Variables
Variable | CLI Equivalent |
|
|
|
|
|
|
|
|
|
|
🐳 Docker
docker build -t browser-mcp-server .
docker run -i browser-mcp-server
docker run -i browser-mcp-server --headless --browser chromium🏗️ Architecture
src/
├── index.ts # CLI entry point, MCP server setup
├── browser-manager.ts # Browser lifecycle, multi-engine, stealth, tracking
├── tools.ts # All 70 MCP tools with human-like behavior
├── resources.ts # 6 MCP resources (page, cookies, console, network, etc.)
├── human.ts # Human behavior engine (Bezier curves, natural typing)
├── devices.ts # 50+ device emulation presets
├── utils.ts # Shared utilities (selectors, accessibility, text extraction)
└── mark_page.js # Page annotation script (numbered interactive elements)🔒 Anti-Detection Features
navigator.webdriverset tofalseChrome runtime spoofed
Permissions query overridden
Plugins and languages spoofed
WebGL vendor/renderer overridden (Intel Iris)
Canvas fingerprint noise injection
connection.rttconsistencyAutomation command-line flags disabled
Human-like timing on all interactions
📊 Competitive Advantage
Feature | This Server | Playwright MCP (Microsoft) | mcp-playwright | Browserbase MCP |
Human-like behavior | ✅ Bezier curves | ❌ | ❌ | ❌ |
Stealth anti-detection | ✅ Full suite | ❌ | ❌ | ❌ |
Session reuse (CDP) | ✅ | ✅ | ❌ | ❌ (cloud) |
Multi-browser | ✅ 3 engines | ✅ | ✅ | ❌ |
Device emulation | ✅ 50+ presets | ❌ | ✅ 143 | ❌ |
Token optimization | ✅ Compact outputs | ❌ | ❌ | ❌ |
Network monitoring | ✅ Auto-capture | ❌ | ❌ | ❌ |
mark_page annotation | ✅ | ❌ | ❌ | ❌ |
Smart natural actions | ✅ | ❌ | ❌ | ❌ |
Console log capture | ✅ Auto | ✅ | ❌ | ❌ |
Video recording | ✅ | ❌ | ✅ | ✅ |
iframe support | ✅ | ✅ | ❌ | ❌ |
Total tools | 70 | ~20 | ~30 | ~15 |
📄 License
MIT
Available Tools
75 toolsblock_urlsB
Block network requests matching URL patterns (ads, trackers, images, etc.).
Inputs: patterns (required).
browser_connectB
Connect to a browser. Supports Chromium/Firefox/WebKit, device emulation, proxy, geolocation. Use cdpUrl to reuse existing Chrome sessions with all logins intact.
Inputs: cdpUrl, device, channel, headless, +6 more.
check_checkboxC
Check/uncheck a checkbox or radio.
Inputs: selector (required), pageId, checked.
clear_cookiesB
Clear all cookies in the browser context.
Inputs: no named parameters.
clear_permissionsB
Clear all granted permissions.
Inputs: no named parameters.
clear_storageC
Clear localStorage, sessionStorage, or both.
Inputs: pageId, target.
clickC
Click an element with human-like mouse movement and timing.
Inputs: selector (required), button, pageId, doubleClick.
click_elementB
Click element by index (from mark_page) with human-like mouse movement.
Inputs: index (required), button, pageId.
click_in_frameC
Click an element inside a frame/iframe.
Inputs: selector (required), pageId, frameUrl, frameName, +1 more.
close_browserB
Close browser and cleanup.
Inputs: no named parameters.
close_pageC
Close a tab.
Inputs: pageId (required).
drag_and_dropC
Drag element to target with human-like mouse motion.
Inputs: sourceSelector (required), targetSelector (required), pageId.
element_countC
Count elements matching selector.
Inputs: selector (required), pageId.
element_existsC
Quick check if element exists (returns true/false).
Inputs: selector (required), pageId.
emulate_deviceB
Emulate a device (viewport, user-agent, touch, scale). Supports 50+ presets.
Inputs: device (required), pageId.
evaluate_javascriptC
Run JavaScript in page context.
Inputs: script (required), pageId.
execute_in_frameC
Execute JavaScript in a specific frame/iframe.
Inputs: script (required), pageId, frameUrl, frameName, +1 more.
fill_formC
Fill multiple form fields with human-like pauses between fields.
Inputs: fields (required), pageId, submit.
focus_pageC
Bring a tab to front/focus.
Inputs: pageId (required).
get_accessibility_treeC
Get compact accessibility tree.
Inputs: pageId, maxLength.
get_bounding_boxC
Get element position and size.
Inputs: selector (required), pageId.
get_browser_infoA
Get browser configuration, connection details, and capabilities.
Inputs: no named parameters.
get_console_logsB
Get captured browser console messages (auto-captured since page load).
Inputs: level, pageId, maxEntries.
get_cookiesC
Get cookies (compact: name=value [domain]).
Inputs: url.
get_element_attributeD
Get element attribute.
Inputs: selector (required), attribute (required), pageId.
get_element_textD
Get element text.
Inputs: selector (required), pageId.
get_element_valueC
Get form element value (input, textarea, select).
Inputs: selector (required), pageId.
get_form_elementsC
List form elements (compact one-line-per-element format).
Inputs: pageId.
get_linksC
List page links (compact, deduplicated).
Inputs: pageId, maxLinks.
get_local_storageC
Get localStorage (compact).
Inputs: pageId.
get_network_logC
Get captured network requests/responses (auto-captured since page load).
Inputs: filter, pageId, maxEntries, resourceType.
get_page_contentC
Get visible text content (token-optimized, default 4000 chars).
Inputs: pageId, maxLength.
get_page_htmlC
Get HTML (truncated by default to save tokens).
Inputs: pageId, selector, maxLength.
get_page_summaryB
Ultra-compact page summary: title, URL, headings, element counts. Minimal tokens.
Inputs: pageId.
get_session_storageC
Get sessionStorage (compact).
Inputs: pageId.
get_table_dataB
Extract table data as structured JSON. Returns rows with header-based keys.
Inputs: pageId, selector.
go_backC
Go back in browser history.
Inputs: pageId.
go_forwardC
Go forward in browser history.
Inputs: pageId.
grant_permissionsC
Grant browser permissions.
Inputs: permissions (required), origin.
handle_dialogC
Accept or dismiss browser dialog.
Inputs: action (required), pageId, promptText.
hoverC
Hover over element with natural mouse movement.
Inputs: selector (required), pageId.
list_devicesB
List all available device emulation presets.
Inputs: no named parameters.
list_framesC
List all frames (iframes) on the page.
Inputs: pageId.
list_pagesB
List open tabs.
Inputs: no named parameters.
load_storage_stateB
Load cookies + localStorage from a saved JSON file.
Inputs: filePath (required).
mark_pageB
Annotate page with numbered boxes on interactive elements. Returns ultra-compact element list. Use click_element/type_into_element by index. Huge token savings vs full HTML.
Inputs: pageId.
mark_page_and_screenshotC
Mark page + screenshot. Best for visual agents.
Inputs: pageId, fullPage.
new_pageC
Open new tab.
Inputs: url.
press_keyC
Press a key or combo (Enter, Control+C, ArrowDown, Tab, Escape).
Inputs: key (required), pageId.
reloadC
Reload the page.
Inputs: pageId.
save_as_pdfC
Save page as PDF.
Inputs: path (required), format, pageId.
save_storage_stateA
Save cookies + localStorage to a JSON file for session persistence.
Inputs: filePath (required).
scrollC
Scroll with human-like smooth motion.
Inputs: direction (required), amount, pageId, selector.
scroll_to_elementC
Scroll element into view with human-like motion.
Inputs: selector (required), pageId.
select_optionD
Select dropdown option.
Inputs: selector (required), label, value, pageId.
set_cookiesD
Set cookies.
Inputs: cookies (required).
set_extra_headersB
Set custom HTTP headers for all subsequent requests.
Inputs: headers (required).
set_geolocationB
Override browser geolocation. Grant geolocation permission automatically.
Inputs: latitude (required), longitude (required), accuracy.
set_local_storageC
Set localStorage key-value pairs.
Inputs: items (required), pageId.
set_session_storageC
Set sessionStorage key-value pairs.
Inputs: items (required), pageId.
set_viewportC
Set viewport size. Useful for responsive testing.
Inputs: width (required), height (required), pageId.
smart_actionC
Natural language browser action with human-like behavior. Examples: 'click Login', 'type hello into search', 'scroll down'.
Inputs: action (required), pageId.
take_screenshotC
Screenshot page or element.
Inputs: path, pageId, fullPage, selector.
type_into_elementC
Type into element by index (from mark_page) with human-like typing.
Inputs: text (required), index (required), pageId, clearFirst, +1 more.
type_textB
Type text with human-like keystroke timing and natural delays.
Inputs: text (required), pageId, selector, clearFirst, +1 more.
unmark_pageC
Remove annotations.
Inputs: pageId.
upload_fileC
Upload file(s) to input.
Inputs: selector (required), filePaths (required), pageId.
wait_for_elementD
Wait for element to appear.
Inputs: selector (required), state, pageId, timeout.
wait_for_network_idleD
Wait for network idle.
Inputs: pageId, timeout.
wait_for_requestC
Wait for a network request matching URL pattern.
Inputs: urlPattern (required), pageId, timeout.
wait_for_responseC
Wait for a network response matching URL pattern.
Inputs: urlPattern (required), pageId, timeout.
wait_for_textC
Wait for specific text to appear on the page.
Inputs: text (required), pageId, timeout.
wait_for_urlC
Wait for URL to match pattern.
Inputs: urlPattern (required), pageId, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 75 tools
Several tools have overlapping purposes: click/click_element/smart_action, type_text/type_into_element, get_page_content/get_page_html/get_page_summary, and many wait_for_* variants. Descriptions help, but the large number of near-duplicate interaction and retrieval paths creates high selection ambiguity.
Most names use snake_case and are readable, but the verb/noun conventions are mixed: browser_connect and element_exists are noun-first, while navigate, hover, scroll, and click are bare verbs. The set is not chaotic, but it does not follow one predictable pattern.
75 tools is far beyond a well-scoped browser automation surface. Many tools are redundant convenience variants, and the volume makes tool selection harder rather than more capable.
The surface covers navigation, element interaction, forms, storage, cookies, network, console, frames, dialogs, device emulation, and session persistence. Minor gaps remain around less common interactions such as right-click/double-click or download handling, but most browser workflows are covered.
Maintenance
Related MCP Connectors
Cloud browsers for AI agents: saved logins, residential IPs, live human takeover, 57 browser tools.
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to perform undetectable browser automation that bypasses Cloudflare, antibots, and social media blocks. Provides 105 tools for element extraction, network debugging, and real-world web scraping with a 98.7% success rate on protected sites.187 PyPI3,387MIT

ScrapeLab MCPofficial
AlicenseNot gradedqualityDmaintenanceEnables undetectable web scraping and browser automation for AI agents with 84 tools including stealth navigation, element extraction, network interception, and auto cookie consent dismissal. Bypasses anti-bot systems like Cloudflare and DataDome while providing LLM-ready markdown output and full Chrome DevTools Protocol access.MIT- AlicenseAqualityDmaintenanceEnables AI agents to control a browser with 30 tools for navigation, interaction, extraction, and tab management, supporting human-like browser automation.3614 npmMIT
- FlicenseNot gradedqualityBmaintenanceProvides 29 stealth-browsing tools for AI agents, enabling undetected web automation and scraping through a patched Chromium engine.821-