Browser MCP

搜索与获取

by GDanksAnchor

借助 Anchor Browser 基础设施进行可扩展、按地域定向且抗检测的浏览器自动化,无需本地依赖,并提供快速结构化数据访问与确定性执行。

什么是 Browser MCP

借助 Anchor Browser 基础设施进行可扩展、按地域定向且抗检测的浏览器自动化,无需本地依赖,并提供快速结构化数据访问与确定性执行。

README

<div align="center"> <img src="mcp_logo.png" alt="MCP Logo" width="200"> </div>

Browser MCP Server

A Model Context Protocol (MCP) server that provides browser automation capabilities using Anchor Browser's remote browser service with Playwright. This server enables LLMs to interact with web pages through Anchor's cloud-based browsers with built-in proxies, stealth features, and advanced capabilities.

Key Features

  • Remote Browser Execution: Uses Anchor Browser's cloud infrastructure instead of local browsers
  • Built-in Proxies: Automatic residential proxy rotation and geo-targeting
  • Stealth & Anti-Detection: Advanced browser fingerprinting and anti-bot detection
  • Fast and lightweight: Uses Playwright's accessibility tree, not pixel-based input
  • LLM-friendly: No vision models needed, operates purely on structured data
  • Deterministic tool application: Avoids ambiguity common with screenshot-based approaches

Requirements

  • Node.js 18 or newer
  • Anchor Browser API Key (Get one here)
  • VS Code, Cursor, Windsurf, Claude Desktop, Goose or any other MCP client

Getting Started

1. Clone and Build

Since this is a custom Browser MCP server, you need to build it locally:

bash
# Clone the repository
git clone https://github.com/anchorbrowser/anchor-mcp.git
cd anchor-mcp

# Install dependencies and build
npm install
npm run build

2. Get Your Anchor API Key

  1. Sign up at anchorbrowser.io
  2. Get your API key from the dashboard
  3. Copy your API key (starts with sk-)

3. Configure MCP Client

Cursor

Add to your ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "anchor-browser": {
      "command": "node",
      "args": [
        "/path/to/anchor-mcp/cli.js"
      ],
      "env": {
        "ANCHOR_API_KEY": "sk-your-api-key-here"
      }
    }
  }
}

VS Code

Add to your MCP configuration:

json
{
  "mcpServers": {
    "anchor-browser": {
      "command": "node",
      "args": [
        "/path/to/anchor-mcp/cli.js"
      ],
      "env": {
        "ANCHOR_API_KEY": "sk-your-api-key-here"
      }
    }
  }
}

Claude Desktop

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "anchor-browser": {
      "command": "node",
      "args": [
        "/path/to/anchor-mcp/cli.js"
      ],
      "env": {
        "ANCHOR_API_KEY": "sk-your-api-key-here"
      }
    }
  }
}

4. Restart Your MCP Client

After updating the configuration, restart your MCP client (Cursor, VS Code, etc.) to load the new server.

Configuration Options

The Browser MCP server supports only essential configuration options:

bash
node cli.js --help

Available Options:

  • --host <host> - Host to bind server to (default: localhost, use 0.0.0.0 for all interfaces)
  • --port <port> - Port to listen on for HTTP transport (Docker/server mode)

Example with Options:

json
{
  "mcpServers": {
    "anchor-browser": {
      "command": "node",
      "args": [
        "/path/to/anchor-mcp/cli.js",
      ],
      "env": {
        "ANCHOR_API_KEY": "sk-your-api-key-here"
      }
    }
  }
}

HTTP Server Mode (Docker):

For Docker or headless server environments:

bash
# Run as HTTP server
ANCHOR_API_KEY="sk-your-key" node cli.js --port 8931 --host 0.0.0.0

Then configure your MCP client to use the HTTP endpoint:

json
{
  "mcpServers": {
    "anchor-browser": {
      "url": "http://localhost:8931/mcp"
    }
  }
}

Why So Few Options?

Since Anchor Browser handles all the complex browser management remotely, most traditional browser options are unnecessary:

  • No browser selection - Anchor uses optimized remote browsers
  • No proxy configuration - Anchor provides built-in proxy rotation
  • No browser profile management - Handled by Anchor's infrastructure
  • No network filtering - Use Anchor's dashboard for advanced controls
  • No viewport/device options - Configure these through Anchor Browser API

This keeps the MCP server simple and focused on what matters: connecting to Anchor's remote browser service.

How It Works

  1. Browser Session Creation: When you use browser tools, the MCP server calls Anchor's API to create a remote browser session
  2. Remote Connection: Connects to the remote browser via WebSocket using Chrome DevTools Protocol (CDP)
  3. Tool Execution: All browser automation happens in Anchor's cloud infrastructure
  4. Proxy & Stealth: Automatic residential proxy rotation and advanced anti-detection features
  5. Session Management: Each session is isolated and can be viewed live via Anchor's dashboard

Benefits Over Local Browsers

🌐 Global Proxy Network

  • Automatic residential proxy rotation
  • Geo-targeting for different regions
  • No proxy configuration needed

🛡️ Advanced Stealth

  • Browser fingerprinting protection
  • Anti-bot detection bypass
  • Real browser environments

☁️ Cloud Infrastructure

  • No local browser dependencies
  • Consistent browser versions
  • Scalable execution

📊 Monitoring & Debugging

  • Live view of browser sessions
  • Session recordings and traces
  • Network request logging

Available Tools

The Browser MCP server provides all standard browser automation tools:

Core Automation

  • anchor_navigate - Navigate to URLs
  • anchor_click - Click elements
  • browser_type - Type text into inputs
  • browser_snapshot - Get page accessibility tree
  • browser_take_screenshot - Take screenshots
  • browser_evaluate - Execute JavaScript
  • browser_wait_for - Wait for conditions

Tab Management

  • browser_tab_new - Open new tabs
  • browser_tab_list - List open tabs
  • browser_tab_select - Switch between tabs
  • browser_tab_close - Close tabs

Advanced Features

  • browser_file_upload - Upload files
  • browser_handle_dialog - Handle alerts/confirms
  • browser_network_requests - View network traffic
  • browser_pdf_save - Generate PDFs (with --caps=pdf)

Troubleshooting

Invalid API Key

code
Error: Missing ANCHOR_API_KEY environment variable

Solution: Make sure your API key is correctly set in the MCP configuration.

Build Errors

code
npm run build

Solution: Make sure you have Node.js 18+ and run npm install first.

Connection Issues

Check the MCP logs for Anchor API responses and WebSocket connection status.

Session Limits

Each Anchor API key has session limits. Check your dashboard at anchorbrowser.io for usage.

Development

To modify or extend the Browser MCP server:

bash
# Make changes to TypeScript files in src/
# Then rebuild
npm run build

# Test your changes
node cli.js --help

The server will automatically use Anchor's remote browsers for all operations, providing the benefits of cloud-based browser automation with advanced proxy and stealth capabilities.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Support

常见问题

Browser MCP 是什么?

借助 Anchor Browser 基础设施进行可扩展、按地域定向且抗检测的浏览器自动化,无需本地依赖,并提供快速结构化数据访问与确定性执行。

相关 Skills

agent-browser

by chulla-ceja

热门

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

搜索与获取
未扫描3.7k

接口规范

by alexxxiong

热门

API 规范管理工具 - 跨项目 API 文档的初始化、更新、查询与搜索。Triggers: 'API文档', 'API规范', '接口文档', '路由解析', 'apispec', 'API lookup', 'API search'.

搜索与获取
未扫描3.7k

investment-research

by caijichang212

热门

Perform structured investment research (投研分析) for a company/stock/ETF/sector using a repeatable framework: fundamentals (basic/财务报表与商业模式), technical analysis (技术指标与关键价位), industry research (行业景气与竞争格局), valuation (估值对比/情景), catalysts and risks, and produce a professional research report + actionable plan. Use when the user asks for: equity/ETF analysis, earnings/financial statement breakdown, peer/industry comparison, valuation ranges, bull/base/bear scenarios, technical trend/support-resistance, or a full research memo.

搜索与获取
未扫描3.7k

相关 MCP Server

by Anthropic

热门

Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。

这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。

搜索与获取
82.9k

网页抓取

编辑精选

by Anthropic

热门

Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。

这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。

搜索与获取
82.9k

Brave 搜索

编辑精选

by Anthropic

热门

Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。

如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。

搜索与获取
82.9k

评论