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

@hareru/mcp

v0.4.2

Published

MCP server for Hareru UI design system — exposes tokens, schema, and component registry to AI agents

Downloads

47

Readme

@hareru/mcp

MCP server for Hareru UI — exposes design tokens, component registry, and usage rules to AI agents via Model Context Protocol.

npm License: MIT

Features

  • 6 resources — Tokens, token schema, component registry, component schema, task bundles, and consumer rules
  • 5 tools — Component usage, bundle usage, token validation, CSS mode recommendation, and group filtering
  • 3 prompts — UI generation, Tailwind coexistence, and consumer rules
  • stdio transport — Works with Claude Desktop, Cursor, and any MCP-compatible client

Installation

# npm
npm install @hareru/mcp

# pnpm
pnpm add @hareru/mcp

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "hareru-ui": {
      "command": "npx",
      "args": ["@hareru/mcp"]
    }
  }
}

Resources

| URI | Description | |-----|-------------| | hareru-ui://tokens | DTCG design tokens (light/dark themes, 150+ CSS custom properties) | | hareru-ui://tokens/schema | JSON Schema for design tokens — CSS variable enums and type constraints | | hareru-ui://components | Component registry — 51 components with CVA variants, Props, states, a11y, examples, and slot contracts | | hareru-ui://components/schema | JSON Schema for the component registry | | hareru-ui://bundles | Task bundles — curated component sets for common UI patterns | | hareru-ui://rules/consumer | Consumer rules for AI agents — import patterns, styling rules, and token reference |

Tools

| Tool | Description | Parameters | |------|-------------|------------| | get-component-usage | Get usage docs for a component — import, variants, props, JSX example, states, accessibility, examples, and Structure (slot tree for compound components) when available | componentName (string) | | get-bundle-usage | Get usage docs for a task bundle — components, CSS imports, and token categories | bundleName (string) | | validate-token-value | Validate a CSS value against the token schema | tokenType (string), value (string) | | recommend-css-mode | Recommend the best CSS import mode based on project context | hasTailwind (boolean), componentCount (number), hasExistingReset? (boolean) | | list-components-by-group | List components filtered by group | group (enum: core, form, layout, overlay, navigation, feedback, data-display, agent, di-domain) |

Prompts

| Prompt | Description | Parameters | |--------|-------------|------------| | create-ui | Generate a UI component using Hareru UI design system | description (string), framework? (string) | | create-ui-tailwind | Generate a component mixing Hareru UI and Tailwind CSS with Cascade Layer guidance | description (string) | | consumer-rules | Get the rules for using Hareru UI in your project | — |

Programmatic Usage

import { createServer } from "@hareru/mcp";

const server = createServer();

// Connect with stdio transport
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const transport = new StdioServerTransport();
await server.connect(transport);

Testing with InMemoryTransport

import { createServer } from "@hareru/mcp";
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
import { Client } from "@modelcontextprotocol/sdk/client/index.js";

const client = new Client({ name: "test", version: "1.0.0" });
const server = createServer();
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();

await Promise.all([
  client.connect(clientTransport),
  server.connect(serverTransport),
]);

const result = await client.callTool({
  name: "get-component-usage",
  arguments: { componentName: "Button" },
});

Links

License

MIT — Copyright (c) 2026 MUSUBI Inc.