MagicWand — Local Chrome control, DevTools diagnostics & MCP bridge
Connect local AI coding agents and MCP clients (Claude Code, Codex, Antigravity, DeepSeek Harness, Kilo, Cursor, Windsurf, and local LLM runners) directly to your logged-in Google Chrome tabs over a 100% local loopback bridge on 127.0.0.1:18765 — with no remote-debugging port (9222) and no cloud servers.
- StatusChrome Web Store
- CategoryDeveloper Tools
- PriceFree · 100% local
- Companion
npx -y magicwand-mcp - RequiresNode.js 20+ & Google Chrome
Step 1 — Install the Chrome Extension
- Install MagicWand from the Chrome Web Store and pin its icon to the Chrome toolbar (optional).
- Click the toolbar icon at any time to see live connection status (Bridge Online / Bridge Offline on
127.0.0.1:18765). - No Chrome launch flags or port
9222are needed — the extension reconnects automatically whenever your MCP client or CLI starts the local bridge.
Step 2A — Connect Any MCP Harness
MCP clients automatically discover all 42 MagicWand tools and parameter schemas via the MCP tools/list handshake — no manual command list is required.
Claude Code
claude mcp add magicwand -- npx -y magicwand-mcp
Codex
codex mcp add magicwand -- npx -y magicwand-mcp
Antigravity, Cursor, Windsurf, Kilo & Generic MCP Clients
Add this entry to your client's MCP config file (mcp.json / mcp_config.json / claude_desktop_config.json). Set a distinct MAGICWAND_AGENT_ID per harness if you run multiple agents against Chrome in parallel:
{
"mcpServers": {
"magicwand": {
"command": "npx",
"args": ["-y", "magicwand-mcp"],
"env": {
"MAGICWAND_AGENT_ID": "my-agent"
}
}
}
}
Step 2B — Shell Agents & DeepSeek Harness (dsh)
Models without MCP support can drive Chrome directly with the zero-quoting mw CLI included in magicwand-mcp. It auto-starts the local bridge on 127.0.0.1:18765 on first call:
# Show all built-in CLI commands
npx -y --package=magicwand-mcp mw --help
# Verify extension connectivity
npx -y --package=magicwand-mcp mw health
# Claim a dedicated tab, inspect [e1] refs, and act
npx -y --package=magicwand-mcp mw claim https://example.com --agent dsh
npx -y --package=magicwand-mcp mw snapshot --agent dsh
npx -y --package=magicwand-mcp mw click e5 --agent dsh
npx -y --package=magicwand-mcp mw type e3 "hello" --submit --agent dsh
# Inspect DevTools console & network logs
npx -y --package=magicwand-mcp mw console --errors --agent dsh
npx -y --package=magicwand-mcp mw network --ajax --agent dsh
# Release (and optionally close) the claimed tab
npx -y --package=magicwand-mcp mw release --close --agent dsh
You can also install it globally once with npm i -g magicwand-mcp so you can run mw ... directly without npx.
Step 3 — Prompts to Give Any Model
Because MCP clients auto-discover every tool and mw --help prints the full CLI reference, short prompts work best:
For MCP-connected harnesses (Claude Code, Codex, Antigravity, Cursor, Kilo)
Use themagicwandMCP tools to open <URL> in Chrome. Callclaim_tabfirst so you work in your own tab, runsnapshotbefore clicking or typing so you use exact[e1]refs, complete <your task>, and callrelease_tabwhen done.
For shell-only / CLI models (DeepSeek Harness, terminal agents, local LLMs)
Control my logged-in Chrome browser usingnpx -y --package=magicwand-mcp mw. Runnpx -y --package=magicwand-mcp mw --helpfirst to see the commands, claim a dedicated tab with--agent, always runmw snapshotbefore clicking or typing, and complete <your task>.
Key Capabilities
- Compact Accessibility Snapshots: Generates low-token
[e1],[e2]element references across pages, active dialogs, and cross-origin iframes. - Multi-Agent Tab Isolation: Claim dedicated tabs or windows per agent (
claim_tab/release_tab) so multiple agents work in parallel without stealing focus. - Fast Batch & Vector Design Mode: Batched actions (
batch),fast: trueclicks/typing, ergonomic key combos, and native SVG clipboard paste (paste_svg) for Figma, Canva, and browser editors. - Full DevTools Diagnostics: Console errors, uncaught exceptions, CORS/CSP warnings, XHR/Fetch requests, response bodies, cookies, storage, and computed styles.
- Silent File Uploads & Downloads: Attach files cleanly via Chrome DevTools Protocol without OS file-picker popups and monitor downloads.
100% Local & Browser Boundaries
- Loopback only: MagicWand talks exclusively to
127.0.0.1:18765. The local bridge verifies connection origins and rejects cross-site browser requests. - Zero cloud servers: No browsing history, cookies, screenshots, or page contents are ever sent to CompuJohnny or third-party servers.
- Chrome built-in protections: Chrome blocks extension debugging on
chrome://internal pages andchrome.google.com/webstore. All normal websites, localhost dev servers, and logged-in web apps work directly.
127.0.0.1. No analytics, no ads, no accounts, and no external servers. Read the privacy policymagicwand-mcp companion package. Read the terms