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

@brander/mcp-tools

v0.2.9

Published

BranderUX MCP Tools — Add branded interactive UI to any MCP server

Downloads

1,006

Readme

@brander/mcp-tools

Add branded, interactive UI to any MCP server in one line.

@brander/mcp-tools registers a generate_screen tool on your MCP server that renders built-in and custom element types (charts, tables, grids, forms, and more) with your brand's colors, fonts, and styling — directly inside Claude Desktop.

Quick Start

npm install @brander/mcp-tools
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { registerBranderTools } from "@brander/mcp-tools";

const server = new McpServer({ name: "my-app", version: "1.0.0" });

// Register your own business tools...
// server.registerTool("search_products", { ... }, handler);

// One line — adds branded UI rendering
await registerBranderTools(server, {
  projectId: process.env.BRANDER_PROJECT_ID!,
  betaKey: process.env.BRANDER_BETA_KEY!,
});

await server.connect(new StdioServerTransport());

What It Does

When you call registerBranderTools(server, config), it adds:

  1. generate_screen tool — Claude uses this to render branded UI instead of writing raw text. Accepts an array of elements with typed props.
  2. MCP App resource — A self-contained HTML renderer (React + MUI) that Claude Desktop loads to display the elements.

Your brand settings (colors, fonts, layout, dark mode) are loaded from the BranderUX API at startup and applied to every rendered screen.

Built-in Element Types

| Element | Description | |---|---| | header | Page title with subtitle | | chat-bubble | Text/markdown response | | stats-grid | KPI cards with trends | | data-table | Sortable, filterable table | | line-chart | Time series chart | | pie-chart | Proportional data | | bar-chart | Category comparison | | item-grid | Product/item cards | | item-card | Single item detail card | | image | Image display | | details-data | Key-value detail sections | | form | Dynamic input form | | button | Action/link button | | alert | Notification banner |

You can also create custom element types through the BranderUX dashboard.

Configuration

interface BranderToolsConfig {
  /** BranderUX project ID */
  projectId: string;

  /** Beta design partner key (bux_dp_xxx) */
  betaKey: string;

  /** API base URL (defaults to https://branderux.com) */
  apiBaseUrl?: string;

  /** Path to local brandSettings.json for development */
  brandSettingsPath?: string;
}

Claude Desktop Setup

{
  "mcpServers": {
    "my-app": {
      "command": "node",
      "args": ["/path/to/your/dist/index.js"],
      "env": {
        "BRANDER_PROJECT_ID": "your_project_id",
        "BRANDER_BETA_KEY": "bux_dp_your_key"
      }
    }
  }
}

How It Works

  1. At startup, registerBranderTools loads your project's brand settings from the BranderUX API
  2. It registers the generate_screen tool with Zod schemas for all element types
  3. It registers an MCP App resource — a single-file HTML bundle containing all React components
  4. When Claude calls generate_screen, it returns structured data + a reference to the HTML resource
  5. Claude Desktop loads the HTML resource and renders branded UI with your data

Interactive Elements

Elements support click interactions via clickQuery. When a user clicks a table row, chart segment, or card, the query is sent back to Claude to continue the conversation:

// Claude generates this tool call:
generate_screen({
  elements: [{
    elementType: "item-grid",
    props: { items: [...] },
    clickQuery: "Show details for [title] including specs and reviews"
  }]
})

Placeholders like [title], [id], [name] are filled with the clicked element's data.

Example

See BranderUX/mcp-demo for a full reference implementation with a fake e-commerce dataset (TechStore Pro).

License

MIT