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

@orion-ds/mcp

v1.0.0

Published

Orion Design System MCP Server — AI-native component discovery, validation, and code generation

Readme

@orion-ds/mcp

Model Context Protocol (MCP) server for the Orion Design System. Exposes the full component registry, token system, and code validation as tools that any MCP-compatible AI assistant can use.

What It Does

This server gives AI assistants direct access to Orion's component library and design tokens. Instead of relying on training data (which can hallucinate), the assistant queries live registry data to generate correct, token-compliant code.

Available Tools

The server exposes 9 tools:

| Tool | Description | | ------------------- | ----------------------------------------------------------------------------------------- | | list-components | List all components, sections, and templates. Filter by category or type. | | get-component | Get full details for a component: props, examples, tokens, accessibility, sub-components. | | search-components | Semantic search across the registry (e.g., "form input" finds Field, Select, Checkbox). | | list-tokens | List design tokens by category (surface, text, interactive, spacing, etc.). | | get-token | Get a specific token's values per theme and brand. | | validate-code | Validate a code snippet against Orion's anti-hallucination rules. | | get-setup-guide | Get a framework-specific setup guide (Vite, Next.js, React). | | list-sections | List pre-built sections and page templates. | | get-section | Get details and code for a section or template. |

Installation

npm install @orion-ds/mcp

Or run directly with npx:

npx @orion-ds/mcp

Setup

Claude Desktop

Add to your Claude Desktop configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "orion": {
      "command": "npx",
      "args": ["@orion-ds/mcp"]
    }
  }
}

Claude Code

Add to your project's .claude.json or ~/.claude.json:

{
  "mcpServers": {
    "orion": {
      "command": "npx",
      "args": ["@orion-ds/mcp"]
    }
  }
}

Cline (VS Code)

In your Cline MCP settings:

{
  "mcpServers": {
    "orion": {
      "command": "npx",
      "args": ["@orion-ds/mcp"]
    }
  }
}

Cursor

In .cursor/mcp.json:

{
  "mcpServers": {
    "orion": {
      "command": "npx",
      "args": ["@orion-ds/mcp"]
    }
  }
}

Configuration

The server locates registry and token data automatically. Override with environment variables if needed:

| Variable | Default | Description | | --------------------- | ------------- | ------------------------------ | | ORION_REGISTRY_PATH | ./registry/ | Path to the registry directory | | ORION_TOKENS_PATH | ./tokens/ | Path to the token JSON files |

The server searches in this order:

  1. The environment variable path
  2. ./registry/ relative to the current working directory
  3. ../../registry/ relative to the package location (monorepo layout)

Transport

The server uses stdio transport, which is the standard for local MCP servers. It communicates over stdin/stdout and works with all MCP-compatible clients.

Tool Details

list-components

Parameters:
  category? — Filter by category (actions, forms, layout, feedback, navigation, overlays, etc.)
  type?     — Filter by type: registry:component, registry:section, registry:template

Returns a grouped listing with counts (e.g., "39 components | 41 sections | 10 templates").

get-component

Parameters:
  name — Component name in kebab-case (e.g., "button", "data-table", "landing-page-template")

Returns complete component details including:

  • Props table with types, defaults, and descriptions
  • Sub-components and their props
  • Code examples
  • CSS tokens used
  • Accessibility info (ARIA roles, keyboard navigation)
  • File paths

search-components

Parameters:
  query — Keyword or use case (e.g., "form input", "navigation menu", "dialog popup")

Uses keyword matching plus a semantic synonym map. For example, "dialog" matches Modal, Drawer, and Popover. "dashboard" matches DataTable, MetricCards, Sidebar, PageHeader, and FilterBar.

validate-code

Parameters:
  code — TSX or CSS code string to validate

Checks for:

  • Hardcoded colors (hex, rgb, hsl)
  • Hardcoded pixel values
  • Hardcoded font families
  • brand prop on components (must be global)
  • data-brand on non-html elements
  • Wrong prop names (common AI hallucinations like leftIcon instead of icon)
  • Non-existent CSS variables (e.g., --font-sans instead of --font-secondary)
  • Missing CSS imports

Returns a pass/fail result with a score out of 100, errors with line numbers, and fix suggestions.

get-setup-guide

Parameters:
  framework — "vite", "nextjs", or "react"
  brand?    — Brand to configure (default: "orion")
  theme?    — Default theme: "light" or "dark" (default: "light")

Returns a step-by-step setup guide with install commands, CSS imports, ThemeProvider setup, and a working example component.

Development

# Build
cd packages/mcp
npm run build

# Watch mode
npm run dev

# Type check
npm run type-check

Dependencies

  • @modelcontextprotocol/sdk -- MCP SDK for server implementation
  • zod -- Schema validation for tool parameters (bundled with MCP SDK)

License

MIT