npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bitovi/tailwind-inspector-mcp

v0.4.3

Published

Browser overlay + inspector panel + MCP server for visually editing Tailwind CSS classes on a running React app

Readme

@bitovi/tailwind-inspector-mcp

A browser overlay + inspector panel + MCP server for visually editing Tailwind CSS classes on a running React app. Click any element on the page, scrub values, preview changes live, then let an AI agent apply them to your source code.

How it works

  1. The tool runs a local server (port 3333) that serves an inspector panel and an overlay script
  2. You add the overlay script to your app's index.html — it injects a click-to-inspect UI
  3. You click elements on your page → the inspector panel shows their Tailwind classes
  4. You scrub/select new values → changes preview live in the browser
  5. You queue changes → an AI agent (via MCP) reads the queue and applies them to your source files

Prerequisites

  • Node.js 18+
  • A React app using Tailwind CSS v4
  • An MCP-compatible AI agent (e.g. GitHub Copilot, Claude Desktop, Cursor)

Installation

npm install -D @bitovi/tailwind-inspector-mcp

Or use it directly with npx (no install required):

npx @bitovi/tailwind-inspector-mcp

Setup

1. Start the server

From your project directory:

npx @bitovi/tailwind-inspector-mcp

This starts the server at http://localhost:3333. The inspector panel is at http://localhost:3333/panel/.

Important: The server must be started from within your project directory (the directory containing your node_modules/tailwindcss). It uses your project's Tailwind installation to resolve class values.

2. Inject the overlay into your app

Add the overlay script to your app's index.html:

<script src="http://localhost:3333/overlay.js"></script>

For Vite projects, you can conditionally inject it only in development:

<!-- index.html -->
<script>
  if (location.hostname === 'localhost') {
    const s = document.createElement('script');
    s.src = 'http://localhost:3333/overlay.js';
    document.head.appendChild(s);
  }
</script>

3. Configure your MCP agent

GitHub Copilot — add to .vscode/mcp.json in your project:

{
  "servers": {
    "tailwind-inspector-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["@bitovi/tailwind-inspector-mcp"],
      "cwd": "${workspaceFolder}"
    }
  }
}

Claude Code — add to .mcp.json in your project root, or use the CLI:

claude mcp add tailwind-inspector-mcp npx @bitovi/tailwind-inspector-mcp

Or manually in .mcp.json:

{
  "mcpServers": {
    "tailwind-inspector-mcp": {
      "command": "npx",
      "args": ["@bitovi/tailwind-inspector-mcp"]
    }
  }
}

Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "tailwind-inspector-mcp": {
      "command": "npx",
      "args": ["@bitovi/tailwind-inspector-mcp"],
      "cwd": "/path/to/your/project"
    }
  }
}

Usage

  1. Open your app in the browser (e.g. http://localhost:5173)
  2. Click the inspector toggle button that appears in the bottom-right corner
  3. Click any element to inspect its Tailwind classes
  4. In the panel at http://localhost:3333/panel/:
    • Drag scrubbers to adjust spacing, sizing, and other scalar values
    • Click color chips to pick a new color
    • Press Queue Change to stage a change
  5. Once you've queued your changes, tell your AI agent: "Apply the queued Tailwind changes"
  6. The agent calls implement_next_change and keeps looping until the queue is empty

MCP Tools

| Tool | Description | |------|-------------| | implement_next_change | Start here. Waits for the next committed change, returns implementation instructions, and requires the agent to apply it, mark it done, then call this tool again in an endless loop. | | get_next_change | Returns the next committed change as raw patch data (no workflow instructions). Use this for custom agent workflows. | | mark_change_implemented | Marks one or more changes as implemented by ID. Returns a directive to call implement_next_change again. | | list_changes | Lists all changes grouped by status (staged, committed, implementing, implemented). | | discard_all_changes | Clears the entire change queue. |

Port Configuration

Use the PORT environment variable to change the server port (default: 3333):

PORT=4000 npx @bitovi/tailwind-inspector-mcp

Contributing

Issues and PRs welcome at github.com/bitovi/tailwind-inspector-mcp.

License

MIT © Bitovi