browser-agent-mcp

browser-agent-mcp

Production-grade MCP server for autonomous web automation with stealth features, designed for complex booking workflows like tickets, tours, hotels, and transport.

Category
Visit Server

README

πŸ€– AI Browser Agent MCP Server

A production-grade Model Context Protocol (MCP) server for autonomous web automation.

Designed specifically for complex booking workflows (tickets, tours, hotels, transport), this server enables AI agents to browse, interact, and extract data like a human, bypassing common automation hurdles.


πŸ”₯ Key Problems Solved

  • The Hydration Race: Modern SPAs (React/Next.js) often render elements that aren't interactive yet. Our server uses a MutationObserver to ensure the DOM is quiet and hydrated before every action.
  • Anti-Bot Evasion: Built-in kernel-level stealth (Playwright Stealth), masked navigator.webdriver, and randomized human-like typing jitter.
  • Transparent Overlays: Click traps and cookie banners often catch standard automation. Our "Smart Click" uses coordinate-based fallback to click the physically visible center of elements.
  • Brittle Selectors: Instead of hardcoded scripts, we use a Site Profile system (YAML) that gives the LLM lightweight hints, allowing it to adapt to UI changes dynamically.

πŸ› οΈ Features

  • πŸ›‘οΈ Stealth-First: Masked fingerprints, residential-proxy support, and block detection.
  • πŸ“… 3-Strategy Date Selection: Adaptive handling of native inputs and complex custom calendar modals.
  • πŸ“ Declarative Site Profiles: 15-line YAML configs for sites like GetYourGuide, Omio, and Trenitalia.
  • πŸ—ΊοΈ 17 High-Level Tools: Pre-built tools for session management, navigation, interaction, and data extraction.

πŸš€ Quick Start

1. Installation

# Clone the repo and install locally
pip install -e .
playwright install chromium

2. Configuration

Create a .env file:

PROXY_URL=http://user:pass@host:port  # Optional for residential proxies
BROWSER_HEADLESS=false                # Recommended for local debugging

3. Run with MCP Inspector

fastmcp dev server.py

πŸ—οΈ Integration Guide

Use with LangGraph (Python)

Since this is an MCP-compliant server, you can dynamically load these tools into your LangGraph nodes:

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from langchain.tools import tool

async def get_tools():
    server_params = StdioServerParameters(
        command="python",
        args=["PATH_TO_SERVER.py"]
    )
    # Use mcp.client to fetch and wrap tools for your StateGraph...

Use with Claude Desktop

Add this to your mcp_config.json:

{
  "mcpServers": {
    "browser-agent": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"]
    }
  }
}

βš™οΈ Declarative Site Profiles

Add support for any website in seconds by creating a .yaml file in the profiles/ directory:

site: "example.com"
anti_bot: "DataDome"
cookie_banner:
  selector: "#accept-all"
  required: true
search_input: "input[type='search']"
session_hints: |
  Wait 2s after main navigation.
  Use coordinate clicks for the search button.

πŸ“‚ Project Structure

  • browser/ : Core Playwright engine, stealth config, and stability logic.
  • tools/ : 17 MCP-standard tool definitions.
  • profiles/ : YAML site configurations.
  • server.py : FastMCP entry point.

πŸ›‘οΈ License

MIT License. Created by [Your Name/GitHub].

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured