chrometools-mcp logo

chrometools-mcp

Community
docentovich

MCP (Model Context Protocol) server for Chrome automation using Puppeteer. Persistent browser sessions, visual testing, Figma comparison, and design validation. Works seamlessly in WSL, Linux, and macOS.

Publisherdocentovich
Repositorychrometools-mcp
LanguageJavaScript
Forks
1
Stars
9
Available tools
0
Transport typestdio
Categories
LicenseISC
Links
  • Connect tools to AI workflows

    chrometools-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    9 stars and 1 forks from the linked repository.

chrometools-mcp

🌐 Русская версия README

AI-powered Chrome automation through natural language. No more fighting with CSS selectors, XPath expressions, or brittle test scripts. Just tell your AI assistant what you want to do on a web page, and ChromeTools MCP makes it happen.

Why ChromeTools MCP?

For AI Agents & Developers:

  • 🎯 56+ specialized tools for browser automation - from simple clicks to Figma comparisons
  • 🧠 APOM (Agent Page Object Model) - AI-friendly page representation (~8-10k tokens vs 5-10k for screenshots)
  • 🔄 Persistent browser sessions - pages stay open between commands for iterative workflows
  • ⚡ Framework-aware - handles React, Vue, Angular events and state updates automatically
  • 📸 Visual testing - compare designs pixel-by-pixel with Figma integration
  • 🎬 Scenario recording - record browser actions, replay them, or export as Playwright/Selenium tests
  • 🌍 Cross-platform - works seamlessly on Windows, WSL, Linux, and macOS

Perfect for:

  • 🤖 Building AI agents that interact with web applications
  • 🧪 Automated testing without writing code - let AI generate tests from scenarios
  • 🔍 Web scraping and data extraction with natural language instructions
  • 🎨 Design validation - compare implemented UI with Figma designs
  • 🚀 Rapid prototyping - test user flows by describing them to AI
  • 📊 Monitoring and health checks for web applications

Stop writing brittle automation scripts. Start describing what you want in plain English.

Installation

Claude Code (CLI)

The easiest way to install for Claude Code users:

bash
claude mcp add chrometools -- npx chrometools-mcp

This command will automatically configure the MCP server in your Claude Code settings.

Claude Desktop

Add to your Claude Desktop configuration file:

macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "chrometools": {
      "command": "npx",
      "args": ["chrometools-mcp"]
    }
  }
}

Cursor

Step 1: Open MCP Settings in Cursor

  • Click on Settings (⚙️ icon or Cmd + , / Ctrl + ,)
  • Navigate to Cursor Settings → MCP

Step 2: Edit MCP Configuration

  • You'll see the MCP configuration JSON editor
  • Add chrometools to the mcpServers object:
json
{
  "mcpServers": {
    "chrometools": {
      "command": "npx",
      "args": ["chrometools-mcp"]
    }
  }
}

If you already have other MCP servers configured, just add chrometools to the existing list:

json
{
  "mcpServers": {
    "existing-server": {
      "command": "npx",
      "args": ["some-other-mcp"]
    },
    "chrometools": {
      "command": "npx",
      "args": ["chrometools-mcp"]
    }
  }
}

Step 3: Save and Restart

  • Save the configuration file
  • Restart Cursor to apply changes
  • The chrometools-mcp tools will now be available in Cursor Agent

Step 4: Test the Installation

  • Open Cursor Chat
  • Select Agent mode
  • Try a command like: "Open browser and navigate to google.com"

Google Antigravity

Step 1: Open Agent session in Antigravity

Step 2: Click the "…" dropdown at the top of the editor's side panel

Step 3: Select "MCP Servers" to open the MCP Store

Step 4: Click "Manage MCP Servers" at the top of the MCP Store

Step 5: Click "View raw config" in the main tab

Step 6: Edit mcp_config.json (located in ~/.gemini/antigravity/ directory):

json
{
  "mcpServers": {
    "chrometools": {
      "command": "npx",
      "args": ["chrometools-mcp"]
    }
  }
}

Step 7: Save the file and restart Antigravity

Note: Antigravity has a limit of ~100 tools per session. If you have many MCP servers installed, consider reducing the number of active tools to ~25 for optimal performance.

Other MCP Clients

For Cline, Continue, or other MCP-compatible clients, add to your MCP configuration:

json
{
  "mcpServers": {
    "chrometools": {
      "command": "npx",
      "args": ["chrometools-mcp"]
    }
  }
}

Manual Installation

You can also run directly without configuration:

bash
npx chrometools-mcp

Chrome Extension Setup

The Chrome Extension is required for scenario recording and other advanced features. Follow these steps to install it:

Important: ChromeTools opens Chrome with a separate user profile, so you must install the extension after ChromeTools starts Chrome for the first time.

Step 1: Start ChromeTools MCP server first

  • Make sure ChromeTools is running through your MCP client (Claude Desktop, Cursor, etc.)
  • Or run it manually: npx chrometools-mcp
  • This will launch Chrome with ChromeTools' isolated profile

Step 2: Enable Developer Mode in Chrome

  • Open Chrome Extensions page: chrome://extensions
  • Toggle Developer mode (switch in top-right corner)

Developer Mode Screenshot

Step 3: Download and Extract the Extension

Option A - Download from GitHub (Recommended):

  1. Download the extension archive: chrome-extension.zip
  2. Extract the ZIP file to a folder on your computer
  3. Remember the extraction path (you'll need it in the next step)

Option B - Use from node_modules (if you know the path):

  • After npx install: ~/.npm/_npx/.../node_modules/chrometools-mcp/extension
  • After global install: <npm-global-path>/node_modules/chrometools-mcp/extension
  • From source: <repo-path>/extension

Step 4: Load the Extension

  • Click "Load unpacked" button
  • Navigate to the extracted extension folder (from Step 3)
  • Select the folder and click "Select Folder"

Step 5: Verify Installation

  • You should see "ChromeTools MCP" extension appear in your extensions list with:
    • Name: ChromeTools MCP
    • Version: (current version)
    • Description: MCP server integration for Chrome automation
    • Status: Toggle should be ON (blue)
  • Look for the ChromeTools icon (CT) in your Chrome toolbar
  • The extension is now ready to use for scenario recording

Installed Extension Screenshot

Note: After installation, the extension card will appear on the chrome://extensions page alongside other installed extensions. The extension should show as "Enabled" with a blue toggle switch.

Step 6: Pin the Extension (Optional but Recommended)

  • Click the puzzle piece icon in Chrome toolbar
  • Find "ChromeTools MCP" in the list
  • Click the pin icon to keep it visible in toolbar

Troubleshooting:

  • Recommended: Use Option A (download from GitHub) to avoid searching in node_modules
  • If using Option B and can't find the extension folder after npx install, run npm list -g chrometools-mcp to find the installation path
  • The extension only works with Chrome instances launched by ChromeTools
  • If Chrome closes and reopens, the extension should still be loaded (developer mode persists)
  • When ChromeTools first opens Chrome, it automatically shows a prompt with the extension path in node_modules

Table of Contents

AI Optimization Features

: Dramatically reduce AI agent request cycles with intelligent element finding and page analysis.

Why This Matters

Traditional browser automation with AI requires many trial-and-error cycles:

AI: "Find login button"
→ Try selector #1: Not found
→ Try selector #2: Not found
→ Try selector #3: Found! (3 requests, 15-30 seconds)

With AI optimization:

AI: smartFindElement("login button")
→ Returns ranked candidates with confidence scores (1 request, 2 seconds)

Key Features

  1. analyzePage - 🔥 USE FREQUENTLY - Get current page state after loads, clicks, submissions (cached, use refresh:true)
  2. smartFindElement - Natural language element search with multilingual support
  3. AI Hints - Automatic context in all tools (page type, page heading, modal content, dropdown/menu items, suggestions)
  4. Text search - findElementsByText for finding elements by visible text

Performance: 3-5x faster, 5-10x fewer requests

Best Practice:

  • Use analyzePage() after page loads AND after interactions (clicks, submissions)
  • Use analyzePage({ refresh: true }) after page changes to see current state
  • Prefer analyzePage over screenshot for debugging form data

📚 Full AI Optimization Guide

Scenario Recorder

: Visual UI-based recorder for creating reusable test scenarios with automatic secret detection.

Features

  • Visual Widget - Floating recorder UI with compact mode (50x50px minimize button)
  • Auto-Reinjection - Recorder persists across page reloads/navigation automatically with duplicate prevention - Smart Click Detection - Finds actual clickable parent elements with event listeners- Smart Waiters - 2s minimum + animation/network/DOM change detection after clicks- Detailed Error Reports - Comprehensive failure analysis with context and suggestions- Smart Recording - Captures clicks, typing, navigation with intelligent optimization
  • Secret Detection - Auto-detects passwords/emails and stores them securely
  • Action Optimization - Combines sequential actions, removes duplicates
  • Scenario Management - Save, load, execute, search, and delete scenarios
  • Dependencies - Chain scenarios together with dependency resolution
  • Multi-Instance Protection - Prevents multiple recorder instances from interfering

Quick Start

javascript
// 1. Enable recorder UI
enableRecorder()

// 2. Click "Start" in widget, perform actions, click "Stop & Save"
// 3. Execute saved scenario
executeScenario({ name: "login_flow", parameters: { email: "user@test.com" } })

📚 Full Recorder Guide | Recorder Spec

Available Tools

⚠️ Tool Usage Priority

CRITICAL: Always use specialized tools first. Never jump to executeScript as first choice.

For Clicking/Interaction

  1. ✅ click() - PRIMARY tool for all clicks
    • Works correctly with React/Vue/Angular synthetic events
    • Handles button clicks, link navigation, form submissions
  2. ✅ findElementsByText() + action - When selector is unknown, find by text
  3. ⚠️ executeScript() - LAST RESORT, only if above failed

For Filling Forms

  1. ✅ type() - PRIMARY tool for all text input
    • Properly updates React hooks, Vue reactive data
    • Auto-clears field before typing (configurable)
  2. ⚠️ executeScript() - LAST RESORT, only if above failed

For Reading Page State

  1. ✅ analyzePage() - PRIMARY tool for reading page content
    • Gets forms, inputs, buttons, links with current values
    • Use refresh: true after interactions to see updated state
    • Efficient: 2-5k tokens vs screenshot 5-10k
  2. ✅ findElementsByText() - Find specific elements by visible text
  3. ✅ getElement() - Get HTML of specific element
  4. ⚠️ executeScript() - LAST RESORT, only if above failed

Model-Based Interaction (Advanced)

  1. ✅ executeModelAction() - Universal tool for model-specific actions
    • Works with element models (Strategy Pattern)
    • Supports both APOM ID and CSS selector
    • Framework-specific actions (e.g., DatePicker SetDate, Checkbox toggle)
    • Example: executeModelAction({id: "input_34", action: "check"})
    • Example: executeModelAction({selector: ".datepicker", action: "SetDate", params: {date: "2024-03-15"}})
    • See models/ directory for available models and actions
    • Available models: TxtInp, Sel, Btn, Chk, Radio, TxtArea, Link, Range, DatePicker, DateInp, FileInp, ColorInp, Modal, default

Modal/Dialog Support

  • Automatic detection: APOM detects modals rendered via React Portals (antd, MUI, Bootstrap, Chakra, Mantine, Element UI, Headless UI, Radix)
  • Detection methods: role="dialog", aria-modal="true", framework-specific CSS classes
  • Animation-proof: Modal elements are included even during CSS appear animations (opacity: 0)
  • Rich metadata: Modal nodes include title and actions (button labels) in metadata
  • In APOM tree: Modals appear as type: "dialog" with model: "Modal", containing all interactive children

Why specialized tools matter:

  • ✅ Trigger proper browser events (click, input, change)
  • ✅ Work with React/Vue/Angular synthetic event systems
  • ✅ Update framework state correctly (React hooks, Vue reactivity)
  • ✅ Handle animations, navigation, and async updates
  • ❌ executeScript bypasses framework events and may fail silently

AI-Powered Tools

smartFindElementFind elements using natural language descriptions instead of CSS selectors.

  • Parameters:
    • description (required): Natural language (e.g., "login button", "email field")
    • maxResults (optional): Max candidates to return (default: 5)
    • minConfidence (optional): Confidence threshold (0–1, default 0.6) for auto-executing action. If the best match scores below this — or is too close to the runner-up — the action is skipped and candidates are returned with an actionSkipped reason instead. Prevents auto-clicking the wrong control (e.g. a primary form submit when you asked for a menu item). Lower it to act on weaker matches.
  • Candidate coverage: besides button/input/a/[role=button], also considers [onclick], [role=menuitem], [role=tab], and links inside nav/[role=navigation]/[role=menu] — so menu items rendered as div/span[onclick] are found. Scoring penalizes candidates whose text doesn't match the description and rewards navigation/menu context.
  • Use case: When you don't know the exact selector
  • Returns: Ranked candidates with confidence scores, selectors, and reasoning
  • Example:
    json
    {
      "description": "submit button",
      "maxResults": 3
    }
    Returns:
    json
    {
      "candidates": [
        { "selector": "button.login-btn", "confidence": 0.95, "text": "Login", "reason": "type=submit, in form, matching keyword" },
        { "selector": "#submit", "confidence": 0.7, "text": "Send", "reason": "submit class" }
      ],
      "hints": { "suggestion": "Use selector: button.login-btn" }
    }

analyzePage Get current page state and structure. Returns complete map of forms (with values), inputs, buttons, links with selectors.

Interactivity Detection:

  • Detects interactive elements via 8 different methods:
    1. Native HTML tags (button, a, input, select, textarea)
    2. ARIA roles (button, link, checkbox, etc.)
    3. onclick attribute
    4. onclick property (set via JavaScript)
    5. CSS cursor: pointer
    6. JavaScript addEventListener('click')
    7. tabindex attribute (except -1)
    8. contenteditable="true"
  • Captures DIV/SPAN with click handlers - JavaScript-enabled elements are detected
  • Adds interactivityReason metadata showing detection method (e.g., cursor-pointer, event-listener)

When to use:

  • After opening/navigating to page (initial analysis)
  • After clicking buttons (see what changed)
  • After form submissions (check results, errors)
  • After AJAX updates (dynamic content loaded)
  • When debugging (see actual form values, not just visual)
  • Layout/styling work - use includeAll: true to get ALL page elements with selectors
  • Parameters:
    • refresh (optional): Force refresh cache to get CURRENT state after changes (default: false)
    • includeAll (optional): Include ALL page elements, not just interactive ones (default: false). Useful for layout work - find any element, get its selector, then use getComputedCss or setStyles on it.
    • useLegacyFormat (optional): Return legacy format instead of APOM (default: false - APOM is the default)
    • registerElements (optional): Auto-register elements for ID-based usage (default: true) - groupBy (optional): 'type' or 'flat' - how to group elements (default: 'type')
    • includePortals (optional): Include contents of React Portal containers — menus, tooltips, popovers rendered outside the main React root (default: true). Without this, items inside dropdown popups (e.g. action menus in MTS-like apps) are invisible to analyzePage.
    • portalSelectors (optional): Array of CSS selectors for portal root containers. Default: ['#modal-root', '#menu-popup-root', '#tooltip-root', '#popover-root', '[data-portal]']. Override when the app uses different portal element ids.
    • In-tree popup heuristic: when includePortals is enabled (default), analyzePage also detects "in-tree portal" patterns — popups rendered inside a 0-height inline wrapper and absolute-positioned out of it (Popper, Tippy, FloatingUI, custom contextMenu implementations). Without this, popup items live inside an offsetHeight: 0 wrapper that isVisible drops, making the whole popup subtree invisible to analyzePage. - Why better than screenshot:
    • Shows actual data (form values, validation errors) not just visual
    • Uses 2-5k tokens vs screenshot 5-10k tokens
    • Returns structured data with unique element IDs for easy interaction
    • Detects UI frameworks (MUI, Ant Design, Chakra, Bootstrap, Vuetify, Semantic UI) - Extracts dropdown options from both native <select> and custom UI components- Returns:
    • APOM format (default): Tree-structured Page Object Model with unique IDs - tree - Hierarchical tree of page elements (optimized: ~82% smaller than flat format)
      • Each node: { tag, id?, type?, sel, ch?, bounds?, meta? }
      • Interactive elements have bounds and full metadata
      • Parent containers have minimal info (position only)
      • groups - Radio/checkbox groups with options (name, value, label, checked state)
      • meta - Page metadata (url, title, timestamp, element counts)
      • Elements automatically registered - use IDs with click({ id: "..." }), type({ id: "..." }), etc.
      • Token-optimized: Minified JSON, simplified parents, no redundant data
      • Example: analyzePage() returns APOM, then use click({ id: "button_45" }) or type({ id: "input_20", text: "..." })
    • Use getElementDetails({ id: "input_20" }) to get full details for any element, or with analyzeChildren: true to get children tree structure
    • Legacy format (useLegacyFormat: true): Classic format for backward compatibility
      • Complete map of forms (with current values), inputs, buttons, links, navigation with selectors
      • Each element includes uiFramework info (name, version, component type) - Select elements include options array with value, text, index, selected, disabled, group - With includeAll: true: Also includes allElements array with ALL visible page elements (divs, spans, headings, etc.) - each with selector, tag, text, classes, id
  • Example workflow:
    1. openBrowser({ url: "..." })
    2. analyzePage() ← Initial analysis, returns elements with IDs
    3. type({ id: "input_20", text: "user@example.com" }) ← Use APOM ID
    4. click({ id: "button_45" }) ← Use APOM ID
    5. analyzePage({ refresh: true }) ← See what changed after click!
  • Layout work example:
    1. analyzePage({ includeAll: true }) ← Get all elements
    2. Find element you want to style (e.g., div.header)
    3. getComputedCss({ selector: "div.header" }) ← Get current styles
    4. setStyles({ selector: "div.header", styles: [...] }) ← Apply new styles

getElementDetailsGet comprehensive details about a specific element by its APOM ID. Can optionally analyze children elements tree structure. Use when analyzePage output is simplified and you need complete element information or want to focus analysis on a specific section.

  • Parameters:
    • id (required): APOM element ID (e.g., "input_20", "button_45")
    • analyzeChildren (optional): Analyze children elements tree structure (default: false)
    • includeAll (optional): When analyzing children, include all elements, not just interactive ones (default: false)
    • refresh (optional): Force refresh of cached analysis (default: false)
  • Use case:
    • Get full details including bounds, CSS selector, attributes, computed styles
    • Focus analysis on specific section (modal, form, sidebar, etc.) with analyzeChildren: true
  • Returns: Complete element details including:
    • id: Element APOM ID
    • selector: CSS selector for the element
    • tag: HTML tag name
    • type: Element type (input, button, link, etc.)
    • text: Visible text content
    • bounds: Position and size { x, y, width, height, top, right, bottom, left }
    • attributes: All HTML attributes (id, class, name, placeholder, href, etc.)
    • computed: Key CSS properties (display, visibility, cursor, color, fontSize, etc.)
    • metadata: Element metadata from APOM analysis
    • visible: Whether element is visible
    • childrenTree (optional): APOM tree structure of children elements when analyzeChildren: true
  • Example:
    javascript
    // Get complete details for specific input field
    getElementDetails({ id: "input_20" })
    
    // Returns:
    {
      "success": true,
      "id": "input_20",
      "selector": "input[name='email']",
      "tag": "input",
      "type": "email",
      "text": "",
      "bounds": { "x": 100, "y": 200, "width": 300, "height": 40, "top": 200, "right": 400, "bottom": 240, "left": 100 },
      "attributes": { "name": "email", "placeholder": "Enter email", "type": "email" },
      "computed": { "display": "block", "visibility": "visible", "cursor": "text" },
      "visible": true
    }
    
    // Analyze modal contents after opening it
    analyzePage() // Get initial page structure
    click({ id: "button_45" }) // Open modal
    getElementDetails({ id: "container_123", analyzeChildren: true, refresh: true }) // Analyze modal contents with children tree

findElementsByText

Find elements by their visible text content.

  • Parameters:
    • text (required): Text to search for
    • exact (optional): Exact match only (default: false)
    • caseSensitive (optional): Case sensitive search (default: false)
  • Returns: Elements containing the text with their selectors

1. Core Tools

ping

Test MCP connection with a simple ping-pong response.

  • Parameters: message (optional)
  • Example: { "name": "ping", "arguments": { "message": "hello" } }
  • Returns: pong: hello

openBrowser

Opens browser and navigates to URL. Browser stays open for further interactions.

  • Parameters: url (required)
  • Use case: First step before other tools
  • Returns: Page title + confirmation

2. Interaction Tools

click

Click an element with optional result screenshot. PREFERRED: Use APOM ID from analyzePage for reliable targeting.

  • Parameters:
    • id (optional): APOM element ID from analyzePage (e.g., "button_45", "link_7"). Preferred over selector.
    • selector (optional): CSS selector. Use when APOM ID is not available.
    • ⚠️ Either id OR selector required (mutually exclusive)
    • waitAfter (optional): Wait time in ms (default: 1500)
    • screenshot (optional): Capture screenshot (default: false for performance) ⚡
    • timeout (optional): Max operation time in ms (default: 30000)
    • skipNetworkWait (optional): Skip waiting for network requests (default: false). Use for pages with continuous long-polling to get instant response.
    • networkWaitTimeout (optional): Custom network wait timeout in ms (default: 10000). Only used if skipNetworkWait is false.
    • waitForSelector (optional): CSS selector to wait for after the click — atomic click+wait. Use for dropdowns/popups that render into a React Portal and otherwise race with the next MCP call. Example: click({ id: 'button_47', waitForSelector: '#menu-popup-root > div' }).
    • waitTimeoutMs (optional): Timeout for waitForSelector in ms (default: 2000). On timeout the click still succeeds but the result text reports ⚠️ WAIT_TIMEOUT.
    • waitForRouteChange (optional): For SPAs (React Router etc.). After the click, waits for location.pathname + location.search to change relative to before, then reports Route changed: "/a" → "/b" or ⚠️ ROUTE_UNCHANGED. Because SPAs navigate via history.pushState, plain network diagnostics may not register the navigation — this makes "success" mean the view actually changed, not just that the click was delivered. Never fails the click on timeout. For view changes that don't alter the URL, use waitForSelector instead.
    • autoAnalyzeAfter (optional): After click, automatically diff APOM and append the delta to the result text (e.g. +3 appeared: button_42:"Статистика", button_43:"Настройки", link_44:"Удалить"). New element ids are pre-registered so the next click({ id })/type({ id }) call works without an extra analyzePage. Designed for the dropdown/menu pattern: one MCP call instead of three.
  • Use case: Buttons, links, form submissions, Django admin forms
  • Returns: Confirmation text + optional screenshot + network diagnostics
  • Performance: 2-10x faster without screenshot, instant with skipNetworkWait
  • Click strategy: Three-tier fallback for maximum compatibility:
    1. Puppeteer native click (trusted CDP events)
    2. CDP coordinate click at element center (trusted, bypasses interception check)
    3. JavaScript element.click() (untrusted, last resort)
  • Example:
    javascript
    // PREFERRED: Using APOM ID
    click({ id: "button_45" })
    
    // Alternative: Using CSS selector
    click({ selector: "button[type='submit']" })
    
    // Django forms with WebSockets (prevents timeout)
    click({ selector: ".submit-row input[type='submit']", skipNetworkWait: true })
    
    // Custom network timeout for slow APIs
    click({ id: "save_btn", networkWaitTimeout: 10000 })

type

Type text into input fields with optional clearing and typing delay. PREFERRED: Use APOM ID from analyzePage for reliable targeting.

  • Parameters:
    • id (optional): APOM element ID from analyzePage (e.g., "input_20"). Preferred over selector.
    • selector (optional): CSS selector. Use when APOM ID is not available.
    • ⚠️ Either id OR selector required (mutually exclusive)
    • text (required): Text to type
    • delay (optional): Delay between keystrokes in ms (default: 30)
    • clearFirst (optional): Clear field first (default: true)
    • timeout (optional): Max operation time in ms (default: 30000). Prevents infinite hangs on Django forms.
  • Use case: Filling forms, search boxes, text inputs, Django admin forms
  • Returns: Confirmation text
  • Example:
    javascript
    // PREFERRED: Using APOM ID
    type({ id: "input_20", text: "user@example.com" })
    
    // Alternative: Using CSS selector
    type({ selector: "input[name='email']", text: "user@example.com" })

scrollTo

Scroll page to bring element into view.

  • Parameters:
    • selector (required): CSS selector
    • behavior (optional): "auto" or "smooth"
  • Use case: Lazy loading, sticky elements, visibility checks
  • Returns: Final scroll position

selectOption

Select option in dropdown (HTML select elements). PREFERRED: Use APOM ID from analyzePage for reliable targeting.

  • Parameters:
    • id (optional): APOM element ID from analyzePage (e.g., "select_5"). Preferred over selector.
    • selector (optional): CSS selector. Use when APOM ID is not available.
    • ⚠️ Either id OR selector required (mutually exclusive)
    • value (optional): Option value attribute (priority 1)
    • text (optional): Option text content (priority 2)
    • index (optional): Option index, 0-based (priority 3)
  • Use case: Form dropdowns, filtering, selection menus
  • Returns: Selected option details (value, text, index)
  • Selection priority: If multiple parameters specified, tries value → text → index
  • AI Integration: Use analyzePage to see all available options with their values, text, and indices
  • Example:
    javascript
    // PREFERRED: Using APOM ID
    selectOption({ id: "select_5", value: "US" })
    
    // Alternative: Using CSS selector
    selectOption({ selector: "select[name='country']", text: "United States" })

selectFromGroupSelect option(s) from radio or checkbox group by name attribute. Works at abstract group level instead of individual clicks.

  • Parameters:
    • name (required): Name attribute of the radio/checkbox group (e.g., 'size', 'toppings')
    • value (optional): Single value to select (for radio or single checkbox)
    • values (optional): Array of values to select (for checkbox group)
    • text (optional): Label text to match (alternative to value)
    • texts (optional): Array of label texts to match (for checkbox group)
    • by (optional): Match by 'value', 'text', or 'auto' (default: 'auto')
    • mode (optional): For checkboxes - 'set' (replace all), 'add', 'remove', 'toggle' (default: 'set')
  • Use case: Radio buttons, checkbox groups, form options
  • Returns: Result with changes made and current selection state
  • AI Integration: Use analyzePage to see available groups in groups section with all options and labels
  • Examples:
    javascript
    // Radio group - select single option
    selectFromGroup({ name: "size", value: "large" })
    selectFromGroup({ name: "size", text: "Extra Large" })
    
    // Checkbox group - set specific values (uncheck others)
    selectFromGroup({ name: "toppings", values: ["cheese", "bacon"] })
    
    // Checkbox group - add to existing selection
    selectFromGroup({ name: "toppings", values: ["mushrooms"], mode: "add" })
    
    // Checkbox group - remove specific values
    selectFromGroup({ name: "toppings", values: ["onions"], mode: "remove" })
    
    // Checkbox group - toggle values
    selectFromGroup({ name: "toppings", texts: ["Extra Cheese"], mode: "toggle" })

drag

Drag element by mouse (click-hold-move-release). Simulates real mouse drag, not scrollbar scrolling.

  • Parameters:
    • selector (required): CSS selector for element to drag
    • direction (required): 'up', 'down', 'left', 'right', 'up-left', 'up-right', 'down-left', 'down-right'
    • distance (optional): Distance in pixels (default: 100)
    • duration (optional): Drag duration in milliseconds (default: 500)
    • mode (optional): 'native' (default) or 'synthetic'
      • 'native': Uses Puppeteer mouse API - faster, works for most cases
      • 'synthetic': Dispatches DOM events (pointerdown/pointermove/pointerup) - better compatibility with JS libraries (frappe-gantt, jQuery UI Draggable, custom drag handlers)
  • Use case: Interactive maps (Google Maps, Leaflet), Gantt charts, SVG diagrams, canvas elements, sliders, drag-to-pan interfaces
  • How it works:
    • Native mode: Uses Puppeteer's mouse API (mousedown → mousemove → mouseup)
    • Synthetic mode: Dispatches PointerEvent/MouseEvent on element with intermediate pointermove events during drag
  • When to use synthetic mode: If native drag doesn't trigger JS library event handlers (e.g., frappe-gantt, jQuery UI, React DnD)
  • NOT for: Standard overflow scrollbars (use scrollTo or scrollHorizontal instead)
  • Returns: Start/end mouse positions, drag delta, and mode used

scrollHorizontal

Scroll element horizontally (for tables, carousels, wide content).

  • Parameters:
    • selector (required): CSS selector for element to scroll
    • direction (required): 'left' or 'right'
    • amount (required): Number of pixels to scroll, or 'full' to scroll to the end
    • behavior (optional): 'auto' or 'smooth' (default: 'auto')
  • Use case: Wide tables, image carousels, horizontally scrollable containers
  • Returns: Scroll state (position, total width, visible width, scroll availability)

3. Inspection Tools

getElement

Get HTML markup of element (defaults to body if no selector).

  • Parameters: selector (optional)
  • Use case: Inspecting structure, debugging markup
  • Returns: Complete outerHTML

getComputedCss

Get computed CSS styles for an element with intelligent filtering to reduce token usage.

  • Parameters:
    • selector (optional): CSS selector (defaults to body)
    • category (optional): Filter by category - 'layout', 'typography', 'colors', 'visual', or 'all' (default)
    • properties (optional): Array of specific properties to return (e.g., ['color', 'font-size']) - overrides category filter
    • includeDefaults (optional): Include properties with default values (default: false)
  • Use case: Debugging layout, verifying styles, design comparison
  • Returns: JSON object with filtered CSS properties, metadata about filtering
  • Performance: Without filters returns ~300 properties (~14k tokens). With filtering returns 10-50 properties (~1-2k tokens)
  • Example usage:
    • Layout only: { selector: ".header", category: "layout" }
    • Specific properties: { selector: ".title", properties: ["color", "font-size", "font-weight"] }
    • Typography without defaults: { selector: "h1", category: "typography", includeDefaults: false }

getBoxModel

Get precise dimensions, positioning, margins, padding, and borders.

  • Parameters: selector (required)
  • Use case: Pixel-perfect measurements, layout analysis
  • Returns: Box model data + metrics

screenshot

Capture optimized screenshot of a specific element, or the full viewport when no id/selector is given. Smart compression with a 3 MB hard limit.

  • Parameters:
    • id (optional): APOM element ID from analyzePage. Mutually exclusive with selector.
    • selector (optional): CSS selector. Mutually exclusive with id.
    • Omit both id and selector to capture the full viewport (no element resolution needed).
    • padding (optional): Padding in pixels (default: 0). Ignored for viewport screenshots.
    • maxWidth (optional): Max width for auto-scaling (default: 1024, null for original size)
    • maxHeight (optional): Max height for auto-scaling (default: 8000, null for original size)
    • quality (optional): JPEG quality 1-100 (default: 40)
    • format (optional): 'png', 'jpeg', or 'auto' (default: 'jpeg')
  • Use case: Visual documentation, bug reports
  • Returns: Optimized image with metadata (~5-10k tokens)
  • Default behavior: JPEG at quality 40, auto-scales to 1024px width and 8000px height (API limit). For higher quality, explicitly set quality and format parameters
  • Automatic compression: If image exceeds 3 MB, automatically reduces quality or scales down to fit within limit
  • For original quality: Set maxWidth: null, maxHeight: null and format: 'png' (still enforces 3 MB limit)

saveScreenshot

Save optimized screenshot to filesystem without returning in context, with automatic 3 MB limit.

  • Parameters:
    • selector (required)
    • filePath (required): Absolute path to save file
    • padding (optional): Padding in pixels (default: 0)
    • maxWidth (optional): Max width for auto-scaling (default: 1024, null for original)
    • maxHeight (optional): Max height for auto-scaling (default: 8000, null for original)
    • quality (optional): JPEG quality 1-100 (default: 80)
    • format (optional): 'png', 'jpeg', or 'auto' (default: 'auto')
  • Use case: Baseline screenshots, file storage (higher quality defaults than screenshot tool)
  • Returns: File path and metadata (not image data)
  • Default behavior: Auto-scales and compresses to save disk space
  • Automatic compression: If image exceeds 3 MB, automatically reduces quality or scales down to fit within limit

4. Advanced Tools

executeScript

Execute arbitrary JavaScript in page context with optional screenshot.

  • Parameters:
    • script (required): JavaScript code
    • waitAfter (optional): Wait time in ms (default: 500)
    • screenshot (optional): Capture screenshot (default: false for performance) ⚡
    • timeout (optional): Max operation time in ms (default: 30000)
  • Use case: Complex interactions, custom manipulations
  • Returns: Execution result + optional screenshot
  • Performance: 2-10x faster without screenshot
  • Top-level return: any snippet using a top-level return (e.g. return document.title, const x = 1; return x, or code that contains a function in a callback) just works — it's run as-is first, and only re-wrapped in an async IIFE if the engine reports an "Illegal return statement". Bare expressions like document.title still return their value. No manual (() => { ... })() wrapping needed.
  • Frames: runs inside the active frame after switchFrame (see Frame Tools); defaults to the main frame.

getConsoleLogs

Retrieve browser console logs (log, warn, error, etc.).

  • Parameters:
    • types (optional): Array of log types to filter
    • clear (optional): Clear logs after reading (default: false)
  • Use case: Debugging JavaScript errors, tracking behavior
  • Returns: Array of log entries with timestamps

Network Monitoring (3 specialized tools)

Auto-captures across page navigations. All network requests are monitored automatically.

listNetworkRequests

Get compact summary of network requests with pagination support - minimal token usage.

  • Parameters:
    • types (optional): Array of request types (default: ['Fetch', 'XHR'])
    • status (optional): Filter by status (pending, completed, failed, all)
    • limit (optional): Maximum number of requests to return (default: 50, max: 500)
    • offset (optional): Number of requests to skip (default: 0)
    • clear (optional): Clear requests after reading (default: false)
  • Returns: Object with totalCount, returnedCount, hasMore, offset, limit, and paginated requests array
  • Use case: Quick overview of API calls with pagination for large request lists
  • Example:
    • listNetworkRequests() → first 50 requests
    • listNetworkRequests({ limit: 20, offset: 20 }) → requests 21-40
    • Response: { totalCount: 150, returnedCount: 50, hasMore: true, offset: 0, limit: 50, requests: [...] }
getNetworkRequest

Get full details of a single request by ID.

  • Parameters:
    • requestId (required): Request ID from listNetworkRequests
  • Returns: Complete request/response with headers, payload, timing, mime type
  • Use case: Deep dive into specific request after identifying it in list
  • Example: getNetworkRequest({ requestId: "123" }) → full details with headers, body, timing
filterNetworkRequests

Filter requests by URL pattern with full details.

  • Parameters:
    • urlPattern (required): URL pattern (regex or partial match)
    • types (optional): Array of request types (default: ['Fetch', 'XHR'])
    • clear (optional): Clear requests after reading (default: false)
  • Returns: Array of full request details matching pattern
  • Use case: Get all API calls to specific endpoint with complete data
  • Example: filterNetworkRequests({ urlPattern: "api/users" }) → all requests to /api/users with full details

Workflow:

  1. listNetworkRequests() - see all requests (compact)
  2. getNetworkRequest({ requestId: "..." }) - inspect specific request
  3. filterNetworkRequests({ urlPattern: "api/..." }) - get all matching requests with details

hover

Simulate mouse hover over element. PREFERRED: Use APOM ID from analyzePage for reliable targeting.

  • Parameters:
    • id (optional): APOM element ID from analyzePage (e.g., "button_10"). Preferred over selector.
    • selector (optional): CSS selector. Use when APOM ID is not available.
    • ⚠️ Either id OR selector required (mutually exclusive)
  • Use case: Testing hover effects, tooltips, dropdown menus
  • Returns: Confirmation text
  • Example:
    javascript
    // PREFERRED: Using APOM ID
    hover({ id: "button_10" })
    
    // Alternative: Using CSS selector
    hover({ selector: ".dropdown-trigger" })

pressKey

Press keyboard key, optionally on a specific element. Uses Puppeteer's trusted keyboard events.

  • Parameters:
    • id (optional): APOM element ID to focus before pressing
    • selector (optional): CSS selector to focus before pressing
    • key (required): Key to press — 'Enter', 'Escape', 'Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Home', 'End', 'PageUp', 'PageDown', 'Space'
    • modifiers (optional): Array of modifier keys to hold — ['Control'], ['Shift'], ['Alt'], ['Meta']
    • Neither id nor selector is required — without them, presses on whatever is currently focused
  • Use case: Form submission (Enter), closing dialogs (Escape), focus navigation (Tab), keyboard shortcuts (Ctrl+A)
  • Returns: Confirmation text
  • Example:
    javascript
    // Submit form by pressing Enter on input
    pressKey({ id: "input_20", key: "Enter" })
    
    // Close modal with Escape (no element needed)
    pressKey({ key: "Escape" })
    
    // Select all text with Ctrl+A
    pressKey({ id: "input_5", key: "a", modifiers: ["Control"] })
    
    // Navigate with Tab
    pressKey({ key: "Tab" })

setStyles

Apply inline CSS styles to element for live editing.

  • Parameters:
    • selector (required)
    • styles (required): Array of {name, value} pairs
  • Use case: Testing design changes, rapid prototyping
  • Returns: Applied styles confirmation

setViewport

Change viewport dimensions for responsive testing.

  • Parameters:
    • width (required): 320-4000px
    • height (required): 200-3000px
    • deviceScaleFactor (optional): 0.5-3 (default: 1)
  • Use case: Testing mobile, tablet, desktop layouts
  • Returns: Actual viewport dimensions

getViewport

Get current viewport size and device pixel ratio.

  • Parameters: None
  • Use case: Checking current screen dimensions
  • Returns: Viewport metrics (width, height, DPR)

navigateTo

Navigate to different URL while keeping browser instance.

  • Parameters:
    • url (required)
    • waitUntil (optional): load event type
  • Use case: Moving between pages in workflow
  • Returns: New page title. The post-navigation network summary lists only XHR/Fetch requests (static assets — JS chunks, CSS, fonts, images — are hidden and counted) and is capped at the first 12 with a … N more note, so a heavy SPA load doesn't bury the signal.
  • Note: resets the active frame back to the main frame (see Frame Tools).

5. Tab Management Tools

Tools for managing multiple browser tabs. New tabs opened via window.open(), target="_blank", or user actions are automatically detected and tracked.

listTabs

List all open browser tabs with their URLs, titles, and active status.

  • Parameters: None
  • Returns:
    • tabs: Array of { index, url, title, isActive }
    • totalCount: Number of open tabs
    • newTabsDetected (optional): Array of tabs opened since last check
  • Use case: See all open tabs, check for newly opened tabs
javascript
// Example response
{
  "tabs": [
    { "index": 0, "url": "https://example.com", "title": "Example", "isActive": false },
    { "index": 1, "url": "https://google.com", "title": "Google", "isActive": true }
  ],
  "totalCount": 2,
  "newTabsDetected": [
    { "timestamp": "2026-01-25T...", "url": "https://google.com", "openerUrl": "https://example.com" }
  ]
}

switchTab

Switch to a different browser tab by index or URL pattern.

  • Parameters:
    • tab (required): Tab index (number, 0-based) or URL pattern (string, partial match)
  • Use case: Switch between tabs for multi-tab workflows
  • Returns: { success, switchedTo: { url, title } }
javascript
// Switch by index
switchTab({ tab: 0 })

// Switch by URL pattern
switchTab({ tab: "google.com" })

5a. Frame Tools (iframe automation)

Tools for automating pages whose UI lives inside an <iframe> — including cross-origin iframes (e.g. a widget hosted on a different subdomain). Cross-origin frames can't be reached from page JavaScript (Same-Origin Policy blocks iframe.contentDocument), but ChromeTools resolves them over CDP, so the SOP doesn't apply.

By default all tools operate on the main frame. After switchFrame, the element tools — click, type, hover, selectOption, pressKey, scrollTo, waitForElement, analyzePage, findElementsByText, smartFindElement, executeScript — run inside the selected frame until you reset. The active frame is reset automatically on navigateTo.

listFrames

List all frames on the current page so you can discover which one to switch into.

  • Parameters: None
  • Returns: { count, activeFrame, frames: [{ url, name, isMain }], hint }
  • Use case: Find a cross-origin iframe (e.g. app.example.com) before switching into it

switchFrame

Set the active frame for subsequent element tools. Call with no arguments to reset back to the main frame.

  • Parameters (provide one, or none to reset):
    • frameUrl (optional): substring matched against each frame's URL (e.g. "app.example.com"). Selects the first match.
    • frameSelector (optional): CSS selector of the <iframe> element; its content frame becomes active.
  • Returns: { active: <frame url>, matcher, frames } (or { active: null } on reset)
  • Use case: Enter a cross-origin iframe to click/fill a form rendered there
javascript
// Discover frames
listFrames()
// → { count: 2, frames: [ {url:".../app", isMain:true}, {url:"https://app.example.com/...", isMain:false} ] }

// Enter the cross-origin iframe
switchFrame({ frameUrl: "app.example.com" })

// Now element tools target the iframe
analyzePage()                       // returns the iframe's APOM tree
findElementsByText({ text: "Save" }) // searches inside the iframe
click({ id: "button_3" })            // clicks inside the iframe

// Back to the main document
switchFrame()

analyzePage also includes a frames array in its output whenever the page has more than one frame, so the agent can discover iframes without a separate listFrames call.

6. Figma Tools

Design-to-code validation, file browsing, design system extraction, and comparison tools with automatic 3 MB compression.

parseFigmaUrl Parse Figma URL to extract fileKey and nodeId automatically.

  • Parameters:
    • url (required): Full Figma URL or just fileKey
  • Supported formats:
    • https://www.figma.com/file/ABC123/Title?node-id=1-2
    • https://www.figma.com/design/ABC123/Title?node-id=1-2
    • ABC123 (just fileKey)
  • Use case: No need to manually extract fileKey and nodeId from URLs
  • Returns: { fileKey, nodeId } object

listFigmaPages Browse entire Figma file structure: all pages and frames with IDs.

  • Parameters:
    • figmaToken (optional): Figma API token
    • fileKey (required): Figma file key or full URL
  • Use case: Use FIRST to discover what's in the Figma file before requesting specific nodes
  • Returns: Hierarchical structure with:
    • File metadata (name, version, lastModified)
    • All pages with names and IDs
    • All frames in each page with names, IDs, types, dimensions
  • Example output:
    json
    {
      "fileName": "Design System",
      "pagesCount": 3,
      "pages": [
        {
          "name": "🎨 Components",
          "framesCount": 25,
          "frames": [
            { "id": "123:456", "name": "Button/Primary", "type": "FRAME" }
          ]
        }
      ]
    }

searchFigmaFrames Search frames/components by name across entire Figma file.

  • Parameters:
    • figmaToken (optional): Figma API token
    • fileKey (required): Figma file key or full URL
    • searchQuery (required): Search text (case-insensitive)
  • Use case: Find specific frames/components without browsing manually
  • Returns: All matching nodes with IDs, names, types, pages, dimensions
  • Example: Searc

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "docentovich-chrometools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrometools-mcp"
      ]
    }
  }
}

Use chrometools-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once chrometools-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add chrometools-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the chrometools-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "docentovich-chrometools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrometools-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the chrometools-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the chrometools-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use chrometools-mcp to help me with this task?
chrometools-mcp
Sure. I read it.
Here is what I found using chrometools-mcp.

Frequently asked questions

What is the chrometools-mcp MCP server used for?

chrometools-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use chrometools-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use chrometools-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use chrometools-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With chrometools-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect chrometools-mcp MCP to TypingMind?

chrometools-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does chrometools-mcp MCP provide in TypingMind?

chrometools-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use chrometools-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If chrometools-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇