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

@e-burgos/tucu-ui-mcp

v0.6.0

Published

MCP Agentic Server for @e-burgos/tucu-ui component library

Readme

@e-burgos/tucu-ui-mcp

MCP (Model Context Protocol) server for the @e-burgos/tucu-ui component library. Gives AI assistants direct access to the component catalog, code generation, design tokens, and best practices — enabling agents to produce correct, type-safe UI code on the first try.

Features

| Category | Capabilities | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | 7 Tools | list_components, get_component, generate_component, generate_form, generate_page, generate_chart, search_icons | | 12 Resources | Catalog, tokens, forms, routing, layouts, theme, charts, icons, migration, best-practices, changelog, quickstart | | 8 Prompts | create-component, create-form, create-page, debug-variant, migrate-component, theme-setup, accessibility-check, performance-review | | 2 Transports | Stdio (local) and Streamable HTTP (remote) |

Quick Start

Use with npx (stdio — recommended for local)

npx @e-burgos/tucu-ui-mcp

Install globally

npm install -g @e-burgos/tucu-ui-mcp
tucu-ui-mcp          # stdio mode
tucu-ui-mcp-http     # HTTP mode (port 3100)

Client Configuration

VS Code (Copilot / Continue)

// .vscode/mcp.json
{
  "servers": {
    "tucu-ui": {
      "command": "npx",
      "args": ["@e-burgos/tucu-ui-mcp"]
    }
  }
}

Cursor

// .cursor/mcp.json
{
  "mcpServers": {
    "tucu-ui": {
      "command": "npx",
      "args": ["@e-burgos/tucu-ui-mcp"]
    }
  }
}

Claude Desktop

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "tucu-ui": {
      "command": "npx",
      "args": ["@e-burgos/tucu-ui-mcp"]
    }
  }
}

Remote HTTP (Fly.io / Docker)

The Bearer token is the value you set in the MCP_API_KEY environment variable on the server. You choose any secure random string:

# Generate a secure token
openssl rand -base64 32
# Example output: k7Bz3xQ9m2Rp8vN1wY6tA4jL0hF5sKd+Xe2Uc7Ig=

# Set it on Fly.io
fly secrets set MCP_API_KEY="k7Bz3xQ9m2Rp8vN1wY6tA4jL0hF5sKd+Xe2Uc7Ig="

# Or in Docker
docker run -e MCP_API_KEY="k7Bz3xQ9m2Rp8vN1wY6tA4jL0hF5sKd+Xe2Uc7Ig=" -p 3100:3100 tucu-ui-mcp

Then use that same token in your client configuration:

{
  "mcpServers": {
    "tucu-ui": {
      "url": "https://tucu-ui-mcp.fly.dev/mcp",
      "headers": {
        "Authorization": "Bearer k7Bz3xQ9m2Rp8vN1wY6tA4jL0hF5sKd+Xe2Uc7Ig="
      }
    }
  }
}

Note: If MCP_API_KEY is not set on the server, authentication is disabled (open access — suitable for local development only).

Tools

list_components

List available components, optionally filtered by category.

Input: { category?: string, limit?: number }

get_component

Get full details of a component (fuzzy matched): variants, props, example code, warnings.

Input: { name: string }

generate_component

Generate ready-to-use JSX with correct variants and imports.

Input: { component: string, props?: Record<string, string>, withWrapper?: boolean, theme?: string }

generate_form

Generate a complete form with validation (Zod + react-hook-form).

Input: { pattern?: string, fields?: FieldDef[], withValidation?: boolean }

generate_page

Generate a page component with layout and routing configuration.

Input: { name: string, layout: string, sections?: string[] }

generate_chart

Generate a Recharts-based chart component with tucu-ui theming.

Input: { type: string, data?: object[] }

search_icons

Search the icon catalog (97 native SVG + 1500+ Lucide).

Input: { query: string, limit?: number }

Resources (tucu:// URIs)

| URI | Description | | ----------------------- | ------------------------------------------------------------- | | tucu://catalog | Complete component catalog with variants and examples | | tucu://tokens | Design tokens: CSS variables, colors, breakpoints, typography | | tucu://forms | Form patterns: validation, useFormContext, all inputs | | tucu://routing | Routing guide: standalone, MFE, nested routes | | tucu://layouts | Layout system: admin, horizontal, clean, macOS, macOS Tahoe | | tucu://theme | Theme system: useTheme, presets, dark/light mode | | tucu://charts | Charts: Recharts wrappers, theming, performance | | tucu://icons | Icon catalog: native SVG + Lucide icons | | tucu://migration | Migration guide: breaking changes between versions | | tucu://best-practices | Do's, don'ts, anti-patterns, common mistakes | | tucu://changelog | Latest versions and changes | | tucu://quickstart | Quick start: install, setup, first component |

Self-Hosting

Docker

docker compose up -d
# or
docker build -t tucu-ui-mcp .
docker run -p 3100:3100 -e MCP_API_KEY=your-secret tucu-ui-mcp

Fly.io

fly launch --no-deploy
fly secrets set MCP_API_KEY="your-secret"
fly deploy

Security

  • Auth: Bearer token via MCP_API_KEY env var (optional in dev, required in production)
  • Rate limiting: 100 requests/minute per IP
  • Timing-safe token comparison to prevent timing attacks
  • Non-root Docker user
  • HTTPS enforced on Fly.io

Environment Variables

| Variable | Default | Description | | ------------- | -------- | ----------------------------------------------- | | PORT | 3100 | HTTP server port | | MCP_API_KEY | (none) | Bearer token for auth. If unset, access is open |

Development

# Install dependencies
pnpm install

# Run in dev mode (stdio)
pnpm dev

# Run HTTP server
pnpm start:http

# Build
pnpm build

# Run tests
npx vitest run

License

MIT © Esteban Burgos