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

@ai-first-ds/mcp-server

v0.1.1

Published

Model Context Protocol server for AI-First Design System - enables AI tools to query design system components, tokens, and patterns

Readme

AI-First Design System MCP Server

Model Context Protocol (MCP) server that exposes the AI-First Design System's components, tokens, and patterns to AI coding tools.

What is MCP?

Model Context Protocol is a standard for exposing structured data and tools to AI assistants. By running this MCP server, AI tools like Claude, Cursor, and other AI coding assistants can intelligently query and understand your design system.

Features

  • Component Discovery: AI tools can search and retrieve detailed component information
  • Design Tokens: Access to all design tokens (colors, typography, spacing, AI-specific)
  • Usage Examples: Get framework-specific code examples (Vanilla JS, React, Vue, Svelte)
  • Research Citations: Every component includes research backing and design rationale
  • Design Principles: Access to core AI-first design principles

Installation

cd packages/mcp-server
npm install
npm run build

Usage with AI Tools

Claude Desktop

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

{
  "mcpServers": {
    "ai-first-design-system": {
      "command": "node",
      "args": ["/path/to/AI-First-Design-System/packages/mcp-server/dist/index.js"]
    }
  }
}

Cursor / Other Tools

Configure your AI tool to use this MCP server by pointing to the built server file.

Available Resources

  • ai-first://components/list - List all components
  • ai-first://components/{name} - Get specific component metadata
  • ai-first://tokens/{category} - Get design tokens by category
  • ai-first://principles - AI design principles
  • ai-first://patterns - Common UI patterns

Available Tools

search_components

Search for components by name, description, or tags.

{
  "query": "chat"
}

get_component

Get detailed metadata for a specific component.

{
  "name": "ai-button"
}

get_usage_example

Get usage examples for a component in different frameworks.

{
  "component": "ai-chat-message",
  "framework": "react"
}

Development

# Watch mode for development
npm run dev

# Build
npm run build

# Type check
npm run type-check

Research Foundation

This MCP server implementation is based on:

  • Model Context Protocol Specification (2024)
  • Design Systems Collective: "Building AI-Ready Design Systems with Structured Data" (2024)
  • Supernova: "Making Design Systems AI-Ready" (2024)

Architecture

src/
├── index.ts              # Main MCP server
├── types.ts              # MCP-specific types
└── resources/
    ├── components.ts     # Component resource handlers
    └── tokens.ts         # Token resource handlers

Benefits for AI Tools

When AI coding tools have access to this MCP server, they can:

  1. Discover Components: Find the right component for the job
  2. Understand Props: Know all available properties and their types
  3. Follow Best Practices: Access research-backed usage guidelines
  4. Generate Correct Code: Use proper syntax for each framework
  5. Maintain Consistency: Apply design tokens correctly
  6. Respect Accessibility: Follow WCAG guidelines built into components

License

MIT