Real-time DOM, CSS, layout inspection, screenshot capture, and Figma design comparison. Your IDE AI agent sees exactly what users see. Zero code changes.
Chrome Extension or Bookmarklet captures everything. WebSocket streams it. MCP serves it to your IDE.
Three steps. Under two minutes. Zero code changes.
Works with Cursor, VS Code, Claude Code, Windsurf, OpenCode, Zed, and any MCP client.
.cursor/mcp.json// Cursor, Windsurf, OpenCode { "mcpServers": { "mcp-browser-lens": { "command": "npx", "args": ["-y", "browser-lens-mcp@latest"] } } }
Persists across page reloads. Auto-connects on every page.
1. chrome://extensions 2. Enable Developer Mode 3. Load unpacked → select: node_modules/browser-lens-mcp/extension/
Zero install. One click per page load.
1. Open http://localhost:3202 2. Drag bookmarklet to bar 3. Click on any page
[BrowserLens] WebSocket connected to ws://localhost:3203 [BrowserLens] DOM captured: 250 elements [BrowserLens] Screenshot OK: 1440x900
@browser-lens Describe this page's UI layout and structure @browser-lens Compare .hero-button with Figma: fontSize 16px, borderRadius 8px @browser-lens Take a screenshot and audit the design @browser-lens Show all CSS variables on this page @browser-lens Suggest CSS fixes for the comparison
100% reliable screenshots using Chrome DevTools Protocol. No CORS, no CSP — captures exactly what you see.
/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --remote-debugging-port=9222
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
google-chrome --remote-debugging-port=9222
curl http://127.0.0.1:9222/json/versionMCP_BROWSER_LENS_CDP_PORT for custom port.
Compare live UI against any design tool's specs. Get scores, diffs, and copy-paste CSS fixes.
Everything your AI agent needs to understand, inspect, and fix your UI.
trigger_screenshot · screenshot_element · live_query_element
get_dom_tree · inspect_element · query_selector · get_element_hierarchy · get_elements_summary
get_computed_styles · get_css_variables · get_typography · get_color_palette
get_layout_info · get_spacing_analysis · get_responsive_info
get_page_screenshot · get_all_screenshots · describe_ui · capture_screenshot_with_analysis
compare_with_figma · get_comparison_history · suggest_css_fixes · get_visual_diff_report
get_full_page_analysis · get_design_tokens · inspect_feature_area · get_connection_status
get_page_info · get_dom_mutations · get_accessibility_info · clear_data
Auto-connect on every page load. Persists across browser reloads.
chrome://extensionsnode_modules/browser-lens-mcp/extension/Works with every MCP-compatible IDE. Here's where to put the config.
~/.gemini/antigravity/mcp_config.json.cursor/mcp.json.vscode/mcp.json~/.claude.json~/.codeium/windsurf/mcp_config.json~/.config/opencode/config.json~/.config/zed/settings.json