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

@hex-core/mcp

v0.4.3

Published

Universal MCP server for Hex UI — runs on Claude Code, Cursor, Continue, Gemini CLI, ChatGPT Desktop, and Zed. 13 tools over the component registry. Thin transport shell — pure-function builders live in @hex-core/payload.

Downloads

1,087

Readme

@hex-core/mcp

npm downloads License: MIT

Universal MCP server for Hex UI. Gives any MCP-capable AI agent — Claude Code, Cursor, Continue, Gemini CLI, ChatGPT Desktop, Zed — structured access to the component registry. No prose scraping, no copy-paste.

Install

Zero install — just run via npx:

npx -y @hex-core/mcp

Wire into your client

Pick your client below. Every snippet calls the same npx -y @hex-core/mcp; the only thing that changes is where the config file lives and what key it uses.

Tools exposed

Components & themes:

  • search_components(query) — fuzzy search across name, description, tags, AI hints
  • get_component(slug) — full RegistryItem (props, variants, examples, AI metadata)
  • get_component_schema(slug) — props, variants, slots, AI hints without source
  • list_themes() — available theme presets
  • get_theme(name, format) — full token set for a theme (css / json / tailwind)
  • scaffold_project(components, theme) — init + starter components in one call
  • customize_component(slug, overrides) — generate a themed variant

Spec-driven build flow:

  • list_recipes() — catalog of spec-driven blueprints (auth form, settings page, pricing table, …)
  • get_recipe(slug) — ordered install steps, union of peer deps, post-install checklist
  • resolve_spec(brief) — deterministic brief → ranked component + recipe shortlist (no LLM call server-side)
  • verify_checklist(components, recipe?) — cross-check installed components against the internal-dependency graph and the recipe's checklist
  • emit_app_context(theme, components, recipes?) — synthesize a paste-into-LLM markdown payload describing the chosen stack
  • emit_figma_tokens(theme) — render a theme as a Figma Variables REST POST payload

AI-native intent layer (0.4.0+):

  • describe_intent(name) — variant useWhen strings, structured antiPatterns with insteadUse slug, and the slice of defaultSemanticTokens for the component. Use BEFORE generating JSX — the per-variant intent + structured anti-patterns prevent the canonical LLM mistakes (picking destructive for non-destructive, picking Slider for booleans, nesting Cards, etc.).
  • search_compositions(tags, limit?) — return component examples whose composition tags overlap the query. ["dialog", "destructive", "confirm"] returns the canonical AlertDialog-with-delete-Button composition, not a bare <Button variant="destructive">. Ranked by overlap count.

Prompts that "just work"

  • "Find a hex-ui component for a confirmation dialog and add it"
  • "Resolve this spec into hex-ui components: build a settings page with notifications toggle"
  • "Walk me through the hex-ui auth-form recipe and install it"
  • "Verify I have all the hex-ui internal deps for combobox"

Pair with skills (Claude Code only)

The MCP server returns structured data. For prose reasoning context (when to pick recipe X, how themes compose, React 19 anti-patterns), the Hex UI skills pack adds Claude-Code-trigger-keyword docs alongside the typed tool calls:

npx @hex-core/cli skills install

The skills pack is Claude Code only today — its trigger system relies on Claude Code's prompt-rewriting hooks. Other clients in the list above run the MCP server unchanged but won't pull in the skills.

Verifying the server speaks standard MCP

The package ships a contract test that handshakes with the server using the official @modelcontextprotocol/sdk Client — the same SDK every supported client uses underneath. Run it locally to confirm wiring works:

pnpm --filter @hex-core/mcp test:contract

A green run proves the server speaks standard MCP regardless of which downstream client opens the connection. CI runs this on every push.

Upgrading from 0.3.0 → 0.4.0

The npx @hex-core/mcp binary works exactly as before — no config changes for users of the stdio MCP server. Two breaking changes affect direct importers (Next.js apps, generator scripts, CI fixtures): the pure-function builders moved to a new package @hex-core/payload, and the published tarball no longer ships registry/ directly. See MIGRATION.md for the full guide and replacement code snippets.

Docs

hex-core.dev/docs/mcp

License

MIT