FastAPI server implementing MCP protocol Browser automation via browser-use library.
FastAPI server implementing MCP protocol Browser automation via browser-use library.
This repository provides a production-ready wrapper around the browser-use automation engine. It exposes a single MCP tool (run_browser_agent) that orchestrates a browser session, executes the browser-use agent, and returns the final result back to the client. The refactored layout focuses on keeping configuration in one place, improving testability, and keeping browser-use upgrades isolated from MCP specific code.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Optional — Claude Desktop or another MCP-compatible client for integration testingProvider — specific API keys and endpoints (ANTHROPIC_API_KEY, OPENAI_API_KEY, DEEPSEEK_API_KEY, GOOGLE_API_KEY, AZURE_OPENAI_API_KEY, etc.)Requirements — The Requirements tool exposed by this serverInstallation — Copy sample.env to .env (or export the variables in another way) and update the values for the providers you plan to useDebugging — For interactive debugging, use the MCP Inspector:uv for dependency management (recommended) - Optional: Claude Desktop or another MCP-compatible client for integration testingCompare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
uv for dependency management (recommended) - Optional: Claude Desktop or another MCP-compatible client for integration testing| Variable | Description | Required |
|---|---|---|
| MCP_MODEL_PROVIDER | Configuration value read at startup. | Optional |
| MCP_MODEL_NAME | Configuration value read at startup. | Optional |
| ANTHROPIC_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| DEEPSEEK_API_KEY | Credential the server authenticates with. | Yes |
| GOOGLE_API_KEY | Credential the server authenticates with. | Yes |
| AZURE_OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| BROWSER_USE_PROXY_URL | Endpoint or connection string the server talks to. | Yes |
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
The original Chromium automation reference server — simple, screenshot-driven browser control.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Enables AI-powered applications to monitor and interact with browser data via a Chrome extension and MCP.
Automates browsers and APIs, enabling Large Language Models (LLMs) to interact with web pages for tasks like screenshot capture and JavaScript