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

cre8-mcp

v0.5.0

Published

MCP server providing component intelligence for Cre8 design system (@tmorrow/cre8-wc and @tmorrow/cre8-react)

Readme

Cre8 MCP Server

MCP (Model Context Protocol) server that provides component intelligence for the Cre8 design system.

Supports both Web Components (@tmorrow/cre8-wc) and React (@tmorrow/cre8-react) formats.

Installation

npm install cre8-mcp
# or
npx cre8-mcp-proxy

Usage with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "cre8": {
      "command": "npx",
      "args": ["-y", "cre8-mcp-proxy"]
    }
  }
}

Format Parameter

All tools accept a format parameter to specify which schema to use:

  • "react" - Returns React component data (props, JSX examples)
  • "web" - Returns Web Component data (attributes, slots, events, HTML examples)

Default: "web"

// Get React component details
await mcp.call("get_component", { name: "Button", format: "react" });

// Get Web Component details
await mcp.call("get_component", { name: "button", format: "web" });

MCP Tools

list_components

Lists all available Cre8 components grouped by category.

| Parameter | Type | Description | |-----------|------|-------------| | category | string | Filter by category (optional) | | format | "react" | "web" | Output format (default: "web") |

Categories: Actions, Forms, Layout, Typography, Navigation, Disclosure, Feedback, Data, Media, Marketing

get_component

Gets detailed information about a specific component.

| Parameter | Type | Description | |-----------|------|-------------| | name | string | Component name (required) | | format | "react" | "web" | Output format (default: "web") |

React response includes:

  • Component name and import statement
  • Props with types and descriptions
  • JSX examples

Web Components response includes:

  • Tag name and import statement
  • Attributes (HTML attributes, kebab-case)
  • Properties (JS-only, camelCase)
  • Slots (content projection)
  • Events (custom events)
  • Usage examples

get_patterns

Returns pre-built UI patterns.

| Parameter | Type | Description | |-----------|------|-------------| | name | string | Pattern name (optional) | | format | "react" | "web" | Output format (default: "web") |

Available patterns:

  • Login Form
  • Data Table
  • Page Layout
  • Alert Banner
  • Tabbed Content
  • Modal Dialog

search_components

Search components by name, description, or category.

| Parameter | Type | Description | |-----------|------|-------------| | query | string | Search query (required) | | format | "react" | "web" | Output format (default: "web") |

generate_code

Generates React JSX or Web Component HTML from a JSON schema.

| Parameter | Type | Description | |-----------|------|-------------| | schema | object | Component tree schema (required) | | format | "react" | "web" | Output format (default: "web") |

Schema structure:

{
  "component": "Card",
  "props": { "variant": "default" },
  "children": [
    { "component": "Heading", "props": { "tagVariant": "h2" }, "children": "Title" },
    { "component": "Button", "props": { "text": "Click", "variant": "primary" } }
  ]
}

React output (format: "react"):

<Cre8Card variant="default">
  <Cre8Heading tagVariant="h2">Title</Cre8Heading>
  <Cre8Button text="Click" variant="primary" />
</Cre8Card>

Web Components output (format: "web"):

<cre8-card variant="default">
  <cre8-heading tag-variant="h2">Title</cre8-heading>
  <cre8-button text="Click" variant="primary"></cre8-button>
</cre8-card>

REST API

The server also exposes a REST API for direct HTTP access.

Endpoints

Web Components (default):

  • GET /components - List all components
  • GET /components/:name - Get component details
  • GET /patterns - List UI patterns
  • GET /search?q=query - Search components

React:

  • GET /react/components - List all React components
  • GET /react/components/:name - Get React component details
  • GET /react/patterns - List React patterns
  • GET /react/search?q=query - Search React components

Example Workflow

// 1. List form components (React format)
const forms = await mcp.call("list_components", {
  category: "Forms",
  format: "react"
});

// 2. Get details for a specific component
const field = await mcp.call("get_component", {
  name: "Cre8Field",
  format: "react"
});

// 3. Generate code from a schema
const code = await mcp.call("generate_code", {
  schema: {
    component: "Card",
    children: [
      { component: "Field", props: { label: "Email", type: "email" } },
      { component: "Button", props: { text: "Submit", variant: "primary" } }
    ]
  },
  format: "react"
});
// Returns: { format: "react", code: "<Cre8Card>..." }

Component Count

  • 82 components across 10 categories
  • 6 pre-built patterns for common UI layouts

License

MIT