Browser automation is essential for web scraping, testing, and workflow automation. While Claude Code doesn't have built-in browser control, MCP servers provide powerful browser automation capabilities that let you interact with web pages, take screenshots, fill forms, and more. Here are the best options available.
Recommended MCP Servers
Playwright MCP
microsoft/playwright-mcp
Official Microsoft Playwright MCP server, enabling LLMs to interact with web pages through structured accessibility snapshots.
Key Features
- Official Microsoft support and maintenance
- Structured accessibility snapshots for reliable element targeting
- Cross-browser support (Chromium, Firefox, WebKit)
- Headless and headed mode support
Installation
npx @anthropic-ai/playwright-mcpPlaywright MCP is the gold standard for browser automation with Claude. It's officially maintained by Microsoft, provides structured accessibility data that helps Claude understand page content, and supports all major browsers. The reliability and developer experience are unmatched.
Browser MCP (ByteDance)
agent-infra/mcp-server-browser
Browser automation capabilities using Puppeteer, supporting both local and remote browser connections.
Key Features
- Built on Puppeteer for Chrome/Chromium
- Remote browser connection support
- Local browser automation
- Part of UI-TARS desktop framework
Installation
npm install @agent-infra/mcp-server-browserByteDance's Browser MCP is a solid choice if you're working primarily with Chrome. It leverages Puppeteer's mature ecosystem and adds the ability to connect to remote browser instances, which is useful for testing across different environments.
BrowserMCP
browsermcp/mcp
Automate your local Chrome browser with simple commands.
Key Features
- Simple setup and configuration
- Works with your existing Chrome profile
- Lightweight and focused
- Good for quick automation tasks
Installation
npx browsermcpBrowserMCP is perfect for developers who want quick browser automation without complex setup. It works with your existing Chrome installation and profile, making it ideal for automating tasks you'd normally do manually in the browser.
Playwright MCP Server
executeautomation/mcp-playwright
An MCP server using Playwright for browser automation and web scraping.
Key Features
- Full Playwright feature set
- Web scraping optimized
- Screenshot and PDF generation
- Form automation support
Installation
npx @executeautomation/mcp-playwrightThis community-maintained Playwright server is tailored for web scraping use cases. It provides convenient methods for extracting data from web pages and handles common scraping patterns well. A good choice if your primary goal is data extraction.
Quick Comparison
| MCP | Stars | Best For | Pros | Cons |
|---|---|---|---|---|
| Playwright MCP | 24k+ | Production automation | Official Microsoft support | Larger footprint |
| Browser MCP (ByteDance) | 19k+ | Chrome automation | Remote browser support | Chrome only |
| BrowserMCP | 5k+ | Quick local tasks | Simplest setup | Limited features |
| mcp-playwright | 5k+ | Web scraping | Scraping optimized | Community maintained |
Getting Started
To get started with browser automation in Claude Code:
Choose your MCP: For most users, Playwright MCP is recommended for its reliability and official support.
Install the server:
npx @anthropic-ai/playwright-mcpAdd to Claude Code config: Add the MCP server to your claude_desktop_config.json
Start automating: Ask Claude to navigate to pages, click buttons, fill forms, or extract data.
Example prompt: "Go to github.com and take a screenshot of the trending repositories page."