@tiny-design/mcp
v1.6.1
Published
MCP server for AI assistants to access the Tiny Design component library
Maintainers
Readme
@tiny-design/mcp
MCP (Model Context Protocol) server that gives AI assistants structured access to the Tiny Design component library, design tokens, and icon catalog.
Setup
Add to your MCP client config:
Claude Code
// .claude/settings.json
{
"mcpServers": {
"tiny-design": {
"command": "npx",
"args": ["@tiny-design/mcp"]
}
}
}VS Code (GitHub Copilot)
// .vscode/mcp.json
{
"mcpServers": {
"tiny-design": {
"command": "npx",
"args": ["@tiny-design/mcp"]
}
}
}Cursor
// .cursor/mcp.json
{
"mcpServers": {
"tiny-design": {
"command": "npx",
"args": ["@tiny-design/mcp"]
}
}
}Available Tools
| Tool | Description |
|------|-------------|
| list_components | List all 80+ components. Filter by category: Foundation, Layout, Navigation, Data Display, Form, Feedback, Miscellany. |
| get_component_props | Get the full props interface for a component — types, required flags, descriptions. |
| get_component_example | Get usage examples (demo code) for a component. |
| get_design_tokens | Get design tokens (SCSS variables) — colors, typography, spacing, breakpoints, shadows. |
| list_icons | List all 240+ icon names. Filter by search term. |
| get_icon | Get details and usage example for a specific icon. |
Examples
Ask your AI assistant:
- "List all form components in Tiny Design"
- "What props does the Modal component accept?"
- "Show me an example of using the Select component"
- "What colors are available in Tiny Design's design tokens?"
- "Find icons related to arrows"
Development
# Install dependencies (from monorepo root)
pnpm install
# Run extraction + build
pnpm --filter @tiny-design/mcp build
# Run tests
pnpm --filter @tiny-design/mcp testHow It Works
- Build time: Extraction scripts parse component
types.tsfiles (viats-morph), SCSS token variables (via regex), and icon barrel exports to produce static JSON. - Bundle time:
tsupbundles the server code with inlined JSON data into a single self-containeddist/index.js. - Runtime: The MCP server loads the inlined data and serves it via 6 tools over stdio transport using
@modelcontextprotocol/sdk.
License
MIT
