Browser Agent MCP Server
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 MCP ServerNavigate to example.com and take a screenshot"
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.
Browser Agent MCP Server
A Model Context Protocol (MCP) server that provides browser automation capabilities through Claude Desktop and other MCP clients.
Features
š Browser Automation: Control web browsers programmatically
šÆ Multiple Engines: Support for Playwright and Selenium
šø Screenshot Capture: Take screenshots of web pages
š Content Extraction: Extract text and HTML content
š±ļø Interactive Control: Click, type, scroll, and navigate
ā” Fast Setup: One-click startup with
uvš§ Flexible Configuration: Environment variables and command-line options
Related MCP server: Browser MCP Bridge
Quick Start
1. Install Dependencies
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and setup the project
git clone <your-repo-url>
cd browser-agent
# Install dependencies and browsers
uv sync
uv run playwright install2. One-Click Startup
# Start the MCP server
uv run python start.pyClaude Desktop Configuration
1. Install uv
Make sure uv is installed on your system:
curl -LsSf https://astral.sh/uv/install.sh | sh2. Add Browser Agent Server
Option A: From GitHub Repository (Recommended) Use this configuration to run directly from your GitHub repository:
{
"mcpServers": {
"browser-agent": {
"command": "uv",
"args": [
"run",
"--from",
"git+https://github.com/galilio/browser-mcp.git",
"python",
"start.py"
],
"env": {
"BROWSER_ENGINE": "playwright",
"BROWSER_HEADLESS": "false",
"BROWSER_TIMEOUT": "30000"
}
}
}
}Option B: Generate GitHub Configuration Run the GitHub configuration generator:
uv run python generate_github_config.pyOption C: Generate Local Configuration Run the configuration generator to get the correct local paths:
uv run python generate_config.pyOption D: Manual Local Configuration Add the following configuration to your MCP servers (replace the path with your actual project directory):
{
"mcpServers": {
"browser-agent": {
"command": "uv",
"args": ["run", "python", "/path/to/your/browser-agent/start.py"],
"env": {
"BROWSER_ENGINE": "playwright",
"BROWSER_HEADLESS": "false",
"BROWSER_TIMEOUT": "30000",
"BROWSER_SCREENSHOT_DIR": "/path/to/your/browser-agent/screenshots"
}
}
}
}3. Alternative Configurations
GitHub Repository - Headless Mode:
{
"mcpServers": {
"browser-agent": {
"command": "uv",
"args": [
"run",
"--from",
"git+https://github.com/galilio/browser-mcp.git",
"python",
"start.py",
"--headless"
],
"env": {
"BROWSER_ENGINE": "playwright"
}
}
}
}GitHub Repository - Selenium Engine:
{
"mcpServers": {
"browser-agent": {
"command": "uv",
"args": [
"run",
"--from",
"git+https://github.com/galilio/browser-mcp.git",
"python",
"start.py",
"--engine",
"selenium"
],
"env": {
"BROWSER_HEADLESS": "false"
}
}
}
}4. Restart Claude Desktop
After adding the configuration, restart Claude Desktop for the changes to take effect.
Usage Examples
Once configured, you can use the browser agent in Claude Desktop:
"Navigate to https://example.com"
"Take a screenshot of the page"
"Click the login button"
"Type 'hello world' in the search box"
"Extract all links from the page"
"Scroll down to the bottom"
"Fill out a contact form with my information"
Running the MCP Server
Direct Execution
# Basic startup
uv run python start.py
# Headless mode
uv run python start.py --headless
# Using Selenium engine
uv run python start.py --engine selenium
# Custom timeout
uv run python start.py --timeout 60000
# Custom screenshot directory
uv run python start.py --screenshot-dir ./my_screenshotsEnvironment Variables
Create a .env file based on env.example:
# Browser Configuration
BROWSER_ENGINE=playwright
BROWSER_HEADLESS=false
BROWSER_TIMEOUT=30000
BROWSER_SCREENSHOT_DIR=./screenshots
BROWSER_USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
BROWSER_ARGS=--no-sandbox,--disable-dev-shm-usage
# MCP Configuration
MCP_SERVER_NAME=browser-agentAvailable Tools
The MCP server provides the following tools:
navigate_to: Navigate to a URLclick_element: Click on an elementtype_text: Type text into an elementget_page_content: Get page content (text or HTML)take_screenshot: Take a screenshotwait_for_element: Wait for an element to appearexecute_javascript: Execute JavaScript codescroll_page: Scroll the pageget_elements: Get elements by selector
Troubleshooting
If the server doesn't start:
Make sure Python 3.10+ is installed
Verify that
uv syncanduv run playwright installcompleted successfullyCheck that the
start.pyfile is in the correct directoryTry running
uv run python start.py --check-onlyto verify the environmentEnsure
uvis installed and available in your PATHVerify the absolute path in your MCP configuration is correct
For other MCP clients
GitHub Repository Configuration:
{
"mcpServers": {
"browser-agent": {
"command": "uv",
"args": [
"run",
"--from",
"git+https://github.com/galilio/browser-mcp.git",
"python",
"start.py"
],
"env": {
"BROWSER_ENGINE": "playwright",
"BROWSER_HEADLESS": "false"
}
}
}
}Development
Project Structure
browser-agent/
āāā browser_agent_mcp/ # Main package
ā āāā __init__.py
ā āāā config.py # Configuration management
ā āāā browser_controller.py # Browser automation logic
ā āāā server.py # MCP server implementation
ā āāā main.py # Entry point
āāā start.py # One-click startup script
āāā generate_config.py # Configuration generator
āāā pyproject.toml # Project configuration
āāā env.example # Environment variables template
āāā README.md # This fileManual Installation
If you prefer manual installation:
# Install Python dependencies
pip install mcp playwright selenium python-dotenv pydantic beautifulsoup4 requests
# Install Playwright browsers
playwright install
# Install Selenium WebDriver (if using Selenium)
# Download ChromeDriver from: https://chromedriver.chromium.org/License
This project is licensed under the MIT License.
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.
Related MCP Servers
- TypeScriptMozilla Public 2.0
- Alicense-qualityDmaintenanceBridges browser content, developer tools data, and web page interactions with Claude through MCP. Enables page inspection, DOM analysis, JavaScript execution, console monitoring, network activity tracking, and screenshot capture across multiple browser tabs.Last updatedMIT
- AlicenseBqualityAmaintenanceEnables browser automation and control through ZenLink, allowing Claude Desktop and other MCP clients to drive a Zen Browser with 75+ tools for navigation, content extraction, interaction, parallel multi-tab operations, and session management.Last updated100MIT
- Alicense-qualityBmaintenanceEnables Claude to perform stealth browser automation with anti-detection, including navigation, clicking, typing, screenshots, and network monitoring via an MCP server.Last updatedMIT
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to iā¦
AI-powered browser automation ā navigate, click, fill forms, and extract data from any website.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/dbwang0130/browser-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server