Browser MCP
Control, inspect, and automate your local Chrome browser with AI using fast, private, native automation.
About this Server
Browser MCP is an open Model Context Protocol server and Chrome extension pairing that enables AI coding assistants like Claude Code, Cursor, Windsurf, and VS Code to automate web browsers directly on your local machine. Because automation runs locally through your real Chrome profile, all active logins and cookies are preserved, latency is near zero, and no activity or private session tokens are sent to remote third-party cloud servers.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •Local web development verification, frontend UI testing, and smoke test workflows directly from your editor
- •Automating complex end-to-end user flows that require active authenticated sessions without creating fake mock logins
- •Inspecting dynamic Single Page Applications (SPAs) and JavaScript-rendered DOM states with zero network round-trip delay
- •Capturing visual regression screenshots and console errors during live coding sessions
- •Headless cloud CI/CD pipelines lacking a desktop display server or Chrome browser instance
- •Massive distributed web scraping across thousands of parallel worker nodes
- •Enterprise corporate environments where installing local browser extensions is strictly prohibited by security group policy
Install & Setup
claude mcp add browsermcp -- npx @browsermcp/mcp@latestExposed Tools & Endpoints
10 toolsFunctions your AI agent can invoke via this Model Context Protocol server
Navigate active browser tab to any specified URL or local development server port.
Click interactive DOM elements targeting CSS selectors, text matches, or viewport coordinates.
Type text into input fields, textareas, and rich-text editors with simulated keystrokes.
Capture high-resolution viewport or full-scroll page screenshots for visual verification.
Extract accessibility tree hierarchies and structured DOM states for semantic LLM reasoning.
Retrieve browser runtime error logs, console warnings, and uncaught JavaScript exceptions.
Pause execution until a specified element appears, navigation completes, or timeout expires.
Hover cursor over navigation menus, dropdowns, and interactive tooltips to reveal UI states.
Dispatch keyboard key events such as Enter, Escape, Arrow keys, or keyboard shortcuts.
Execute drag and drop operations between source and target DOM coordinates.