The same CSS visibility you get in DevTools — rendered class names, the full cascade, what's winning and why — available to your AI automatically.
Get startedYou ask your AI to fix a styling issue. It reads the source files, writes a change, applies it. You check the browser. Still wrong. A few more rounds. Eventually you open DevTools yourself, copy the element, paste it back into the chat — and only then does the AI understand what it was working with.
Modern component libraries generate their own class names at runtime. Your JSX says <Menu>. The browser renders ant-dropdown-menu-item-container. The AI writes CSS for what it found in the source. The rule never applies.
action: "dom", selector: ".sidebar-menu"action: "styles", selector: ".btn-primary", properties: ["color", "background"]action: "diff", selector: ".card-header"action: "screenshot", selector: "#modal-overlay"browser_inspect(action="dom", selector=".panel-header") — sees real runtime class namesbrowser_inspect(action="styles", selector=".panel__header-icon") — sees the overriding rule and where it comes frombrowser_inspect(action="diff", selector=".panel__header-icon") — confirms exactly which properties changedAdd to your AI tool's MCP config file and restart.
{
"mcpServers": {
"browser-inspector": {
"command": "npx",
"args": ["-y", "browser-inspector-mcp"]
}
}
}
~/.claude.json
~/.cursor/mcp.json
~/.codeium/windsurf/mcp_config.json
First call, pass your dev server URL. The session stays open for the rest of the conversation.
On first use, Puppeteer downloads Chromium (~170MB).
If you're reading this tab, you're probably where I was not long ago — you've seen people demo AI coding tools, thought "I want that," and then hit a wall of setup steps that assume you already know what you're doing.
There are only three things you need before this works. You might already have some of them without knowing it.
Node.js is what actually runs this tool on your computer. You don't need to know anything else about it.
Open Terminal on Mac (Cmd+Space → type "Terminal") or Command Prompt on Windows, and type:
node --version
If a number comes back — like v20.11.0 — you have it, skip ahead. If you get an error, go to nodejs.org, download the version that says "Recommended for most users," run the installer, and come back.
Never opened Terminal before? It's just a text window. It can't hurt anything.
This is the thing you type into when asking AI to write or fix code. This tool works with all of these:
If you don't have one yet, start with Cursor.
This tool needs something to look at — a web project running on your computer, the kind that opens at an address like http://localhost:3000. That's what you'll point it at.
If you don't have that yet, get a project running first and come back.
You're going to add a small block of text to a config file for your AI tool. It looks scarier than it is — it's just a structured text file.
Cursor — go to Settings → MCP inside Cursor. There's a UI to add a new server directly, no file editing needed.
Don't see MCP in Settings? Your Cursor might need an update.
Claude Code — open Terminal and run:
open -e ~/.claude.json
If it says the file doesn't exist, create a blank one in TextEdit and save it as .claude.json in your home folder (the folder with your name in Finder). Then paste this inside it:
{
"mcpServers": {
"browser-inspector": {
"command": "npx",
"args": ["-y", "browser-inspector-mcp"]
}
}
}
Already have other things in that file? Add just the "browser-inspector" block inside the existing "mcpServers" section. Don't replace what's already there.
Windsurf — open ~/.codeium/windsurf/mcp_config.json and add the same block above.
Restart your AI tool.
Fully close it and reopen it. This is the step people miss — the config only loads on startup.
Just tell your AI what you're working on and where it's running:
I'm looking at the dashboard at http://localhost:5173 —
the button styles aren't applying correctly.
The tools show up automatically — you don't call them by name. The first time it runs it downloads a small browser in the background (~170MB). That's normal, just let it finish. After that, it's instant.