Price Per TokenPrice Per Token

Browser Use MCP Server

by kontext-dev

0

About

Browser Use MCP Server enables AI agents to control web browsers for automated web browsing and interaction tasks. Key capabilities: - Navigate websites and perform actions like clicking, typing, and form submission - Extract information and content from web pages - Built on browser-use and Playwright for robust browser automation - Supports both SSE and stdio transport modes for flexible integration - Works with Claude, Cursor, Windsurf, and other MCP-compatible clients - Configurable to wait for task completion or run asynchronously

README

browser-use-mcp-server

[](https://x.com/cobrowser) [](https://discord.gg/gw9UpFUhyY) [](https://badge.fury.io/py/browser-use-mcp-server)

**An MCP server that enables AI agents to control web browsers using browser-use.**

> 🌐 Want to Vibe Browse the Web? Open-source AI-powered web browser - Vibe Browser. > > 🔗 Managing multiple MCP servers? Simplify your development workflow with agent-browser

Prerequisites

  • uv - Fast Python package manager
  • Playwright - Browser automation
  • mcp-proxy - Required for stdio mode
  • # Install prerequisites
    curl -LsSf https://astral.sh/uv/install.sh | sh
    uv tool install mcp-proxy
    uv tool update-shell
    

    Environment

    Create a .env file:

    OPENAI_API_KEY=your-api-key
    CHROME_PATH=optional/path/to/chrome
    PATIENT=false  # Set to true if API calls should wait for task completion
    

    Installation

    # Install dependencies
    uv sync
    uv pip install playwright
    uv run playwright install --with-deps --no-shell chromium
    

    Usage

    SSE Mode

    # Run directly from source
    uv run server --port 8000
    

    stdio Mode

    # 1. Build and install globally
    uv build
    uv tool uninstall browser-use-mcp-server 2>/dev/null || true
    uv tool install dist/browser_use_mcp_server-*.whl

    2. Run with stdio transport

    browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000

    Client Configuration

    SSE Mode Client Configuration

    {
      "mcpServers": {
        "browser-use-mcp-server": {
          "url": "http://localhost:8000/sse"
        }
      }
    }
    

    stdio Mode Client Configuration

    {
      "mcpServers": {
        "browser-server": {
          "command": "browser-use-mcp-server",
          "args": [
            "run",
            "server",
            "--port",
            "8000",
            "--stdio",
            "--proxy-port",
            "9000"
          ],
          "env": {
            "OPENAI_API_KEY": "your-api-key"
          }
        }
      }
    }
    

    Config Locations

    | Client | Configuration Path | | ---------------- | ----------------------------------------------------------------- | | Cursor | ./.cursor/mcp.json | | Windsurf | ~/.codeium/windsurf/mcp_config.json | | Claude (Mac) | ~/Library/Application Support/Claude/claude_desktop_config.json | | Claude (Windows) | %APPDATA%\Claude\claude_desktop_config.json |

    Features

  • [x] Browser Automation: Control browsers through AI agents
  • [x] Dual Transport: Support for both SSE and stdio protocols
  • [x] VNC Streaming: Watch browser automation in real-time
  • [x] Async Tasks: Execute browser operations asynchronously
  • Local Development

    To develop and test the package locally:

    1. Build a distributable wheel:

       # From the project root directory
       uv build
       

    2. Install it as a global tool:

       uv tool uninstall browser-use-mcp-server 2>/dev/null || true
       uv tool install dist/browser_use_mcp_server-*.whl
       

    3. Run from any directory:

       # Set your OpenAI API key for the current session
       export OPENAI_API_KEY=your-api-key-here

    # Or provide it inline for a one-time run OPENAI_API_KEY=your-api-key-here browser-use-mcp-server run server --port 8000 --stdio --proxy-port 9000

    4. After making changes, rebuild and reinstall:

       uv build
       uv tool uninstall browser-use-mcp-server
       uv tool install dist/browser_use_mcp_server-*.whl
       

    Docker

    Using Docker provides a consistent and isolated environment for running the server.

    # Build the Docker image
    docker build -t browser-use-mcp-server .

    Run the container with the default VNC password ("browser-use")

    --rm ensures the container is automatically removed when it stops

    -p 8000:8000 maps the server port

    -p 5900:5900 maps the VNC port

    docker run --rm -p8000:8000 -p5900:5900 browser-use-mcp-server

    Run with a custom VNC password read from a file

    Create a file (e.g., vnc_password.txt) containing only your desired password

    echo "your-secure-password" > vnc_password.txt

    Mount the password file as a secret inside the container

    docker run --rm -p8000:8000 -p5900:5900 \ -v $(pwd)/vnc_password.txt:/run/secrets/vnc_password:ro \ browser-use-mcp-server

    *Note: The :ro flag in the volume mount (-v) makes the pa

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81