crx-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@crx-mcp Load ./my-extension and get storage.local keys"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
crx-mcp
MCP server for Chrome extension testing. Access chrome.storage, Service Workers, declarativeNetRequest, and more directly from AI coding agents like Claude Code.
Why?
Existing browser MCP servers (like Playwright MCP) can't access Chrome extension internals. crx-mcp fills this gap with 15 purpose-built tools for extension development and testing.
Related MCP server: real-browser-mcp
Quick Start
With Claude Code
Add to your .mcp.json:
{
"mcpServers": {
"crx-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "crx-mcp"]
}
}
}Then in Claude Code:
> Load my extension from ./my-extension and check if storage is working
Claude will use extension_load, then storage_get to inspect chrome.storageCLI
npx crx-mcp --extension-path ./my-extension --verboseTools (15)
Core
Tool | Description |
| Load an unpacked extension and launch Chrome. Returns extension ID. |
| Navigate to a URL. Returns title and status code. |
| Accessibility tree snapshot of page, popup, or side panel. |
| Read from |
| Write to |
| Execute JavaScript in the Service Worker context. |
| Get console logs from all contexts (page, SW, popup, sidepanel). |
Extension-Specific
Tool | Description |
| Validate |
| Open the extension popup and return accessibility snapshot. |
| Open the side panel and return accessibility snapshot. |
| List |
| Compare declared vs granted permissions. |
Advanced
Tool | Description |
| Take a PNG screenshot (base64). |
| List captured network requests with URL filter. |
| Execute JS in page context (ISOLATED or MAIN world). |
| Hot-reload the extension and re-attach to Service Worker. |
CLI Options
crx-mcp [options]
--extension-path <path> Pre-load extension at startup
--chrome-path <path> Path to Chrome executable
--user-data-dir <path> Chrome user data directory
--no-sandbox Disable sandbox (for CI/Docker)
--verbose Debug logging to stderrRequirements
Node.js >= 18
Google Chrome installed (detected automatically on Windows, macOS, Linux)
Extensions require headed mode (no headless)
How It Works
extension_loadlaunches Chrome with--load-extensionand detects the extension IDService Worker communication uses Chrome DevTools Protocol (CDP) sessions
chrome.storage,declarativeNetRequest, andpermissionsare accessed via JS evaluation in the SW contextConsole logs are collected from all contexts (page, SW, popup, sidepanel) into a ring buffer
Network requests are monitored via CDP
Network.enablePopup and side panel are opened in new tabs (actual popup/sidepanel UI requires user gestures)
Use Cases
Automated testing of Chrome extensions during development
AI-assisted debugging — let Claude inspect storage, logs, and network traffic
CI/CD validation — validate manifests and permissions without manual testing
Extension factory workflows — quickly test multiple extensions in sequence
License
MIT
Available Tools
23 toolsclickB
Click an element by CSS selector.
Inputs: selector (required), target, doubleClick.
console_logsA
Get console logs from all extension contexts (page, SW, popup, sidepanel).
Inputs: clear, level, limit, since, +1 more.
content_script_evalB
Execute JavaScript in the page context (ISOLATED or MAIN world).
Inputs: expression (required), world.
dnr_matched_rulesA
Get declarativeNetRequest matched rules (which rules fired). Requires declarativeNetRequestFeedback permission.
Inputs: tabId.
dnr_rulesB
List declarativeNetRequest rules (dynamic/session/static).
Inputs: ruleType.
eval_extension_pageA
Execute JavaScript in an extension popup or side panel page context (has access to chrome.* APIs).
Inputs: target (required), expression (required).
eval_service_workerA
Execute JavaScript in the extension Service Worker context.
Inputs: expression (required).
extension_errorsA
Get extension errors from chrome://extensions and recent SW crash logs.
Inputs: no named parameters.
extension_loadB
Load a Chrome extension and launch the browser. Returns extension ID.
Inputs: extensionPath (required), url, chromeFlags.
manifest_validateA
Validate manifest.json against MV3 requirements (no browser needed).
Inputs: extensionPath.
network_requestsB
List captured network requests with optional URL filter.
Inputs: clear, limit, filter.
open_popupA
Open the extension popup in a new tab and return accessibility snapshot.
Inputs: no named parameters.
open_sidepanelA
Open the extension side panel in a new tab and return accessibility snapshot.
Inputs: no named parameters.
permissions_checkA
Check declared vs granted extension permissions.
Inputs: permissions.
reload_extensionA
Reload the extension and re-attach to the Service Worker.
Inputs: no named parameters.
screenshotA
Take a screenshot of the page, popup, or side panel. Returns base64 PNG.
Inputs: target, fullPage.
send_messageB
Send a message via chrome.runtime.sendMessage() and capture the response.
Inputs: message, timeout, expectResponse.
snapshotA
Get an accessibility snapshot of the page, popup, or side panel.
Inputs: target.
storage_getB
Read from chrome.storage (local/sync/session).
Inputs: area, keys, direct.
storage_setA
Write to chrome.storage (local/sync/session).
Inputs: data (required), area.
typeB
Type text into an input element by CSS selector.
Inputs: text (required), selector (required), clear, submit, +1 more.
wait_forB
Wait for an element to appear, disappear, or change visibility.
Inputs: selector (required), state, target, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool targets a distinct context or action: eval tools are separated by target (extension page, content script, service worker), while screenshot/snapshot differ between visual and accessibility representation. The descriptions clearly delineate the boundaries, so misselection is unlikely.
Tool names mix verb-first patterns (eval_extension_page, open_popup, send_message) with noun-first patterns (manifest_validate, storage_get, dnr_rules), and some use bare verbs (click, type, wait_for). This inconsistency is readable but not predictable, placing it at the mixed-conventions level.
With 23 tools, the server is on the heavier side, fitting the borderline 16-25 range. While each tool has a legitimate purpose in the extension-testing domain, the count feels heavy and could potentially be consolidated (e.g., merging DNR-related tools or grouping eval functions).
The tool surface covers the full lifecycle: loading and reloading the extension, evaluating in all contexts, storage, messaging, DNR, permissions, and UI automation. Minor gaps include no dedicated options-page automation or explicit permission manipulation, but agents can work around these via context eval and manifest validation.
Maintenance
Related MCP Connectors
Build, run, debug, test and ship Chrome, Firefox, Edge and Safari extensions from your AI agent.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP Server for Chrome DevTools, following the Chrome DevTools Protocol. Integrates with Claude Desktop and Claude Code.316MIT
- AlicenseAqualityBmaintenanceMCP server + Chrome extension that gives AI coding agents control of your real browser with existing sessions, logins, and cookies. Works with Cursor, Claude, Windsurf.24137 npm59MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.-
- AlicenseBqualityBmaintenanceTurns Chrome into a local MCP server, giving AI agents 51 browser tools to inspect DOM, automate clicks, run JavaScript, audit security and accessibility, mock APIs, extract data, record demos, and more from any MCP client.92113 npmMIT