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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。