mcpField
B
ballmac

ballmac

Local
github.com/vamsiy78Developer Tools11Updated 4d ago

About ballmac

@ballmac/mcp lets developers and coding agents browse Ballmac UI components, blocks, and templates through MCP. It returns item details and install commands, and can plan pages or audit project source without writing files or running commands.

Key features

  1. 01Search and filter catalog items
  2. 02Inspect props, source, and keyboard behavior
  3. 03Retrieve examples and change history
  4. 04Generate install commands and page plans
  5. 05Read quality rules and shipped tests
  6. 06Audit project source without modifying it

Use cases

  1. 01Find a component for a UI requirement
  2. 02Plan a page from reusable blocks
  3. 03Check component changes before upgrading
  4. 04Review project source for Ballmac UI issues

MCP support

The MCP server exposes catalog tools, resources, and prompts to MCP clients. It is read-only and returns information and commands without changing files or executing them.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"vamsiy78-ballmac": {
"command": "npx",
"args": [
"-y",
"@ballmac/mcp"
]
}
}
}
Run commandnpx -y @ballmac/mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@ballmac/mcp1.0.3

Tools

8

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
kindenumNocomponent | block | template
tierenumNofree | pro
categorystringNo

Details

From the project README

@ballmac/mcp

An MCP server for Ballmac UI. It lets Claude, Cursor, VS Code, Windsurf, Codex and any other MCP client search the catalog of components, blocks and templates, read an item's props, keyboard behaviour and source, get the exact install command, and plan whole pages from blocks.

It is read-only: it answers questions and returns commands, and never writes files or runs anything on your machine. No account or API key is needed for the free catalog.

Install

The server runs with npx, so there is nothing to install globally. Node.js 20 or later is required.

Claude Code
claude mcp add ballmac -- npx -y @ballmac/mcp
Claude Desktop

Add this to claude_desktop_config.json (Settings, Developer, Edit config):

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

Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:

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

Add this to .vscode/mcp.json:

{
  "servers": {
    "ballmac": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@ballmac/mcp"]
    }
  }
}
Windsurf

Add the same mcpServers block as Cursor to ~/.codeium/windsurf/mcp_config.json.

Codex

Add this to ~/.codex/config.toml:

[mcp_servers.ballmac]
command = "npx"
args = ["-y", "@ballmac/mcp"]

What it can do

ToolWhat it returns
search_itemsThe best matches for a need, such as "chat input with attachments" or "online store". Understands common synonyms (modal, navbar, ecommerce).
list_itemsComponents, blocks or templates, filtered by kind, category or tier.
list_categoriesTotals and every category with its count, so the agent knows what exists.
get_itemDescription, when to use and when not to, import line, props, keyboard behaviour, dependencies, template pages and the full source.
get_examplesThe working examples shown on the item's page.
get_changesWhat changed in an item, version by version (with since to see only newer changes), and whether anything is breaking.
get_quality_rulesThe rules a Ballmac app is held to (states, accessibility, tokens, motion, layout) with why and a good and bad example. Read before writing a component.
audit_projectRead-only audit of the project's source. Returns findings worst first, each with its fix. Run it before saying a task is done.
make_presetMake a whole design system (colors, radius, typeface, platform feel, motion) from a description, and get its 16-character code and install command.
get_testsThe vitest + Testing Library test that ships with an item, to check it still works after an edit.
get_install_commandThe shadcn CLI commands for pnpm, npm, yarn or bun.
compose_pageA page plan from blocks in the right order, install commands, a page.tsx scaffold, and any complete template that already fits. Each section lists the states its block can show, and the scaffold wires data blocks to useResource and form blocks to a state you drive. When the request names macOS, Windows, iOS, Tauri or Electron (or you pass feel), it also returns the platform feel to install, with the wiring notes.
get_setupHow to prepare a project (shadcn init, optional theme, and the registry entry older CLIs need).

Resources: ballmac://catalog (every item with a one-line description) and ballmac://items/{name} (one item as Markdown).

Prompts: build_page (plan and build a page from an intent) and choose_component (find and wire up the right component).

Tools that return lists also return structured content, so clients that support it get typed results.

Things to ask

  • "Build a SaaS landing page with pricing and an FAQ using Ballmac UI."
  • "Which Ballmac component should I use for an animated revenue number?"
  • "Add a login screen from Ballmac UI to this app."
  • "Is there a Ballmac template for an online store? Install it."

Options

VariableDefaultPurpose
BALLMAC_UI_URLhttps://ui.ballmac.comThe catalog to read, for example a local copy of the site.
BALLMAC_LICENSE_KEYnoneA Ballmac UI Pro licence key. With it, get_item and get_examples return the source of Pro items too.

Pro items

Pro items appear in search with tier: "pro". Their install commands use the @ballmac-pro namespace, and get_install_command returns a proSetup line with the components.json entry the shadcn CLI needs. To let the agent read Pro source, pass your key to the server:

claude mcp add ballmac --env BALLMAC_LICENSE_KEY=your-licence-key -- npx -y @ballmac/mcp

In JSON configs, add "env": { "BALLMAC_LICENSE_KEY": "your-licence-key" } next to args. The key is only sent to the Ballmac UI site. Setup guide: ui.ballmac.com/docs/pro.

npx @ballmac/mcp --help and --version work from a terminal.

Without MCP

Ballmac UI is also a standard shadcn registry, so the official shadcn MCP server can browse it. The shadcn CLI knows @ballmac from the official registry directory, but that MCP server only reads the registries listed in components.json, so add it there:

npx shadcn@latest registry add @ballmac=https://ui.ballmac.com/r/{name}.json

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.