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

@rubberducky-studio/mcp

v0.0.4

Published

MCP Server for Rubberducky Studio Web Components - AI-powered code generation

Readme

@ducksauce/mcp

MCP (Model Context Protocol) Server for Ducksauce Web Components, enabling AI-powered code generation in Cursor and other MCP-compatible IDEs.

Features

  • Tools: Generate component code via natural language commands
  • Resources: Access component documentation and APIs
  • Prompts: Pre-built templates for common patterns

Installation

# From the monorepo root
pnpm install
pnpm --filter @ducksauce/mcp build

Configuration

Cursor IDE

Copy the following to your .cursor/mcp.json file (create the directory if it doesn't exist):

{
  "mcpServers": {
    "ducksauce": {
      "command": "node",
      "args": ["/path/to/webcomponents/packages/mcp/dist/index.js"]
    }
  }
}

Or for development with tsx:

{
  "mcpServers": {
    "ducksauce": {
      "command": "npx",
      "args": ["tsx", "/path/to/webcomponents/packages/mcp/src/index.ts"]
    }
  }
}

Global Configuration

For the MCP server to be available in all projects, add the configuration to ~/.cursor/mcp.json.

Available Tools

generate_site_header

Generate a WCAG-compliant navigation header.

"Add a site header with nav items: Home, About, Projects, Contact"

generate_button

Create buttons with various variants and sizes.

"Create a primary large button that says 'Get Started'"

generate_form

Build forms with input fields and validation.

"Create a login form with email and password fields"

generate_card_layout

Create card grids for displaying content.

"Make a 3-column grid of product cards"

generate_grid_layout

Create responsive grid layouts.

"Create a 12-column grid with 2 items"

generate_typography

Generate semantic typography elements.

"Add an h1 heading that says 'Welcome'"

Available Resources

| Resource | Description | |----------|-------------| | ducksauce://components | Complete component catalog | | ducksauce://components/rd-button | Button component docs | | ducksauce://components/rd-input | Input component docs | | ducksauce://components/rd-card | Card component docs | | ducksauce://components/rd-navigation | Navigation component docs | | ducksauce://components/rd-grid | Grid layout component docs | | ducksauce://components/rd-modal | Modal dialog component docs | | ducksauce://components/rd-typography | Typography component docs | | ducksauce://design-tokens | Design tokens (colors, spacing, etc.) |

Available Prompts

| Prompt | Description | |--------|-------------| | create_site_header | Generate complete site headers | | create_form | Generate forms (login, registration, contact, newsletter) | | create_card_grid | Generate card grids with content | | create_page_section | Generate page sections (hero, features, etc.) | | component_documentation | Get detailed component docs |

Example Usage

After configuring the MCP server in Cursor, you can use natural language to generate components:

  1. Site Header

    "I want to add a site header with these nav items: Home, About, Projects, Contact"

  2. Login Form

    "Create a login form with email and password fields"

  3. Feature Cards

    "Make a grid of 3 feature cards with titles and descriptions"

  4. Hero Section

    "Add a hero section with a large heading, subtitle, and CTA button"

The AI will use the MCP tools and component documentation to generate proper Ducksauce web component code.

Development

# Build the MCP server
pnpm --filter @ducksauce/mcp build

# Run in development mode
pnpm --filter @ducksauce/mcp dev

License

MIT