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 🙏

© 2025 – Pkg Stats / Ryan Hefner

brand-os-mcp-server

v1.0.3

Published

MCP server for Brand-OS. Enables Claude and Cursor to generate branded UI.

Readme

brand-os-mcp-server

Brand-OS tools for AI-powered UI generation with strict brand enforcement.

For Claude Code & Cursor Users

Claude Code Setup

  1. Add CLAUDE.md to your project root:
curl -O https://raw.githubusercontent.com/brand-os/core/main/CLAUDE.md
  1. Claude Code will automatically follow Brand-OS rules for component generation

Cursor IDE Setup

  1. Add .cursorrules to your project root:
curl -O https://raw.githubusercontent.com/brand-os/core/main/.cursorrules
  1. Cursor will enforce Brand-OS patterns in all UI generation

Installation

npm install @brand-os/core

For MCP-Compatible Tools (Claude Desktop)

1. Install the MCP Server

npm install -g brand-os-mcp-server

2. Configure Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "brand-os": {
      "command": "node",
      "args": ["/usr/local/lib/node_modules/brand-os-mcp-server/dist/index.js"]
    }
  }
}

Note: The path may vary based on your npm global installation directory. Find it with:

npm root -g

3. Restart Claude Desktop

After updating the configuration, restart Claude Desktop to load the Brand-OS MCP server.

Available Tools

Once configured, Claude will have access to these Brand-OS tools:

compose

Create UI by composing pre-built blocks from the Brand-OS gallery.

Example:

// Request
{
  "requirements": "Show sales metrics with chart and AI insights"
}

// Returns JSX/TSX snippet

scaffold

Create new components using Brand-OS primitives (CardShell, Panel, Stack, Grid, etc.).

Example:

// Request
{
  "name": "CustomMetric",
  "description": "Special metric display",
  "code": "export function CustomMetric({value, label}) { ... }"
}

// Returns validated JSX/TSX

discover

Find components by natural language query.

Example:

// Request
{
  "query": "charts for time series data"
}

// Returns matching components

gallery

Browse all available pre-built blocks (379 total).

Example:

// Request
{
  "category": "metrics" // optional filter
}

// Returns block catalog

Usage in Your App

1. Install Core Package

npm install @brand-os/core

2. Setup Provider

import { BrandOSProvider } from '@brand-os/core';

export default function App() {
  return (
    <BrandOSProvider config={{
      nano: {
        // Your brand tokens
        '--brand-primary': '#3B82F6',
        '--glass-bg': 'rgba(255, 255, 255, 0.6)',
        '--glass-blur': '40px'
      }
    }}>
      {/* Your app */}
    </BrandOSProvider>
  );
}

3. Use Generated Components

When Claude generates components using the MCP tools, they'll return JSX/TSX snippets you can use directly:

import { Resolved } from '@brand-os/core';

// Component generated by Claude's compose tool
<Resolved intent={{
  type: "stat-card",
  data: {
    title: "Revenue",
    value: 125000,
    change: 12.5
  }
}} />

Brand Enforcement

The MCP server ensures all generated UI:

  • ✅ Only uses CSS variables (no hardcoded colors)
  • ✅ Follows glass morphism aesthetic
  • ✅ Maintains exact typography system
  • ✅ Respects spacing/density settings
  • ✅ Bundle size < 2KB per component

Development

Running Locally

# Clone and install
git clone https://github.com/your-org/brand-os
cd brand-os/packages/brand-os-mcp-server
npm install

# Build
npm run build

# Test locally with Claude
node dist/index.js

Testing Tools

The MCP server can be tested using the MCP Inspector:

npx @modelcontextprotocol/inspector dist/index.js

Support

  • Issues: https://github.com/your-org/brand-os/issues
  • Docs: https://brand-os.dev/docs
  • Discord: https://discord.gg/brand-os

License

MIT