shadcn-ui MCP Server
MCP server for shadcn/ui component references
Overview
shadcn-ui-server is a TypeScript-based MCP server designed for managing component references in the shadcn/ui library, providing a simple notes system.
To use the shadcn-ui-server, install the dependencies, build the server, and configure it with your application. You can create notes and generate summaries through its API.
- Resources for managing text notes with URIs and metadata. - Tools for creating new notes with required parameters. - Prompts for generating summaries of all stored notes.
- Managing UI component references in a structured manner.
- Creating and summarizing notes for documentation purposes.
- Integrating with applications like Claude Desktop for enhanced note management.
Add to your AI client
Use these steps to connect shadcn-ui MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"shadcn-ui-mcp-server-ymadd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"shadcn-ui-mcp-server-ymadd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"shadcn-ui-mcp-server-ymadd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"shadcn-ui-mcp-server-ymadd": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"shadcn-ui-mcp-server-ymadd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"shadcn-ui-mcp-server-ymadd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-shadcn-ui-mcp-server-ymadd"
]
}
}
}FAQ
What is the purpose of shadcn-ui-server?
It serves as a server for managing component references and notes in the shadcn/ui ecosystem.
How do I install shadcn-ui-server?
You can install it by running `npm install` and then build it using `npm run build`.
Can I use shadcn-ui-server with other applications?
Yes, it can be integrated with applications like Claude Desktop by configuring the server settings.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2130,"uuid":"b0cdea70-18f3-41d2-a518-1267533485a0","name":"shadcn-ui-mcp-server","title":"shadcn-ui MCP Server","description":"MCP server for shadcn/ui component references","avatar_url":"https://avatars.githubusercontent.com/u/18324681?v=4","created_at":"$D2025-03-09T03:40:41.395Z","updated_at":"$D2025-03-12T10:19:33.004Z","status":"created","author_name":"ymadd","author_avatar_url":"https://avatars.githubusercontent.com/u/18324681?v=4","tags":"shadcn-ui,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ymadd/shadcn-ui-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"17\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-13 01:40:51\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]