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

@logic2b/mcp

v0.2.0

Published

MCP server that exposes the logic2b ui registry to coding agents.

Readme

@logic2b/mcp

An MCP server that exposes the logic2b ui registry to coding agents. Point your agent at it and it can discover, read, theme and install every component, block and chart — without leaving the conversation and without a shell.

Tools

Read the registry

| Tool | What it does | | --- | --- | | list_components | List registry items. Filter by kind (component | block | chart | theme) or category. | | search_components | Keyword search ranked by name/title/description, e.g. "login form", "donut chart". | | get_component | Fetch an item's full payload by name: dependencies, registry dependencies and the complete source of every file. | | get_demo | Usage examples for an item — the demo components the docs render, with imports rewritten to installed-project paths. |

Act on a project

| Tool | What it does | | --- | --- | | install_plan | Resolve items into an executable plan: every file to write (project-relative path + full content, registry dependencies resolved) and the npm dependencies to add. No command to run — write the files, add the deps, done. | | add_command | The exact logic2b add invocation (npm/pnpm/yarn/bun, names validated) for when a shell is available. | | get_theme | The theme.css stylesheet, its npm deps, and the customization catalog (base scales, accents, chart palettes, radii, fonts). | | decode_preset | Decode a /create preset id into its config and the exact token values it pins for light and dark. | | apply_preset | Build a themed theme.css from a preset id or explicit choices; optionally patch a stylesheet you pass in. Returns the CSS and the canonical preset id. | | contrast_audit | WCAG 2.2 + APCA contrast of every text token pair (light + dark) for a preset, explicit options or raw token values — verify a generated theme before shipping it. |

get_component returns exactly what npx logic2b add <name> installs; install_plan turns that into file writes an agent can execute directly.

Usage

Remote endpoint (zero install)

The same tools are served over streamable HTTP at https://ui.logic2b.com/mcp — nothing to run locally, which also works for web-based assistants and sandboxed agents without a shell. With Claude Code:

claude mcp add --transport http logic2b https://ui.logic2b.com/mcp

Or in any client that takes a JSON config:

{
  "mcpServers": {
    "logic2b": { "type": "http", "url": "https://ui.logic2b.com/mcp" }
  }
}

Local (stdio)

The server speaks stdio and needs no configuration. Add it to any MCP client.

Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json):

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

Cursor (.cursor/mcp.json) uses the same shape.

Pointing at a different registry

By default the server reads from https://ui.logic2b.com. Override it with the LOGIC2B_REGISTRY environment variable (useful for a self-hosted registry):

{
  "mcpServers": {
    "logic2b": {
      "command": "npx",
      "args": ["-y", "@logic2b/mcp"],
      "env": { "LOGIC2B_REGISTRY": "https://ui.example.com" }
    }
  }
}

Development

pnpm --dir packages/mcp dev     # run from source (tsx)
pnpm --dir packages/mcp test    # unit tests (node:test)
pnpm --dir packages/mcp build   # emit dist/

License

MIT © logic2b