JM

jovanipink/mcp-browser-use

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

63 stars 12 forks Качество 83 Тренд 20MIT

jovanipink/mcp-browser-use - это кандидат на сервер MCP, импортированный из https://github.com/jovanipink/mcp-browser-use.

Обзор

jovanipink/mcp-browser-use - это кандидат на сервер MCP, импортированный из https://github.com/jovanipink/mcp-browser-use.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который подключает браузер к Claude Desktop и другим MCP-совместимым клиентам.

Обзор

Это хранилище обеспечивает бета-обертку MCP вокруг двигателя автоматизации browser-use. Он предоставляет единственный инструмент MCP ([T1]), который организует сеанс браузера, выполняет агент browser-use и возвращает конечный результат клиенту. Макет сохраняет конфигурацию в одном месте, делает границы безопасности проверяемыми и изолирует миграции вверх по течению от интерфейса MCP.

Ключевые возможности

** Автоматизированный просмотр** - Навигация, взаимодействие с формами, контрольные вкладки, захват скриншотов и чтение содержимого страницы с помощью инструкций на естественном языке, выполняемых browser-use. ** Управление жизненным циклом агента** — CustomAgent обертывает базовый агент browser-use, чтобы добавить экспорт истории, более богатые подсказки и последовательную обработку ошибок во время выполнения. ** Централизованная конфигурация браузера** — create_browser_session переводит переменные среды в готовый к использованию BrowserSession, позволяя создавать постоянные профили, прокси и пользовательские флаги Chromium, не затрагивая логику агента. FastMCP integration — «сервер».

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP Browser Use Server

An MCP server that exposes browser automation through the maintained public API of browser-use. It provides one tool, run_browser_agent, for running a natural-language browser task in a fresh, isolated browser session.

Architecture

MCP client
  -> FastMCP stdio server
  -> validated per-run configuration
  -> browser-use Agent + native provider adapter
  -> isolated BrowserSession
  -> Chromium or an explicit CDP endpoint

The server deliberately does not subclass browser-use’s private agent, telemetry, prompt, or message-manager internals. Provider adapters come directly from browser-use, which keeps the MCP boundary stable when upstream internals change. Each request owns its browser session and always attempts cleanup.

Requirements

  • Python 3.11.5 or newer in the supported 3.11 through 3.14 series
  • uv 0.12.3 for the documented frozen build
  • Chrome/Chromium, unless connecting through BROWSER_USE_CDP_URL
  • an API key for the selected hosted model provider (Ollama is keyless)

The production container includes Chromium and runs the MCP process as UID 10001. It defaults to headless browsing.

Install and run

git clone https://github.com/JovaniPink/mcp-browser-use.git
cd mcp-browser-use
cp .env.example .env
python3 compat/browser-use/verify.py
uv sync --frozen
uv run --frozen --env-file .env mcp-browser-use

Keep the complete checkout, including compat/browser-use/. This candidate uses a repository-owned browser-use packaging build selected by tool.uv.sources and uv.lock. The supported delivery paths are this frozen checkout and its Docker build. Installing the application wheel alone or publishing it to a registry does not reproduce that dependency selection and is not supported by this compatibility decision.

The console command starts FastMCP over stdio. Configure it as a child process of your MCP client; do not start it separately and then point the client at a TCP port.

The server does not load .env itself. The command above loads it explicitly; the client configuration below instead injects environment values directly.

The included smithery.yaml uses the same frozen command and provider contract. It requires one provider-neutral API key for every hosted provider and maps that key to only the selected provider. Ollama is the sole keyless option. The schema uses Smithery’s documented JSON Schema configuration contract and JSON Schema if/then conditional validation to require the key. The command function repeats the check before returning a process command, so a keyless hosted-provider session fails closed even if a client does not surface the conditional field guidance. Smithery does not assume

Открыть полный README на GitHub

Установка

uvx --from pip-audit==2.10.1 pip-audit \
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "browser-use": { "command": "uv", "args": [ "--directory", "/absolute/path/to/mcp-browser-use", "run", "--frozen", "mcp-browser-use" ], "env": { "MCP_MODEL_PROVIDER": "anthropic", "MCP_MODEL_NAME": "claude-opus-5", "ANTHROPIC_API_KEY": "replace-in-your-client-secret-store" } } } }