Labsco
JovaniPink logo

Browser Use

β˜… 59

from JovaniPink

Enables AI agents to control web browsers using natural language commands.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

MCP Browser Use Server

smithery badge

Model Context Protocol (MCP) server that wires browser-use into Claude Desktop and other MCP compatible clients.

<a href="https://glama.ai/mcp/servers/tjea5rgnbv"><img width="380" height="200" src="https://glama.ai/mcp/servers/tjea5rgnbv/badge" alt="Browser Use Server MCP server" /></a>

Overview

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.

Key Capabilities

  • Automated browsing – Navigate, interact with forms, control tabs, capture screenshots, and read page content through natural-language instructions executed by browser-use.
  • Agent lifecycle management – CustomAgent wraps browser-use's base agent to add history export, richer prompts, and consistent error handling across runs.
  • Centralised browser configuration – create_browser_session translates environment variables into a ready-to-use BrowserSession, enabling persistent profiles, proxies, and custom Chromium flags without touching the agent logic.
  • FastMCP integration – server.py registers the MCP tool, normalises configuration, and ensures the browser session is always cleaned up.
  • Client helpers – client.py includes async helpers for tests or other Python processes that wish to exercise the MCP server in-process.

Project Structure

Copy & paste β€” that's it
.
β”œβ”€β”€ documentation/
β”‚   β”œβ”€β”€ CONFIGURATION.md      # Detailed configuration reference
β”‚   └── SECURITY.md           # Security considerations for running the server
β”œβ”€β”€ .env.example            # Example environment variables for local development
β”œβ”€β”€ src/mcp_browser_use/
β”‚   β”œβ”€β”€ agent/                # Custom agent, prompts, message history, and views
β”‚   β”œβ”€β”€ browser/              # Browser session factory and persistence helpers
β”‚   β”œβ”€β”€ controller/           # Custom controller extensions for clipboard actions
β”‚   β”œβ”€β”€ utils/                # LLM factory, agent state helpers, encoding utilities
β”‚   β”œβ”€β”€ client.py             # Async helper for connecting to the FastMCP app
β”‚   └── server.py             # FastMCP app and the `run_browser_agent` tool
└── tests/                    # Unit tests covering server helpers and agent features

Security

Controlling a full browser instance remotely can grant broad access to the host machine. Review documentation/SECURITY.md before exposing the server to untrusted environments.

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Open a pull request

Bug reports and feature suggestions are welcomeβ€”please include logs and reproduction steps when applicable.