Sponsored by Deepsite.site

Browser-use-claude-mcp

Created By
jasondsmith728 months ago
A browser automation MCP server for AI models like Claude and Gemini 2.5, enabling web browsing capabilities through natural language
Content

Browser-use-claude-mcp

A browser automation MCP server for AI models like Claude and Gemini 2.5, enabling web browsing capabilities through natural language.

Overview

This project implements a Model Context Protocol (MCP) server that provides browser automation capabilities to AI models. It allows AI assistants to browse the web, interact with websites, and extract information using natural language commands.

Key Features

🌐 Browser Automation Features

  • Full browser automation (navigation, form filling, clicking, etc.)
  • Web search capabilities
  • Screenshot capture for visual understanding
  • Content extraction and analysis

🤖 AI Features

  • Support for multiple AI providers:
    • Google Gemini 2.5 (primary focus)
    • Anthropic Claude
    • OpenAI
  • Image analysis (vision) capabilities
  • AI-powered content analysis

🔧 Technical Features

  • Written in TypeScript for maximum reliability
  • Modular architecture with clean separation of concerns
  • Comprehensive logging and error handling
  • Easy configuration through environment variables

Available Tools

Tool NameDescription
browse_webpageNavigate to a URL and extract its content
search_webPerform a web search and return results
take_screenshotCapture a screenshot of the current page
click_elementClick on an element by text or selector
fill_formFill out form fields with provided values
extract_contentExtract specific content from a webpage
analyze_contentAI-powered analysis of webpage content

Getting Started

See INSTALL.md for detailed installation and setup instructions.

Quick Start

  1. Clone the repository

    git clone https://github.com/jasondsmith72/Browser-use-claude-mcp.git
    cd Browser-use-claude-mcp
    
  2. Install dependencies

    npm install
    
  3. Create a .env file (use .env.example as a template)

    cp .env.example .env
    
  4. Build the project

    npm run build
    
  5. Start the server

    npm start
    

Configuration

The server can be configured through environment variables in your .env file:

# Browser configuration
CHROME_PATH=
CHROME_USER_DATA=
CHROME_DEBUGGING_PORT=9222

# AI provider (GEMINI, ANTHROPIC, OPENAI)
MCP_MODEL_PROVIDER=GEMINI

# API keys (use the one for your chosen provider)
GOOGLE_API_KEY=your_google_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
OPENAI_API_KEY=your_openai_api_key_here

Using with Claude Desktop

  1. Locate the Claude Desktop configuration file:

    • Windows: %APPDATA%/Claude/claude_desktop_config.json
    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add this MCP server to your configuration:

    {
      "mcpServers": {
        "browser-use-claude-mcp": {
          "command": "node",
          "args": [
            "/path/to/Browser-use-claude-mcp/dist/index.js"
          ],
          "env": {
            "CHROME_PATH": "",
            "CHROME_USER_DATA": "",
            "MCP_MODEL_PROVIDER": "GEMINI",
            "GOOGLE_API_KEY": "your_google_api_key_here"
          }
        }
      }
    }
    
  3. Restart Claude Desktop for the changes to take effect.

Examples

Basic Web Browsing

browse_webpage(url="https://example.com")
search_web(query="best programming languages 2025")

Filling a Form

fill_form(fields={
  "name": "John Doe",
  "email": "john@example.com",
  "message": "Hello world!"
}, submit=true)

AI Content Analysis

analyze_content(
  url="https://en.wikipedia.org/wiki/Artificial_intelligence",
  instructions="Summarize the key developments in AI in the last decade"
)

Development

# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

License

MIT

Credits

This project builds upon the work of browser-use and other MCP server implementations.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server