Provides comprehensive style guide access including color tokens, typography styles, spacing scales, and responsive breakpoints for design system implementation.
Exposes Lit-based Web Components from @mcpsystem/ui package with documentation for props, events, and CSS parts.
Provides access to Tailwind CSS design system patterns with class variations for variants, sizes, and states, along with ready-to-use code snippets and semantic color tokens.
mcpsystem.design MCP Server
A production-ready MCP (Model Context Protocol) server that exposes design system components and style guides for AI assistants. Deployed on Vercel with SSE transport for remote access.
Live Server: https://www.mcpsystem.design/
Features
Component Specifications: Access detailed props, types, and descriptions for UI components
Code Examples: Get ready-to-use Tailwind CSS code snippets for each component
Style Guide: Retrieve colors, typography, spacing scales, and breakpoints
Search: Find components by name, description, or category
SSE Transport: Remote access via Server-Sent Events for web deployment
Security Hardened: Input validation, rate limiting, and structured logging
Quick Start
1. Install Dependencies
2. Local Development
Run the Next.js development server:
The MCP SSE endpoint will be available at http://localhost:3000/api/sse
3. Deploy to Vercel
Project Structure
API Endpoints
Endpoint | Method | Description |
or
| GET | Establish SSE connection |
or
| POST | Send MCP JSON-RPC messages |
| GET | Landing page |
Available MCP Tools
Pattern Tools (Tailwind CSS)
Tailwind patterns are copy-paste HTML with class variations for variants, sizes, and states.
Tool | Description |
| List all Tailwind patterns with categories |
| Get pattern with class variations |
| Search patterns by name/description/category |
| Get code examples for a pattern |
Style Guide Tools
Tool | Description |
| Get entire style guide or specific section |
| Get color tokens (optionally by category) |
| Get typography styles |
| Get spacing scale tokens |
| Get responsive breakpoint definitions |
| Get design system overview and stats |
Component Tools (@mcpsystem/ui)
@mcpsystem/ui components are Lit-based Web Components you import and use.
Tool | Description |
| List all @mcpsystem/ui components |
| Get component docs with props, events, CSS parts |
| Search components by name or description |
Connecting to AI Assistants
Cursor
Open Cursor Settings (
Cmd+,on macOS orCtrl+,on Windows/Linux)Search for "MCP" or navigate to Features → MCP Servers
Click "Add new MCP server"
Configure with:
Name:
mcpdesignsystemType:
sseURL:
https://www.mcpsystem.design/sse
Alternatively, add to your .cursor/mcp.json file:
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Claude Code CLI
Add to your .claude/settings.json:
Customizing the Design System
Modifying Components
Edit lib/design-system/components.ts to add or modify components. Each component follows this structure:
Modifying Style Guide
Update lib/design-system/style-guide.ts:
Colors: Organized by category (Semantic tokens, Gray Scale, Accent)
Typography: Font family, size, weight, line-height for each style
Spacing: Token name, CSS value, and pixel equivalent
Breakpoints: Responsive breakpoint values and descriptions
Color Token Rules
Component examples must use semantic color tokens instead of raw Tailwind colors:
Instead of | Use |
,
|
,
,
|
,
|
,
,
|
|
,
,
|
,
|
,
|
,
|
,
|
|
,
|
|
,
|
Validation
The project includes two validation scripts that run automatically on build:
CSS Token Validation
Ensures CSS variables in globals.css match the design tokens in style-guide.ts:
Component Color Validation
Ensures component examples use semantic color tokens instead of raw Tailwind colors:
Run All Validations
Always run
Development
Type Checking
Validation
Building
Security
The SSE endpoint includes several security hardening measures:
Input Validation
All JSON-RPC requests are validated using Zod schemas
Tool arguments are type-checked before execution
Batch requests limited to 100 items maximum
Rate Limiting
100 requests per minute per IP address
Returns HTTP 429 with
Retry-Afterheader when exceededIn-memory rate limiting (resets on cold starts)
Host Header Validation
Whitelist-based validation prevents host header injection
Allowed hosts:
www.mcpsystem.design,mcpsystem.design,localhostInvalid hosts default to
www.mcpsystem.design
Structured Logging
All requests include unique request IDs (
X-Request-Idheader)JSON-formatted logs for Vercel log aggregation
Request tracing for debugging and auditing
Troubleshooting
SSE Connection Issues
Ensure your client supports SSE transport for MCP
Check that CORS headers are properly configured for your client origin
Vercel has a 60-second timeout for serverless functions; long-running connections may be terminated
Connection Drops
The SSE endpoint sends periodic ping messages to keep the connection alive. If your client disconnects frequently, check your network configuration or proxy settings.
Rate Limit Errors (HTTP 429)
If you receive a 429 status code, you've exceeded the rate limit (100 requests/minute). Wait for the duration specified in the Retry-After header before retrying.
License
MIT