AI & Exports6 min readUpdated

Use CSS Tracker with AI Agents (MCP)

Connect Claude Code, Cursor or Claude Desktop to CSS Tracker through the local MCP server.

Quick answer

css-tracker-mcp is a local MCP server that lets Claude Code, Cursor, Claude Desktop and other MCP clients ask the CSS Tracker extension for a page’s design or motion. Today you run it from source (the npm package is coming soon): add the server to your AI tool, print the pairing token, paste it into the extension’s AI Bridge tab and grant page access. It requires a Premium or Enterprise plan.

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.

1

Install the server from source

In a local checkout of the CSS Tracker repository, install the server’s dependencies.

bash
cd mcp-server && npm install
2

Add 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.

bash
node index.js pair
claude mcp add css-tracker -- node /ABS/PATH/mcp-server/index.js
json
{
  "mcpServers": {
    "css-tracker": {
      "command": "node",
      "args": ["/ABS/PATH/mcp-server/index.js"]
    }
  }
}
3

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).

4

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.

5

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?

ToolWhat it does
get_page_designThe page’s design as a Markdown brief, JSON, Tailwind config, shadcn/ui theme, W3C tokens or CSS variables; optional motion section.
get_page_motionA compact motion brief: keyframes, transitions, hover/scroll effects and libraries such as GSAP and AOS.
get_page_responsiveBreakpoints and what changes per device (Smart widths or chosen device groups) as Markdown, JSON, CSS or Tailwind.
inspect_elementKey computed styles, text and size of the first element matching a CSS selector.
list_open_tabsOpen http(s) tabs with their ids, titles and URLs.
get_saved_favoritesThe sites you saved as favorites in CSS Tracker.
bridge_statusConnection 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.

bash
# Not available yet — npm package coming soon
claude mcp add css-tracker -- npx -y css-tracker-mcp
npx -y css-tracker-mcp pair
json
{
  "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.

Try it on any website

CSS Tracker is free to start. Analysis runs locally in your browser.