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
/workspacepaths 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1703b2af570670490f50d3e27cdcdc61a6d1b1fe8ce8cf86d1000a7aed91d7c0
|
|
| MD5 |
1620108c08f79982169539c782b572ac
|
|
| BLAKE2b-256 |
844439a53be7b45423d43a85f78dcec4704f504437583bba9b2b6704797e6d24
|