browser-automation

Chrome Tools

nicholmikey

by nicholmikey

Control Chrome remotely, capture screenshots, and monitor network traffic using Chrome Tools with seamless remote access

Integrates with Chrome's DevTools Protocol to enable remote control of browser tabs, including JavaScript execution, screenshot capture, and network traffic monitoring.

github stars

52

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Direct Chrome DevTools Protocol integrationRequires manual Chrome setup with debug port

best for

  • / Browser automation and testing
  • / Web scraping with JavaScript execution
  • / Debugging web applications remotely
  • / AI-assisted browser interactions

capabilities

  • / Execute JavaScript in Chrome tabs
  • / Capture screenshots of browser pages
  • / Monitor network traffic and requests
  • / Navigate tabs to specific URLs
  • / Click DOM elements with output capture
  • / Query and interact with page elements

what it does

Controls Chrome browser tabs remotely through DevTools Protocol to execute JavaScript, capture screenshots, and monitor network traffic. Requires Chrome to be launched with remote debugging enabled.

about

Chrome Tools is a community-built MCP server published by nicholmikey that provides AI assistants with tools and capabilities via the Model Context Protocol. Control Chrome remotely, capture screenshots, and monitor network traffic using Chrome Tools with seamless remote access It is categorized under browser automation.

how to install

You can install Chrome Tools in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Chrome Tools is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Chrome Tools MCP Server

An MCP server that provides tools for interacting with Chrome through its DevTools Protocol. This server enables remote control of Chrome tabs, including executing JavaScript, capturing screenshots, monitoring network traffic, and more.

Why use an MCP server like this?

This type of MCP Server is useful When you need to manually configure your browser to be in a certain state before you let an AI tool like Cline poke at it. You can also use this tool to listen to and pull network events into its context.

Features

  • List Chrome tabs
  • Execute JavaScript in tabs
  • Capture screenshots
  • Monitor network traffic
  • Navigate tabs to URLs
  • Query DOM elements
  • Click elements with console output capture

Installation

npm install @nicholmikey/chrome-tools

Configuration

The server can be configured through environment variables in your MCP settings:

{
  "chrome-tools": {
    "command": "node",
    "args": ["path/to/chrome-tools/dist/index.js"],
    "env": {
      "CHROME_DEBUG_URL": "http://localhost:9222",
      "CHROME_CONNECTION_TYPE": "direct",
      "CHROME_ERROR_HELP": "custom error message"
    }
  }
}

Environment Variables

  • CHROME_DEBUG_URL: The URL where Chrome's remote debugging interface is available (default: http://localhost:9222)
  • CHROME_CONNECTION_TYPE: Connection type identifier for logging (e.g., "direct", "ssh-tunnel", "docker")
  • CHROME_ERROR_HELP: Custom error message shown when connection fails

Setup Guide

Native Setup (Windows/Mac/Linux)

  1. Launch Chrome with remote debugging enabled:

    # Windows
    "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
    
    # Mac
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
    
    # Linux
    google-chrome --remote-debugging-port=9222
    
  2. Configure MCP settings:

    {
      "env": {
        "CHROME_DEBUG_URL": "http://localhost:9222",
        "CHROME_CONNECTION_TYPE": "direct"
      }
    }
    

WSL Setup

When running in WSL, you'll need to set up an SSH tunnel to connect to Chrome running on Windows:

  1. Launch Chrome on Windows with remote debugging enabled
  2. Create an SSH tunnel:
    ssh -N -L 9222:localhost:9222 windowsuser@host
    
  3. Configure MCP settings:
    {
      "env": {
        "CHROME_DEBUG_URL": "http://localhost:9222",
        "CHROME_CONNECTION_TYPE": "ssh-tunnel",
        "CHROME_ERROR_HELP": "Make sure the SSH tunnel is running: ssh -N -L 9222:localhost:9222 windowsuser@host"
      }
    }
    

Docker Setup

When running Chrome in Docker:

  1. Launch Chrome container:

    docker run -d --name chrome -p 9222:9222 chromedp/headless-shell
    
  2. Configure MCP settings:

    {
      "env": {
        "CHROME_DEBUG_URL": "http://localhost:9222",
        "CHROME_CONNECTION_TYPE": "docker"
      }
    }
    

Tools

list_tabs

Lists all available Chrome tabs.

execute_script

Executes JavaScript code in a specified tab. Parameters:

  • tabId: ID of the Chrome tab
  • script: JavaScript code to execute

capture_screenshot

Captures a screenshot of a specified tab, automatically optimizing it for AI model consumption. Parameters:

  • tabId: ID of the Chrome tab
  • format: Image format (jpeg/png) - Note: This is only for initial capture. Final output uses WebP with PNG fallback
  • quality: JPEG quality (1-100) - Note: For initial capture only
  • fullPage: Capture full scrollable page

Image Processing:

  1. WebP Optimization (Primary Format):
    • First attempt: WebP with quality 80 and high compression effort
    • Second attempt: WebP with quality 60 and near-lossless compression if first attempt exceeds 1MB
  2. PNG Fallback:
    • Only used if WebP processing fails
    • Includes maximum compression and color palette optimization
  3. Size Constraints:
    • Maximum dimensions: 900x600 (maintains aspect ratio)
    • Maximum file size: 1MB
    • Progressive size reduction if needed

capture_network_events

Monitors and captures network events from a specified tab. Parameters:

  • tabId: ID of the Chrome tab
  • duration: Duration in seconds to capture
  • filters: Optional type and URL pattern filters

load_url

Navigates a tab to a specified URL. Parameters:

  • tabId: ID of the Chrome tab
  • url: URL to load

query_dom_elements

Queries and retrieves detailed information about DOM elements matching a CSS selector. Parameters:

  • tabId: ID of the Chrome tab
  • selector: CSS selector to find elements Returns:
  • Array of DOM elements with properties including:
    • nodeId: Unique identifier for the node
    • tagName: HTML tag name
    • textContent: Text content of the element
    • attributes: Object containing all element attributes
    • boundingBox: Position and dimensions of the element
    • isVisible: Whether the element is visible
    • ariaAttributes: ARIA attributes for accessibility

click_element

Clicks on a DOM element and captures any console output triggered by the click. Parameters:

  • tabId: ID of the Chrome tab
  • selector: CSS selector to find the element to click Returns:
  • Object containing:
    • message: Success/failure message
    • consoleOutput: Array of console messages triggered by the click

License

MIT

FAQ

What is the Chrome Tools MCP server?
Chrome Tools is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Chrome Tools?
This profile displays 39 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.4 out of 5—verify behavior in your own environment before production use.

Use Cases

Web Research & Information Gathering

Fetch and extract information from websites automatically

Example

Research competitor pricing, scrape product reviews, monitor news mentions

Automate 5-10 hours/week of manual web research

Content Monitoring & Alerts

Track website changes, new content, price updates

Example

Monitor competitor blog for new posts, track stock availability, watch for pricing changes

Stay informed without manual checking, never miss important updates

Data Extraction & Aggregation

Extract structured data from multiple websites

Example

Compile product listings from 10 e-commerce sites, aggregate job postings, collect real estate data

Build datasets 100x faster than manual copying

API-less Integration

Interact with services that don't offer APIs

Example

Check form submissions, validate website functionality, test user flows

Automate interactions with any website, even without API

Implementation Guide

Prerequisites

  • Claude Desktop or Cursor with MCP support
  • Understanding of web scraping ethics and robots.txt
  • Rate limiting awareness to avoid overwhelming target sites
  • Knowledge of legal restrictions on data collection

Time Estimate

20-40 minutes including configuration and testing

Installation Steps

  1. 1.Install web automation MCP server via npm or pip
  2. 2.Configure allowed domains and rate limits in MCP config
  3. 3.Test with simple fetch: 'Get content from example.com'
  4. 4.Progress to extraction: 'Extract all product prices from this page'
  5. 5.Set up monitoring: 'Check this URL daily for changes'
  6. 6.Parse structured data: 'Create CSV from this table'
  7. 7.Respect robots.txt and rate limits always

Troubleshooting

  • 403 Forbidden: Website blocks bots—respect their wishes, use official API instead
  • Rate limit errors: Slow down requests, add delays between fetches
  • Stale data: Target site changed HTML structure—update selectors
  • Timeout errors: Site is slow or blocking—increase timeout, try different user agent
  • JavaScript-rendered content: Use headless browser MCP servers for dynamic sites

Best Practices

✓ Do

  • +Check robots.txt and respect crawl rules
  • +Rate limit requests: 1-2 requests/second maximum
  • +Use official APIs when available instead of scraping
  • +Identify your bot with descriptive user agent
  • +Cache results to minimize repeated requests
  • +Handle errors gracefully with retries and fallbacks
  • +Validate extracted data for accuracy

✗ Don't

  • Don't scrape sites that explicitly forbid it (robots.txt, ToS)
  • Don't overwhelm servers with rapid requests—use rate limiting
  • Don't scrape personal data without consent and legal basis
  • Don't ignore copyright on extracted content
  • Don't assume HTML structure is stable—handle changes
  • Don't use scraped data for commercial purposes without permission

💡 Pro Tips

  • Use CSS selectors or XPath for robust data extraction
  • Set up monitoring alerts for extraction failures (structure changed)
  • Implement exponential backoff for retries on failures
  • Store raw HTML for reprocessing if extraction logic changes
  • Combine with data analysis tools for insights from extracted data
  • Consider using official APIs or RSS feeds as more stable alternatives

Technical Details

Architecture

MCP server handles HTTP requests, HTML parsing, JavaScript rendering (if headless browser), and returns structured data to Claude.

Protocols

  • HTTP/HTTPS
  • WebSocket (for real-time sites)
  • Puppeteer/Playwright (for JavaScript sites)

Compatibility

  • Static HTML sites
  • JavaScript-rendered SPAs (with headless browser)
  • REST APIs
  • GraphQL endpoints

When to Use This

✓ Use When

Use for research automation, content monitoring, data aggregation from multiple sources, and when official APIs don't exist. Best for read-only information gathering.

✗ Avoid When

Avoid for sites with APIs (use API instead), sites that explicitly forbid scraping, when data is copyrighted, or for login-required content without proper authorization.

Integration

  • Scheduled monitoring with change detection
  • Multi-source data aggregation pipelines
  • Fallback to web scraping when API rate limits hit
  • Headless browser for JavaScript-heavy sites

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.439 reviews
  • James Sethi· Dec 24, 2024

    Chrome Tools is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Aarav Dixit· Dec 20, 2024

    Chrome Tools reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Isabella Shah· Dec 16, 2024

    I recommend Chrome Tools for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Amina Choi· Nov 11, 2024

    We wired Chrome Tools into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Rahul Santra· Nov 7, 2024

    Chrome Tools is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Isabella Thompson· Nov 7, 2024

    Strong directory entry: Chrome Tools surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Pratham Ware· Oct 26, 2024

    Chrome Tools has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Layla Choi· Oct 26, 2024

    Useful MCP listing: Chrome Tools is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Kaira Bansal· Oct 26, 2024

    Chrome Tools is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Amina Thomas· Oct 2, 2024

    We evaluated Chrome Tools against two servers with overlapping tools; this profile had the clearer scope statement.

showing 1-10 of 39

1 / 4