browser-agent-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@browser-agent-mcpBook a hotel in San Francisco for July 4th weekend"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π€ 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
MutationObserverto 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.
Related MCP server: Ghost Browser MCP
π οΈ 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 chromium2. Configuration
Create a .env file:
PROXY_URL=http://user:pass@host:port # Optional for residential proxies
BROWSER_HEADLESS=false # Recommended for local debugging3. 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].
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rithikanupam-hub/browser-agent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server