Superior Browser MCP

Superior Browser MCP

Enables AI-powered browser automation with real profiles, supporting interaction, navigation, form filling, and advanced features like visual overlays and self-healing selectors.

Category
访问服务器

README

Superior Browser MCP

Browser automation via MCP for Chrome and Firefox with enhanced AI features

npm version License

What is this?

An enhanced MCP (Model Context Protocol) server that surpasses Blueprint MCP with advanced features for AI-powered browser automation. Uses your real browser profile with all your logged-in sessions, cookies, and extensions intact.

Why Superior?

Feature Blueprint MCP Superior Browser MCP
Visual Overlays ❌ ✅ Numbered element badges
Element Classification Basic ✅ Full AI categorization
Form Detection Basic ✅ Smart field matching
Ad Detection ❌ ✅ Auto-detect & block
Popup Handling ❌ ✅ Cookie, modal, notification
Self-Healing Selectors ❌ ✅ Fuzzy matching on failure
Storage Management ❌ ✅ localStorage & sessionStorage
Accessibility Tree Basic ✅ Full ARIA support
CAPTCHA Detection ❌ ✅ Report & alert
Login Form Detection ❌ ✅ Auto-detect credentials
Visual Diff ❌ ✅ Page state comparison

Installation

1. Install the MCP Server

npm install -g @superior/browser-mcp

2. Install the Browser Extension

Chrome / Edge / Opera

  • Download from Releases
  • Load unpacked at chrome://extensions/

Firefox

  • Download from Releases
  • Load at about:debugging#/runtime/this-firefox

3. Configure your MCP client

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "superior-browser": {
      "command": "npx",
      "args": ["@superior/browser-mcp@latest"]
    }
  }
}

Claude Code:

claude mcp add browser npx @superior/browser-mcp@latest

Quick Start

  1. Start your MCP client (Claude Desktop, Cursor, etc)
  2. Click the Superior Browser MCP extension icon in your browser
  3. The extension auto-connects to the MCP server
  4. Ask your AI assistant to browse!

Available Tools

Connection Management

  • enable - Activate browser automation
  • disable - Deactivate browser automation
  • status - Check connection status

Tab Management

  • browser_tabs - List, create, attach, or close tabs

Navigation

  • browser_navigate - Navigate to URL, back, forward, reload

Content & Inspection

  • browser_snapshot - Get accessible page content
  • browser_take_screenshot - Capture visual screenshot
  • browser_extract_content - Extract page as markdown
  • browser_console_messages - Get console logs
  • browser_network_requests - Monitor network

Interaction

  • browser_interact - Click, type, hover, wait, scroll
  • browser_fill_form - Fill multiple form fields
  • browser_press_key - Press keyboard keys
  • browser_drag - Drag and drop elements

Advanced (Blueprint Features)

  • browser_evaluate - Execute JavaScript
  • browser_handle_dialog - Handle dialogs
  • browser_window - Resize, minimize, maximize
  • browser_pdf_save - Save page as PDF
  • browser_performance_metrics - Get Web Vitals
  • browser_verify_text_visible - Verify text
  • browser_verify_element_visible - Verify element

🆕 NEW: Enhanced Features

Visual Overlays

// Get numbered overlays on all interactive elements
get_visual_map({ includeLabels: true })
// Returns: Screenshot with numbered badges + element map

Interactive Element Map

// Get clean JSON map of all interactive elements
get_interactive_map({ 
  filterType: 'button',  // or 'input', 'link', 'form', etc
  filterArea: 'header'    // or 'main', 'footer', 'sidebar'
})

Smart Element Click

// Click element by overlay number from visual map
click_by_overlay_id({ overlayId: 42 })
hover_by_overlay_id({ overlayId: 15 })

Element Classification

analyze_page({
  includeAds: true,      // Detect ad placements
  includePopups: true,   // Detect modals, cookie banners
  includeForms: true,    // Detailed form analysis
  includeNavigation: true,
  includeTables: true
})

Smart Form Filling

smart_fill_form({
  formData: {
    "email": "user@example.com",
    "password": "secret123",
    "name": "John Doe"
  },
  submitAfter: true      // Auto-submit after filling
})

Form Analysis

get_form_analysis({
  includeSuggestions: true  // Get suggested test values
})

Cookie & Storage Management

manage_cookies({ action: 'get' })
manage_cookies({ action: 'set', cookies: [{ name: 'token', value: 'abc123' }] })
manage_cookies({ action: 'delete', name: 'token' })

manage_storage({ action: 'get', type: 'local' })
manage_storage({ action: 'set', type: 'session', key: 'preferences', value: JSON.stringify({ theme: 'dark' }) })

Popup & Ad Detection

detect_popups({ 
  autoClose: true,  // Auto-accept cookies
  types: ['cookie_banner', 'modal', 'notification']
})

detect_ads({ 
  includePositions: true,
  blockAds: true    // Hide detected ads
})

Smart Waiting

wait_for({
  selector: '#dynamic-content',
  visible: true,
  timeout: 10000
})

wait_for({
  text: 'Success message',
  timeout: 5000
})

wait_for({
  condition: 'document.querySelector(".loaded") !== null'
})

Self-Healing Selectors

self_heal_selector({
  failedSelector: '#submit-button',
  textHint: 'Submit',    // Fuzzy match on text
  roleHint: 'button'     // Match by role
})
// Returns: Suggestions for alternative selectors

Accessibility Tree

get_accessibility_tree({
  maxDepth: 10,
  filterRole: 'button'   // Filter by ARIA role
})

CAPTCHA Detection

detect_captcha()
// Returns: { captchaDetected: true/false, type: 'reCAPTCHA', etc }

Login Form Detection

detect_login_form()
// Returns: { loginFormsDetected: true, forms: [...] }

Smart Scrolling

scroll_page({ action: 'lazy_load' })  // Load all lazy content
scroll_page({ action: 'element', selector: '#footer' })
scroll_page({ action: 'bottom' })

How it works

┌─────────────────────────┐
│   AI Assistant          │
│   (Claude, GPT, etc)    │
└───────────┬─────────────┘
            │
            │ MCP Protocol
            ↓
┌─────────────────────────┐
│   MCP Client            │
│   (Claude Desktop, etc) │
└───────────┬─────────────┘
            │ stdio/JSON-RPC
            ↓
┌─────────────────────────┐
│   superior-browser-mcp │
│   (this package)       │
└───────────┬─────────────┘
            │ WebSocket (localhost:5555)
            ↓
┌─────────────────────────┐
│   Browser Extension     │
└───────────┬─────────────┘
            │
            │ Chrome/Firefox APIs
            ↓
┌─────────────────────────┐
│   Your Browser          │
│   (real profile)        │
└─────────────────────────┘

Development

# Clone the repository
git clone https://github.com/superior-browser-mcp/superior-browser-mcp.git
cd superior-browser-mcp

# Install dependencies
npm install

# Run in development
npm run dev

# Build Chrome extension
npm run build:chrome

Project Structure

superior-browser-mcp/
├── server/                     # MCP Server
│   ├── cli.js                  # Server entry point
│   └── src/
│       ├── statefulBackend.js  # All tool implementations
│       ├── extensionServer.js  # WebSocket server
│       └── unifiedBackend.js   # Tool dispatcher
├── extensions/                 # Browser Extensions
│   ├── chrome/                 # Chrome extension (MV3)
│   │   ├── manifest.json
│   │   ├── popup.html
│   │   └── src/
│   │       ├── background.js
│   │       ├── content-script.js
│   │       └── popup.js
│   └── firefox/                # Firefox extension (MV2)
├── docs/                       # Documentation
└── package.json

Configuration

Environment Variables

# Local WebSocket port (default: 5555)
MCP_PORT=5555

# Debug mode
DEBUG=true

Command Line Options

superior-browser-mcp --debug              # Enable verbose logging
superior-browser-mcp --port 8080          # Use custom port

Security

  • MCP server only accepts local connections by default (localhost:5555)
  • Extension requires explicit user action to connect
  • All browser actions go through the browser's permission system

License

Apache License 2.0

Copyright (c) 2025 Superior Browser MCP

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选