design-mcp
MCP server for design decisions during a build, providing live UI/animation library docs (via llms.txt) and a curated knowledge base of UX laws and UI conventions. It enables agents to look up real component APIs and apply design best practices, running locally via stdio or hosted on Vercel.
README
design-mcp
MCP server for design decisions during a build. Three things:
- Multi-library docs — live-fetches and caches the official
llms.txtindexes of many UI and animation libraries, so your agent can look up real component APIs instead of guessing. - UX laws & UI conventions — a local, curated knowledge base (Fitts's Law, Hick's Law, Jakob's Law, Gestalt principles, Nielsen heuristics, plus practical placement conventions like "where does the primary button go in a modal").
- Runs locally (stdio) or hosted on Vercel (Streamable HTTP) — same tools, two transports.
Supported libraries
| Category | Libraries |
|---|---|
| UI | Base UI, shadcn/ui, Mantine, Chakra UI, Ant Design, HeroUI, Ark UI, React Spectrum, daisyUI |
| Animation | Motion (framer-motion's successor), GSAP |
| Reference | React |
Add more by editing src/data/doc-sources.json (any site publishing llms.txt) and rebuilding — no code changes needed.
Local setup
npm install
npm run build
This compiles src/ to dist/ and copies the JSON knowledge bases alongside it.
opencode — add to your MCP config:
{
"mcpServers": {
"design-mcp": {
"command": "node",
"args": ["/absolute/path/to/design-mcp/dist/index.js"]
}
}
}
Claude Code / Claude Desktop:
claude mcp add design-mcp -- node /absolute/path/to/design-mcp/dist/index.js
Restart the client after registering.
Host on Vercel
The api/mcp.ts function serves the same server over Streamable HTTP (sessions, JSON or SSE responses). Just push the repo to GitHub and import it in Vercel:
- Push to GitHub (below).
- In vercel.com/new, Import the repo.
- Framework preset: Other. Build command:
npm run build. Everything else default. - Deploy. Your MCP endpoint is
https://<your-project>.vercel.app/api/mcp.
Then point any MCP client at the URL:
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"design-mcp": {
"url": "https://<your-project>.vercel.app/api/mcp"
}
}
}
opencode — opencode.json:
{
"mcp": {
"design-mcp": {
"type": "remote",
"url": "https://<your-project>.vercel.app/api/mcp",
"enabled": true
}
}
}
Push to GitHub
git add -A
git commit -m "Add multi-library docs, animations, and Vercel hosting"
git push origin main
Tools exposed
| Tool | What it does |
|---|---|
search_ux_principles |
Keyword search across UX laws/heuristics |
get_ux_principle |
Full detail on one named law |
list_ux_principles |
Full list of everything in the local KB |
check_ui_pattern |
Placement conventions (button position, back/close, FAB, forms, destructive actions, progress bars) |
list_doc_libraries |
List all supported UI/animation libraries |
list_library_docs |
Full docs index for one library |
search_library_docs |
Keyword search inside one library, returns matching page content |
get_library_doc |
Full docs for one named page/component in a library |
list_baseui_components |
Shortcut for list_library_docs (base-ui) |
search_baseui_docs |
Shortcut for search_library_docs (base-ui) |
get_baseui_component |
Shortcut for get_library_doc (base-ui) |
Notes
- Library indexes/pages are cached 24h (
.cache/on local, in-memory on Vercel) to avoid hammering doc sites. - If a doc site is unreachable, the doc tools return an error message rather than crashing; the UX/convention tools work fully offline.
- On Vercel, sessions live per serverless instance — if a new instance spins up, the client simply re-initializes a new session.
- To extend the knowledge base, edit
src/data/ux-principles.json,src/data/ui-conventions.json, orsrc/data/doc-sources.jsonand rebuild.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.