Logo Blueprint MCP for Chrome

Blueprint MCP for Chrome

Tổ chức
railsblueprint

MCP server for browser automation across Chrome, Firefox, and Safari using real browser profiles

Nhà phát hànhrailsblueprint
Kho mãblueprint-mcp
Ngôn ngữJavaScript
Bản fork
22
Sao
102
Công cụ có sẵn
25
Phương thức truyền tảistdio
Danh mục
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Blueprint MCP for Chrome cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 25 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    102 sao và 22 bản fork từ kho mã được liên kết.

Blueprint MCP

Control your real browser with AI through the Model Context Protocol

npm version License

What is this?

An MCP (Model Context Protocol) server that lets AI assistants control your actual browser (Chrome, Firefox, or Opera) through a browser extension. Unlike headless automation tools, this uses your real browser profile with all your logged-in sessions, cookies, and extensions intact.

Perfect for: AI agents that need to interact with sites where you're already logged in, or that need to avoid bot detection.

Why use this instead of Playwright/Puppeteer?

Blueprint MCPPlaywright/Puppeteer
✅ Real browser (not headless)❌ Headless or new browser instance
✅ Stays logged in to all your sites❌ Must re-authenticate each session
✅ Avoids bot detection (uses real fingerprint)⚠️ Often detected as automated browser
✅ Works with your existing browser extensions❌ No extension support
✅ Zero setup - works out of the box⚠️ Requires browser installation
✅ Chrome, Firefox, Edge, Opera support✅ Chrome, Firefox, Safari support

Installation

1. Install the MCP Server

bash
npm install -g @railsblueprint/blueprint-mcp

2. Install the Browser Extension

Choose your browser:

Chrome / Edge / Opera

  • Chrome Web Store (works for all Chromium browsers)
  • Manual: Download from Releases, then load unpacked at chrome://extensions/ (Chrome), edge://extensions/ (Edge), or opera://extensions/ (Opera)

Firefox

3. Configure your MCP client

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

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

Claude Code (AI-powered CLI):

bash
claude mcp add browser npx @railsblueprint/blueprint-mcp@latest

VS Code / Cursor (.vscode/settings.json):

json
{
  "mcp.servers": {
    "browser": {
      "command": "npx",
      "args": ["@railsblueprint/blueprint-mcp@latest"]
    }
  }
}

Quick Start

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

Example conversations:

You: "Go to GitHub and check my notifications"
AI: *navigates to github.com, clicks notifications, reads content*

You: "Fill out this form with my info"
AI: *reads form fields, fills them in, submits*

You: "Take a screenshot of this page"
AI: *captures screenshot and shows you*

How it works

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

Free vs PRO

Free Tier (Default)

  • ✅ Local WebSocket connection (port 5555)
  • ✅ Single browser instance
  • ✅ All browser automation features
  • ✅ No account required
  • ❌ Limited to same machine

PRO Tier

  • ✅ Cloud relay - connect from anywhere
  • ✅ Multiple browsers - control multiple browser instances
  • ✅ Shared access - multiple AI clients can use same browser
  • ✅ Auto-reconnect - maintains connection through network changes
  • ✅ Priority support

Upgrade to PRO

Available Tools

The MCP server provides these tools to AI assistants:

Connection Management

  • enable - Activate browser automation (required first step)
  • disable - Deactivate browser automation
  • status - Check connection status
  • auth - Login to PRO account (for cloud relay features)

Tab Management

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

Navigation

  • browser_navigate - Navigate to a URL
  • browser_navigate_back - Go back in history

Content & Inspection

  • browser_snapshot - Get accessible page content (recommended for reading pages)
  • browser_take_screenshot - Capture visual screenshot
  • browser_console_messages - Get browser console logs
  • browser_network_requests - Powerful network monitoring and replay tool with multiple actions:
    • List mode (default): Lightweight overview with filtering and pagination (default: 20 requests)
      • Filters: urlPattern (substring), method (GET/POST), status (200/404), resourceType (xhr/fetch/script)
      • Pagination: limit (default: 20), offset (default: 0)
      • Example: action='list', urlPattern='api/users', method='GET', limit=10
    • Details mode: Full request/response data for specific request including headers and bodies
    • JSONPath filtering: Query large JSON responses using JSONPath syntax (e.g., $.data.items[0])
    • Replay mode: Re-execute captured requests with original headers and authentication
    • Clear mode: Clear captured history to free memory
    • Example: action='details', requestId='12345.67', jsonPath='$.data.users[0]'
  • browser_extract_content - Extract page content as markdown

Interaction

  • browser_interact - Perform multiple actions in sequence (click, type, hover, wait, etc.)
  • browser_click - Click on elements
  • browser_type - Type text into inputs
  • browser_hover - Hover over elements
  • browser_select_option - Select dropdown options
  • browser_fill_form - Fill multiple form fields at once
  • browser_press_key - Press keyboard keys
  • browser_drag - Drag and drop elements

Advanced

  • browser_evaluate - Execute JavaScript in page context
  • browser_handle_dialog - Handle alert/confirm/prompt dialogs
  • browser_file_upload - Upload files through file inputs
  • browser_window - Resize, minimize, maximize browser window
  • browser_pdf_save - Save current page as PDF
  • browser_performance_metrics - Get performance metrics
  • browser_verify_text_visible - Verify text is present (for testing)
  • browser_verify_element_visible - Verify element exists (for testing)

Extension Management

  • browser_list_extensions - List installed browser extensions
  • browser_reload_extensions - Reload unpacked extensions (useful during development)

Development

Prerequisites

  • Node.js 18+
  • A supported browser (Chrome, Firefox, Edge, or Opera)
  • npm or yarn

Setup

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

# Install server dependencies
cd server
npm install
cd ..

# Install Chrome extension dependencies
cd extensions/chrome
npm install
cd ../..

Running in Development

Terminal 1: Start MCP server in debug mode

bash
cd server
node cli.js --debug

Terminal 2: Build Chrome extension

bash
cd extensions/chrome
npm run build
# or for watch mode:
npm run dev

Note: Firefox extension doesn't require a build step - it uses vanilla JavaScript and can be loaded directly from extensions/firefox/

Load extension in your browser:

For Chromium browsers (Chrome, Edge, Opera):

  1. Open chrome://extensions/ (Chrome), edge://extensions/ (Edge), or opera://extensions/ (Opera)
  2. Enable "Developer mode"
  3. Click "Load unpacked"
  4. Select the extensions/chrome/dist folder

For Firefox:

  1. Open about:debugging#/runtime/this-firefox
  2. Click "Load Temporary Add-on"
  3. Select any file from the extensions/firefox folder

Project Structure

blueprint-mcp/
├── server/                     # MCP Server
│   ├── cli.js                  # Server entry point
│   ├── src/
│   │   ├── statefulBackend.js  # Connection state management
│   │   ├── unifiedBackend.js   # MCP tool implementations
│   │   ├── extensionServer.js  # WebSocket server for extension
│   │   ├── mcpConnection.js    # Proxy/relay connection handling
│   │   ├── transport.js        # Transport abstraction layer
│   │   ├── oauth.js            # OAuth2 client for PRO features
│   │   └── fileLogger.js       # Debug logging
│   └── tests/                  # Server test suites
├── extensions/                 # Browser Extensions
│   ├── chrome/                 # Chrome extension (TypeScript + Vite)
│   │   └── src/
│   │       ├── background.ts   # Extension service worker
│   │       ├── content-script.ts # Page content injection
│   │       └── utils/          # Utility functions
│   ├── firefox/                # Firefox extension (Vanilla JS)
│   │   └── src/
│   │       ├── background.js   # Service worker
│   │       └── content-script.js # Page injection
│   ├── shared/                 # Shared code between extensions
│   └── build-*.js              # Build scripts for each browser
├── docs/                       # Documentation
│   ├── testing/                # Test documentation
│   ├── architecture/           # Architecture docs
│   └── stores/                 # Browser store assets
└── releases/                   # Built extensions for distribution
    ├── chrome/
    ├── firefox/
    ├── edge/
    └── opera/

Testing

bash
# Run tests
npm test

# Run with coverage
npm run test:coverage

Documentation:

Configuration

The server works out-of-the-box with sensible defaults. For advanced configuration:

Environment Variables

Create a .env file in the project root:

bash
# Authentication server (PRO features)
AUTH_BASE_URL=https://blueprint-mcp.railsblueprint.com

# Local WebSocket port (Free tier)
MCP_PORT=5555

# Debug mode
DEBUG=false

Command Line Options

bash
blueprint-mcp --debug              # Enable verbose logging
blueprint-mcp --port 8080          # Use custom WebSocket port (default: 5555)
blueprint-mcp --debug --port 8080  # Combine options

Note: If you change the port, you'll need to update your browser extension settings to match.

Troubleshooting

Extension won't connect

  1. Check the extension is installed and enabled
  2. Click the extension icon - it should show "Connected"
  3. Check the MCP server is running (look for process on port 5555)
  4. Try reloading the extension

"Port 5555 already in use"

Another instance is running. You can either:

  1. Kill the existing process:
bash
lsof -ti:5555 | xargs kill -9
  1. Use a different port:
bash
blueprint-mcp --port 8080

Browser tools not working

  1. Make sure you've called enable first
  2. Check you've attached to a tab with browser_tabs
  3. Verify the tab still exists (wasn't closed)

Getting help

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Security

This tool gives AI assistants control over your browser. Please review:

  • The MCP server only accepts local connections by default (localhost:5555)
  • PRO relay connections are authenticated via OAuth
  • The extension requires explicit user action to connect
  • All browser actions go through the browser's permission system

Found a security issue? Please email security@railsblueprint.com instead of filing a public issue.

Credits

This project was originally inspired by Microsoft's Playwright MCP implementation but has been completely rewritten to use browser extension-based automation instead of Playwright. The architecture, implementation, and approach are fundamentally different.

Key differences:

  • Uses browser extensions with DevTools Protocol (not Playwright)
  • Works with real browser profiles (not isolated contexts)
  • WebSocket-based communication (not CDP relay)
  • Cloud relay option for remote access
  • Free and PRO tier model
  • Multi-browser support (Chrome, Firefox, Edge, Opera)

We're grateful to the Playwright team for pioneering browser automation via MCP.

License

Apache License 2.0 - see LICENSE

Copyright (c) 2025 Rails Blueprint


Built with ❤️ by Rails Blueprint

Website • GitHub • NPM

Cài đặt

TypingMind
{
  "mcpServers": {
    "blueprint-mcp": {
      "command": "blueprint-mcp",
      "args": []
    }
  }
}

Công cụ có sẵn

  • enable

    STEP 1: Enable browser automation. Activates the Chrome extension connection and makes browser_ tools available. Provide a client_id (e.g., your project name) for stable connection tracking. In PRO mode with multiple browsers, this will return a list to choose from.

  • disable

    Disable browser automation and return to passive mode. Closes Chrome extension connection. After this, browser_ tools will not work until you call enable again.

  • browser_connect

    Connect to a specific browser when multiple browsers are available (PRO mode only). Called after enable returns a list of browsers to choose from.

  • status

    Check current state: passive (not connected) or active/connected (browser automation enabled). Use this to verify connection status before calling browser_ tools.

  • auth

    Manage Blueprint MCP PRO authentication. Login to access unlimited browser tabs, logout to clear credentials, or check current authentication status.

  • browser_tabs

    STEP 2 (after enable): Manage browser tabs. List available tabs, create a new tab, attach to an existing tab for automation, or close a tab. You must attach to a tab before using other browser_ tools like navigate or interact.

  • browser_navigate

    Navigate in the browser - go to URL, back, forward, reload, or open test page

  • browser_interact

    Perform one or more browser interactions in sequence (click, type, press keys, hover, scroll, wait). When clicking on a element, automatically detects it and returns all available options with their selector. Use select_option action to choose an option by value or text. Scroll actions report success/failure and detect all scrollable areas on the page.

  • browser_snapshot

    Get accessible DOM snapshot of the page

  • browser_lookup

    Search for elements by text content and return their selectors and details. Useful for finding the right selector before clicking. Works like the "Did you mean?" feature but returns results directly instead of failing first.

  • browser_take_screenshot

    Capture screenshot of the page (default: JPEG quality 80, viewport only, 1:1 scale). Returns image data if no path provided, saves to file if path is specified.

  • browser_evaluate

    Execute JavaScript in the page context

  • browser_console_messages

    Get console messages from the page

  • browser_fill_form

    Fill multiple form fields at once

  • browser_drag

    Drag element to another element

  • browser_window

    Manage browser window - resize, close, minimize, or maximize

  • browser_verify_text_visible

    Verify text is visible on page

  • browser_verify_element_visible

    Verify element is visible

  • browser_network_requests

    Powerful network monitoring and replay tool with multiple actions: list (lightweight overview with filtering/pagination), details (full request/response with headers/bodies), replay (re-execute request), clear (free memory). Supports JSONPath filtering for large JSON responses.

  • browser_pdf_save

    Save page as PDF. Saves to specified file path.

  • browser_handle_dialog

    Handle alert/confirm/prompt dialog

  • browser_list_extensions

    List installed Chrome extensions

  • browser_reload_extensions

    Reload Chrome extensions

  • browser_performance_metrics

    Get performance metrics for current page - collects FCP, LCP, CLS, TTFB, and other Web Vitals

  • browser_extract_content

    Extract page content as clean markdown. Auto-detects main content by default, or extracts from full page or specific selector. Supports pagination for large content.

Dùng MCP Blueprint MCP for Chrome với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Blueprint MCP for Chrome, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Blueprint MCP for Chrome làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Blueprint MCP for Chrome.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "blueprint-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "blueprint-mcp-monorepo"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Blueprint MCP for Chrome, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Blueprint MCP for Chrome.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Blueprint MCP for Chrome giúp tôi làm việc này không?
Blueprint MCP for Chrome
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Blueprint MCP for Chrome.

Câu hỏi thường gặp

Máy chủ MCP Blueprint MCP for Chrome dùng để làm gì?

Blueprint MCP for Chrome là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Blueprint MCP for Chrome với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Blueprint MCP for Chrome với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Blueprint MCP for Chrome với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Blueprint MCP for Chrome, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Blueprint MCP for Chrome với TypingMind?

Blueprint MCP for Chrome hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Blueprint MCP for Chrome cung cấp những công cụ nào trong TypingMind?

Blueprint MCP for Chrome cung cấp 25 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Blueprint MCP for Chrome không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Blueprint MCP for Chrome yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇