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

@commercetools/nimbus-mcp

v3.5.1

Published

MCP server for the Nimbus design system

Readme

@commercetools/nimbus-mcp

MCP (Model Context Protocol) server for the Nimbus design system. Exposes Nimbus component documentation, design tokens, and icons as tools that AI assistants (Claude, etc.) can call.

Usage

With Claude Code

The recommended way to add the server is via the CLI:

claude mcp add -s user nimbus-mcp npx -- -y @commercetools/nimbus-mcp

This writes the server config to ~/.claude.json and makes it available in all sessions. Alternatively, add a nimbus entry to your project's .mcp.json so every team member on the repo gets the server automatically:

{
  "mcpServers": {
    "nimbus": {
      "command": "npx",
      "args": ["-y", "@commercetools/nimbus-mcp"]
    }
  }
}

With Claude Desktop

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

{
  "mcpServers": {
    "nimbus": {
      "command": "npx",
      "args": ["-y", "@commercetools/nimbus-mcp"]
    }
  }
}

Running directly

npx @commercetools/nimbus-mcp

Available Tools

| Tool | Description | | -------------------- | -------------------------------------------------------------------------------------- | | list_components | Returns names and descriptions of all Nimbus components and patterns | | get_component | Returns detailed info about a component or pattern (metadata, props, recipe, docs) | | search_docs | Full-text search across all Nimbus documentation pages | | search_icons | Fuzzy-search Nimbus icons by name or keyword | | get_tokens | Returns design tokens — list categories, browse by category, or reverse-lookup a value | | migrate_from_uikit | Returns migration mappings from UI Kit components to Nimbus equivalents |

Development

Setup

This package lives in the Nimbus monorepo. From the repo root:

pnpm install

Building

pnpm --filter @commercetools/nimbus-mcp build

Running from source

Requires a prebuild to copy docs data, generate the icon catalog, and generate token data first:

pnpm --filter @commercetools/nimbus-mcp prebuild
pnpm --filter @commercetools/nimbus-mcp catalog:icons
pnpm --filter @commercetools/nimbus-mcp build:tokens
pnpm --filter @commercetools/nimbus-mcp dev

Testing

# Run tests for this package only
pnpm test packages/nimbus-mcp/src/server.spec.ts

# Run all monorepo tests (includes nimbus-mcp)
pnpm test

Manual smoke test

After building, send raw JSON-RPC messages via stdin:

# initialize handshake
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' \
  | node dist/index.js

# list tools
printf \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}\n{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}\n' \
  | node dist/index.js

Adding a New Tool

  1. Create src/tools/my-tool.ts exporting a registerMyTool(server: McpServer) function:
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

export function registerMyTool(server: McpServer): void {
  server.registerTool(
    "my_tool",
    {
      title: "My Tool",
      description: "What this tool does.",
      inputSchema: {
        query: z.string().describe("The query to run"),
      },
    },
    async ({ query }) => {
      return {
        content: [{ type: "text" as const, text: `Result for: ${query}` }],
      };
    }
  );
}
  1. Import and call registerMyTool(server) in src/server.ts.

That's it — no other files need changing.

Data & Build Pipeline

The MCP server reads generated docs data (route manifest, search index, types, and per-component route JSON) from data/docs/ inside the package directory.

How data gets into data/docs/

The package has a prebuild step, an icon catalog step, and a token flattener step that run automatically before tsup:

pnpm build  →  pnpm prebuild  →  build-icon-catalog.ts  →  build-token-data.ts  →  tsup
                    │                       │                        │
                    ▼                       ▼                        ▼
            scripts/prebuild.mjs    scripts/build-icon-catalog.ts   src/processors/build-token-data.ts
                    │                       │                        │
                    ▼                       ▼                        ▼
            scripts/copy-docs-data.mjs   data/icons.json          data/tokens.json
                    │
    copies apps/docs/src/data/ → data/docs/

The prebuild orchestrator (scripts/prebuild.mjs) runs an array of steps in order. Currently the only step is copy-docs-data, which copies route-manifest.json, search-index.json, routes/, and types/ from the docs app into data/docs/. New prebuild steps can be added to the array.

After prebuild, build-icon-catalog.ts scans packages/nimbus-icons/src/ and generates data/icons.json — a searchable catalog of all icon names, categories, import paths, and normalized keywords. This can also be run standalone via pnpm --filter @commercetools/nimbus-mcp catalog:icons.

Then, build-token-data.ts reads the raw tokens and writes a flattened data/tokens.json with all tokens, a by-category index, and a reverse-lookup map. This can also be run standalone via pnpm --filter @commercetools/nimbus-mcp build:tokens.

The data/ directory is gitignored — it is always regenerated at build time.

Build order (CI and local)

tokens → packages (excl. mcp) → docs-data → mcp (prebuild + tsup)

The root build:docs-data script runs only the docs data generation (not the full Vite app build), keeping CI fast. The full pnpm build runs the complete docs build which also produces the data files.

Tools that depend on docs data return a graceful error message if data files are not present.