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

vayu-ui-mcp

v1.0.2

Published

MCP Server for Vayu UI — exposes the component/hook registry to AI assistants

Downloads

369

Readme

vayu-ui-mcp

MCP Server for Vayu UI — exposes the component/hook registry to AI assistants.


Requirements

| Requirement | Version | | ----------- | -------- | | Node.js | ≥ 18.0.0 |


What It Does

This is a Model Context Protocol server that gives AI coding assistants (Claude Code, Cursor, VS Code Copilot, Windsurf, Antigravity) access to the Vayu UI component and hook registry. It exposes 17 tools for discovering, inspecting, and scaffolding components and hooks — so your AI assistant can suggest the right component, generate correct imports, and follow best practices automatically.


Installation

Via CLI (recommended)

The easiest way to configure the MCP server for your AI tools:

npx vayu-ui-cli install-mcp

This interactively prompts which AI tools to configure and writes the correct config files. See the CLI README for full install-mcp flags.

Manual configuration

Add the following to your AI tool's MCP config file:

{
  "mcpServers": {
    "vayu-ui": {
      "command": "npx",
      "args": ["-y", "vayu-ui-mcp"]
    }
  }
}

Supported AI Tools

| Tool | Project-level config | Global config | | --------------- | ------------------------ | ---------------------- | | Claude Code | .mcp.json | ~/.claude.json | | Cursor | .cursor/mcp.json | ~/.cursor/mcp.json | | VS Code Copilot | .vscode/mcp.json | ~/.vscode/mcp.json | | Windsurf | .windsurf/mcp.json | ~/.windsurf/mcp.json | | Antigravity | antigravity.config.json | — |


Tools Reference

Discovery

| Tool | Description | | --- | --- | | list_components | List all components and hooks with optional filters by type and category | | find_component | Natural language search with relevance scoring (returns top 5 matches) |

Component Detail

| Tool | Description | | --- | --- | | get_component_summary | Name, type, category, description, tags, and use cases | | get_component_props | All props for root and sub-components with types and defaults | | get_component_variants | Visual variants and sizes with default values | | get_component_states | Interactive states (loading, disabled, open, etc.) | | get_component_events | Event handlers with TypeScript signatures | | get_component_a11y | Accessibility info (ARIA, keyboard nav, focus, WCAG compliance) | | get_component_do_not | Anti-patterns to avoid with bad vs. good code examples | | get_component_dependencies | NPM packages and registry dependencies | | get_component_peer_components | Frequently co-used components | | get_component_composition | Compound component structure (sub-components, hooks) | | get_component_example | Code examples filterable by tag |

Code Generation

| Tool | Description | | --- | --- | | scaffold_component_usage | Generate working TSX code snippets with imports and dependencies |

Hooks

| Tool | Description | | --- | --- | | get_hook_details | Full API details — signature, parameters, return values |

Design System

| Tool | Description | | --- | --- | | get_install_guide | CLI commands and imports needed to install and use a component | | get_design_tokens | Design tokens (colors, radius, shadows) with Tailwind classes |


Running Locally (Development)

1. Clone the monorepo

git clone https://github.com/Rugved1652/vayu-ui-docs.git
cd vayu-ui-docs

2. Install dependencies

npm install

3. Build the registry (required — MCP depends on it)

cd packages/registry
npm run build

4. Build the MCP server

cd packages/mcp
npm run build

5. Run the server

node bin/vayu-ui-mcp.js

6. Watch mode (auto-rebuild on changes)

cd packages/mcp
npm run dev

Project Structure

packages/mcp/
├── bin/
│   └── vayu-ui-mcp.js        # Entry point
├── src/
│   ├── index.ts               # MCP server initialization & tool registration
│   ├── lib/
│   │   ├── registry.ts        # Registry access helpers
│   │   ├── search.ts          # Fuzzy search with relevance scoring
│   │   ├── design-tokens.ts   # Design token definitions
│   │   ├── register-tool.ts   # Type-safe tool registration wrapper
│   │   └── scaffold-templates/
│   │       └── index.ts       # Code generation templates
│   └── tools/
│       ├── list-components.ts
│       ├── find-component.ts
│       ├── get-component-summary.ts
│       ├── get-component-props.ts
│       ├── get-component-variants.ts
│       ├── get-component-states.ts
│       ├── get-component-events.ts
│       ├── get-component-a11y.ts
│       ├── get-component-do-not.ts
│       ├── get-component-dependencies.ts
│       ├── get-component-peer-components.ts
│       ├── get-component-composition.ts
│       ├── get-component-example.ts
│       ├── scaffold-component-usage.ts
│       ├── get-hook-details.ts
│       ├── get-design-tokens.ts
│       └── get-install-guide.ts
├── dist/                      # Build output (gitignored)
├── package.json
└── tsup.config.ts

License

MIT © Rugved Patel