Skip to main content

MCP server for browser automation using DrissionPage

Project description

chrome-mcp

A Model Context Protocol server for browser automation, powered by DrissionPage.

Lets MCP clients (Claude Desktop, Claude Code, Cursor, etc.) drive a real Chromium browser: navigate, screenshot, execute JavaScript, snapshot the DOM, and capture network traffic — all through the standard MCP tool interface.

Features

  • Navigation — open URLs with a configurable timeout
  • Screenshots — full-page or viewport capture
  • JavaScript execution — run arbitrary JS in the page context
  • DOM snapshot — accessibility-tree based text snapshot for LLM consumption
  • Network capture — record request/response metadata for analysis
  • Workspace isolation — logical /workspace paths are mapped to a project-local directory

Installation

uv tool install chrome-mcp
# or
uvx chrome-mcp
# or
pip install chrome-mcp

Requires Python ≥ 3.10 and a local Chromium-based browser.

Usage

Add to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "chrome": {
      "command": "chrome-mcp"
    }
  }
}

Tools provided

Tool Description
navigate Navigate to a URL
screenshot Capture a screenshot
execute_js Execute JavaScript in the page
get_current_url Get the current URL
get_page_title Get the page title
close_browser Close the browser instance
get_dom_snapshot Get a text snapshot of the DOM
start_capture Start network capture
get_captured_requests Retrieve captured network requests
stop_capture Stop network capture and clear buffer

License

GPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrome_mcp-0.1.1-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file chrome_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chrome_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for chrome_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1703b2af570670490f50d3e27cdcdc61a6d1b1fe8ce8cf86d1000a7aed91d7c0
MD5 1620108c08f79982169539c782b572ac
BLAKE2b-256 844439a53be7b45423d43a85f78dcec4704f504437583bba9b2b6704797e6d24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page