# mcp-browser-agent

> mcp-browser-agent is an open-source MCP server for browser automation. MCP server giving Claude Desktop browser automation and HTTP request tools via Playwright. It is available on CLI, Self-hosted, macOS, Windows and Linux.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/imprvhub/mcp-browser-agent
- **GitHub stars:** 43
- **License:** MPL-2.0
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-01

## About

Rather than handing a language model a screenshot-only view of the web, this server gives it direct control over a visible browser. It drives Chrome by default and can also use Firefox, Edge or WebKit, keeping one persistent session so a sequence of navigation, clicks, form fills and screenshots builds on earlier steps.

Alongside browsing, it bundles a small API client that sends GET, POST, PUT, PATCH and DELETE requests and returns formatted JSON responses. Browser console output and captured screenshots are exposed as MCP resources that the client can read back.

It suits developers and testers who want Claude Desktop to walk through web flows, check page behaviour or call test endpoints from a conversation. Because the agent can reach localhost and browse untrusted sites, its security notes recommend keeping file URLs disabled unless needed.

## Features

- **Persistent browser session:** Keeps a headful browser open across commands so multi-step flows carry their state forward.
- **DOM interaction tools:** Clicks, fills, selects and hovers elements using selectors.
- **Screenshots and console logs:** Captures full-page or element screenshots and exposes console output as resources.
- **JavaScript execution:** Runs scripts in the page context and returns results along with console logs.
- **HTTP request client:** Sends GET, POST, PUT, PATCH and DELETE requests with custom headers and bodies.
- **Multiple browser engines:** Chooses between Chrome, Firefox, Edge and WebKit through config, flag or environment variable.

## Good for

- Automating a login or form submission while Claude Desktop narrates each step
- Capturing screenshots of search results or page states for review
- Testing dropdowns and other form controls on a web page through natural language
- Calling a JSON API and summarising the response inside a chat session
- Running quick page checks such as counting links or reading the title

## Tools

From the tool list in its README, going by the names, 1 of 12 tools deletes data and 3 change data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `browser_navigate`: Navigate to a URL
- `browser_screenshot`: Capture screenshot
- `browser_click`: Click element
- `browser_fill`: Fill form input
- `browser_select`: Select dropdown option
- `browser_hover`: Hover over element
- `browser_evaluate`: Execute JavaScript
- `api_get` (name suggests: reads): GET request
- `api_post` (name suggests: changes): POST request
- `api_put` (name suggests: changes): PUT request
- `api_patch` (name suggests: changes): PATCH request
- `api_delete` (name suggests: deletes): DELETE request

## FAQ

### Which browsers does mcp-browser-agent support?

Chrome is the default. Firefox, Microsoft Edge and WebKit are also supported through a browser type setting.

### How is mcp-browser-agent started with Claude Desktop?

Add a browserAgent entry to the mcpServers section of claude_desktop_config.json that points to the built dist/index.js file.

### Can mcp-browser-agent open local files?

File URLs are refused by default and only allowed when MCP_BROWSER_ALLOW_FILE_URLS is set to true.

### Does mcp-browser-agent need a browser download after install?

Cloning and running npm install fetches Playwright browsers, but installing from Smithery does not, so other browsers need a separate install command.

### Is mcp-browser-agent free?

Yes. mcp-browser-agent is open source, so you can use and self-host it for free.

### What are the best alternatives to mcp-browser-agent?

The closest alternatives to mcp-browser-agent are mcp-playwright, playwright_mcp, mcp, browser-mcp and MCP-Server-Playwright.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [mcp-playwright](https://ai-powered.com/mcp/mcp-playwright): mcp-playwright is an open-source MCP server for browser automation.
- [playwright_mcp](https://ai-powered.com/mcp/playwright-mcp-3): playwright_mcp is an open-source MCP server for browser automation.
- [mcp](https://ai-powered.com/mcp/mcp-2): mcp is an open-source MCP server for ai models and llm tooling.
- [browser-mcp](https://ai-powered.com/mcp/browser-mcp-4): browser-mcp is an open-source MCP server for browser automation.
- [MCP-Server-Playwright](https://ai-powered.com/mcp/mcp-server-playwright): MCP-Server-Playwright is an open-source MCP server for browser automation.
- [mcp-browser-dev-tools](https://ai-powered.com/mcp/mcp-browser-dev-tools): mcp-browser-dev-tools is an open-source MCP server for browser automation.
- [browser-mcp](https://ai-powered.com/mcp/browser-mcp-3): browser-mcp is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp-2): Playwright MCP is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/mcp-browser-agent
