jb-chrome-mcp
JB Chrome MCP
Private skill for using Chrome DevTools MCP through mcporter.
Prerequisites
Before using this skill:
- Open
chrome://inspect/#remote-debuggingin Chrome. - Turn remote debugging on and allow incoming debugging connections in Chrome's dialog.
- Confirm Chrome is listening on
127.0.0.1:9222.- Expected listener:
Server running at: 127.0.0.1:9222 - Useful check:
lsof -nP -iTCP:9222 -sTCP:LISTEN
- Expected listener:
- Make sure
mcporteris installed.
Bootstrap rule
Do not ask the user to configure mcporter manually unless the bootstrap script fails.
Before the first mcporter call, run the bundled script:
./scripts/ensure-jb-chrome-mcp.sh
The script:
- verifies Chrome is listening on
127.0.0.1:9222 - installs or updates a saved home-level
mcporterserver namedjb-chrome-mcp - configures
chrome-devtools-mcpwith--autoConnect
--autoConnect was more reliable for the chrome://inspect/#remote-debugging workflow than forcing --browserUrl http://127.0.0.1:9222.
After bootstrapping, verify the tool list if needed:
mcporter list jb-chrome-mcp --schema
Note: the first live mcporter call may trigger a Chrome permission prompt for the DevTools MCP connection. Click Allow before expecting list_pages or other live calls to return.
Preferred workflow
list_pagesselect_pagetake_snapshotbefore interacting- Use
click,fill,press_key,navigate_page, orevaluate_script - Use diagnostics tools when needed:
list_console_messageslist_network_requestsget_network_requestperformance_start_traceperformance_stop_tracelighthouse_audit
Good defaults
- Prefer
mcporter call ... --output jsonfor machine-readable responses. - Prefer
take_snapshotover screenshots when text structure is enough. - Call
list_pagesfirst if the active tab is unclear. - Use
select_page bringToFront=truebefore interactive actions when tab focus matters.
Common commands
First run:
./scripts/ensure-jb-chrome-mcp.sh
Then use the saved server.
List tabs:
mcporter call jb-chrome-mcp.list_pages --output json
Select a tab:
mcporter call jb-chrome-mcp.select_page pageId=1 bringToFront=true --output json
Take a text snapshot:
mcporter call jb-chrome-mcp.take_snapshot --output json
Click an element from the latest snapshot:
mcporter call jb-chrome-mcp.click uid=1_10 includeSnapshot=true --output json
Evaluate JavaScript:
mcporter call 'jb-chrome-mcp.evaluate_script(function: "() => document.title")' --output json
Show console messages:
mcporter call jb-chrome-mcp.list_console_messages --output json
Show network requests:
mcporter call jb-chrome-mcp.list_network_requests --output json
Start a performance trace:
mcporter call jb-chrome-mcp.performance_start_trace reload=true autoStop=true --output json
Take a screenshot:
mcporter call jb-chrome-mcp.take_screenshot fullPage=true filePath=tmp/chrome-mcp.png --output json
Fallback for explicit browser URL mode
If --autoConnect is unavailable or you are connecting to an older/manual Chrome instance that exposes /json/version, use:
mcporter config add jb-chrome-mcp \
--stdio npx \
--arg -y \
--arg chrome-devtools-mcp@latest \
--arg --browserUrl \
--arg http://127.0.0.1:9222 \
--arg --no-usage-statistics \
--scope home
Troubleshooting
- If Chrome is not listening on
9222, reopenchrome://inspect/#remote-debuggingand turn it on again. - If
list_pagesreturns a connection error, retry with the persisted config form instead of ad-hoc stdio. - If
--browserUrlfails onhttp://127.0.0.1:9222/json/version, switch back to--autoConnect. - If the wrong tab is active, run
list_pagesandselect_pageagain.
More from bjesuiter/skills
mole-mac-cleanup
Mac cleanup & optimization tool combining CleanMyMac, AppCleaner, DaisyDisk features. Deep cleaning, smart uninstaller, disk insights, and project artifact purge.
32xcode
Build, test, and manage Xcode projects and Swift packages. Use when the user mentions Xcode, iOS/macOS app development, simulators, Swift packages, or needs to build/test Apple platform apps. Triggers on "build", "run", "test", "simulator", "xcodebuild", "swift package", "iOS app", "macOS app".
30summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
27jb-browser-testing
Private browser testing rules for jb workflows. Prefer playwriter_exec with careful tab selection, fall back to agent-browser, and avoid playwright-mcp.
16mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
16security-check
Red-team security review for code changes. Use when reviewing pending git changes, branch diffs, or new features for security vulnerabilities, permission gaps, injection risks, and attack vectors. Acts as a pen-tester analyzing code.
16