Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Swatchbook Mcp

FreeMaintained

Model Context Protocol server for swatchbook — exposes a DTCG project's tokens, axes, and diagnostics to AI agents without running Storybook.

GitHubEmbed

About

Model Context Protocol server for swatchbook — exposes a DTCG project's tokens, axes, and diagnostics to AI agents without running Storybook.

README

A Storybook addon and MDX doc blocks for visualising DTCG design tokens.

Built on Terrazzo's parser. Your production build runs Terrazzo's CLI against the same DTCG source; swatchbook reads it too, inside Storybook.

If your stories already style with CSS variables, they pick up the toolbar's axis flips automatically. That's mostly what the tool does.

Documentation · unpunnyfuns.github.io/swatchbook Live Storybook · /storybook

Install

npm install -D @unpunnyfuns/swatchbook-addon

One package pulls the whole React surface: toolbar, preview decorator, MDX doc blocks, ThemeSwitcher, useToken(). See the Quickstart for configuration.

Packages

Package Purpose
@unpunnyfuns/swatchbook-addon Storybook 10 addon. Re-exports the blocks + switcher React surface.
@unpunnyfuns/swatchbook-core Framework-free DTCG loader.
@unpunnyfuns/swatchbook-blocks MDX doc blocks.
@unpunnyfuns/swatchbook-switcher Framework-agnostic axis / preset popover UI.
@unpunnyfuns/swatchbook-integrations Tailwind v4 and CSS-in-JS adapters for the addon.
@unpunnyfuns/swatchbook-mcp Model Context Protocol server for AI agents.

Most consumers only install the addon; the rest travel transitively. Each sub-package is publishable on its own for slice-only use (for example, the switcher in a Docusaurus navbar).

Development

pnpm workspaces + Turborepo. Node 24. ESM.

pnpm install
pnpm dev                           # apps/storybook on :6006
pnpm turbo run lint typecheck test build

Credits

Parses DTCG tokens through Terrazzo by the Terrazzo team. Its parser, resolver evaluation, and alias resolution are the foundation.

License

MIT © unpunnyfuns.

from github.com/unpunnyfuns/swatchbook

Install Swatchbook Mcp in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install swatchbook-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add swatchbook-mcp -- npx -y @unpunnyfuns/swatchbook-mcp

FAQ

Is Swatchbook Mcp MCP free?

Yes, Swatchbook Mcp MCP is free — one-click install via Unyly at no cost.

Does Swatchbook Mcp need an API key?

No, Swatchbook Mcp runs without API keys or environment variables.

Is Swatchbook Mcp hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Swatchbook Mcp in Claude Desktop, Claude Code or Cursor?

Open Swatchbook Mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Swatchbook Mcp with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All design MCPs