Capture elements from your browser and send them to Claude Code via MCP.
cd /Users/scottbell/code/browser-bridge
npm installnpm run buildAdd this to your ~/.claude.json:
{
"mcpServers": {
"browser-bridge": {
"command": "node",
"args": ["/Users/scottbell/code/browser-bridge/dist/server.js"]
}
}
}Exit and reopen Claude Code for the MCP server to connect.
Option A: Loader (recommended)
Create a new bookmark with this URL:
javascript:(function(){var s=document.createElement('script');s.src='http://localhost:3456/inject.js';document.body.appendChild(s);})();
Option B: Self-contained
Run npm run bookmarklet and copy the contents of bookmarklet/bookmarklet.txt to a bookmark.
- Open any webpage
- Click the bookmarklet
- Click elements to capture them
- In Claude Code, ask about captured elements:
- "what did I just capture?"
- "any pending tasks?"
- "list all captures"
Ctrl+Shift+C- Toggle capture modeEscape- Turn off capture mode
| Tool | Description |
|---|---|
get_captured_element |
Get the most recent capture |
list_captures |
List all captures |
get_capture |
Get a specific capture by index |
clear_captures |
Clear all captures |
get_pending_tasks |
Get tasks with instructions |
mark_task_done |
Mark a task complete |
get_console_errors |
Get captured console errors |