@dsk/mcp

@dsk/mcp

An MCP server that gives AI assistants structured access to a design system's tokens, components, guidelines, and patterns, enabling them to read, lint, and author design system data.

Category
Visit Server

README

dsk — design-system memory toolkit

CI License: MIT

A single self-contained toolkit that gives one product's design system a memory — tokens, components, usage rules, patterns, flows, and screens — readable by humans and by AI coding assistants. One folder = one design system. It builds the design system, shows it, and lets an agent use it over MCP.

Website: https://rabindranath1311.github.io/dsk-website/ · How it works: HOW-IT-WORKS.md

The dsk visualizer — design tokens view

Why

Design systems usually live as tribal knowledge, scattered Figma files, and stale wikis. Agents (and new teammates) can't use any of that. dsk stores the system as structured, versionable data beside your code — with explicit "use when / don't use when" rules per component — so an AI assistant can pick the right component, obey the guidelines, and even author new entries.

The three faces (over one core)

  • @dsk/core — the kernel: the store (human-readable file repo or SQLite), the node model, DTCG design tokens, exporters. The source of truth.
  • @dsk/cli — the dsk command: the builder (init, token, component, pattern, guideline, import, export, feature, recommend, lint).
  • @dsk/server + @dsk/web — dsk serve: the viewer — a React visualizer + JSON API + the MCP endpoint, in one process.
  • @dsk/mcp — the agent surface: the MCP server Claude Code (or any MCP client) plugs into to read, lint, and author the design system.

Component usage rules in the visualizer

Quickstart

Requires Node.js 20+.

git clone https://github.com/rabindranath1311/dsk
cd dsk
npm install

# create a design system in this folder and load the example seed
npm run dsk -- init --name "Acme"
npm run dsk -- import examples/seed.acme.json

# build the visualizer once, then serve it
npm run build:web
npm run serve            # → http://localhost:4321

Then edit from the command line and watch the projections regenerate:

npm run dsk -- token set color.brand.primary "#1F6FEB"
npm run dsk -- component new IconButton --level atom --when "space-constrained toolbars"
npm run dsk -- export    # → design-system/tokens.css + design.md + AGENTS.md + SKILL.md

Prefer a fully human-readable store? dsk init --files keeps everything as markdown files instead of SQLite — diffable and reviewable in PRs.

Use it from Claude Code (MCP)

npm run dsk -- mcp-config   # writes .mcp.json (HTTP → http://localhost:4321/mcp)
npm run serve               # keep the server running

Open the folder in Claude Code and it connects automatically. The agent can then search components by intent, check usage rules, lint proposed UI against the guidelines, and author tokens/components/patterns — all against the same store the visualizer shows.

What's in the memory

Kind What it captures
Tokens DTCG-format design tokens (color, space, radius, type…) with aliases
Components Atomic-design level, intents, variants, use-when / don't-use-when, do/don't, a11y notes, tokens used
Patterns & guidelines Recurring solutions and the cross-cutting rules that govern components
IA & flows App maps and user flows as draggable node graphs
Screens Purpose, states, and the components each screen uses
Docs & assets PRDs, brand refs, research, icons/images — the grounding agents read

Develop

npm install
npm test             # vitest
npm run typecheck    # tsc across all packages

The store is the source of truth; everything else is a projection. Editing a token and re-exporting regenerates tokens.css + design.md. Builder (CLI), viewer (dsk serve), and the agent surface (MCP) are three faces over the same @dsk/core.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured