What do I need?
- Node.js 18 or newer and a local checkout of the CSS Tracker repository (the npm package is coming soon).
- The CSS Tracker extension activated with a Premium or Enterprise license key.
- Chrome running with the extension paired.
How do I connect my AI tool?
Run the server from source for now. The npm package css-tracker-mcp is coming soon; until it is published, the npx commands further down will not work yet.
Install the server from source
In a local checkout of the CSS Tracker repository, install the server’s dependencies.
cd mcp-server && npm installAdd it to your AI tool and get the pairing token
Claude Code: run the commands below (use the absolute path to mcp-server/index.js). Cursor (~/.cursor/mcp.json) and Claude Desktop (Settings → Developer → Edit Config): add the JSON below and restart the tool. "node index.js pair" prints the pairing token and port (7457 by default) and exits; you can also ask your AI to call the bridge_status tool.
node index.js pair
claude mcp add css-tracker -- node /ABS/PATH/mcp-server/index.js{
"mcpServers": {
"css-tracker": {
"command": "node",
"args": ["/ABS/PATH/mcp-server/index.js"]
}
}
}Pair the extension
Open the extension settings, go to the "AI Bridge" tab, tick "Enable AI Bridge" and paste the token (it is saved automatically).
Grant page access
Click "Grant page access" and accept Chrome’s prompt so the extension can read pages for your AI tool. You can remove it any time from chrome://extensions.
Check the connection
Ask your AI to run bridge_status — it should report "Extension: connected". Then try: "Use css-tracker to get the design of https://example.com as a Tailwind config."
Which tools does the server provide?
| Tool | What it does |
|---|---|
| get_page_design | The page’s design as a Markdown brief, JSON, Tailwind config, shadcn/ui theme, W3C tokens or CSS variables; optional motion section. |
| get_page_motion | A compact motion brief: keyframes, transitions, hover/scroll effects and libraries such as GSAP and AOS. |
| get_page_responsive | Breakpoints and what changes per device (Smart widths or chosen device groups) as Markdown, JSON, CSS or Tailwind. |
| inspect_element | Key computed styles, text and size of the first element matching a CSS selector. |
| list_open_tabs | Open http(s) tabs with their ids, titles and URLs. |
| get_saved_favorites | The sites you saved as favorites in CSS Tracker. |
| bridge_status | Connection state, plan, port, token and pairing steps. |
Is it secure?
- Localhost only — the bridge listens on 127.0.0.1 and is never reachable from the network.
- Mutual HMAC handshake — the token itself is never sent over the socket, and only chrome-extension:// origins can connect.
- Read-only — the server reads design data; it can’t click, type or change anything in your browser.
- Page text is wrapped as untrusted content so the agent can tell page data from instructions.
Coming soon: install with npx
Once css-tracker-mcp is published on npm (not yet available), you will not need a checkout: npx will download and run it. These commands will replace the from-source ones above.
# Not available yet — npm package coming soon
claude mcp add css-tracker -- npx -y css-tracker-mcp
npx -y css-tracker-mcp pair{
"mcpServers": {
"css-tracker": {
"command": "npx",
"args": ["-y", "css-tracker-mcp"]
}
}
}Each get_page_design, get_page_motion, get_page_responsive and inspect_element call counts as one scan on your license.