shadcn-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shadcn-mcp-serveradd a shadcn button component"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shadcn MCP Server
A containerized Model Context Protocol (MCP) server that enables AI agents to dynamically install shadcn UI components into a mounted project workspace.
Features
Standardized MCP Interface: Exposes an
add_shadcn_componenttool to add shadcn components.Dockerized Execution: Run within a clean Docker environment, shielding host dependencies.
Seamless Volume Mounting: Configured to run
npx shadcn@latest adddirectly inside the mounted host codebase.Automated Registry Publishing: Automatically tags and pushes Docker images to GitHub Container Registry (GHCR) via GitHub Actions.
Related MCP server: Shadcn Space MCP
Getting Started
Usage in Docker MCP Toolkit
If your server is published to GitHub Container Registry, users can add it to their local IDE workspace with these steps:
Create a local profile:
docker mcp profile create --name my-projectAdd the MCP server:
docker mcp profile server add my-project --server docker://ghcr.io/your-github-username/shadcn-mcp:latestConfigure the workspace mount directory:
docker mcp profile config my-project --set shadcn-mcp.volumes=".:/workspace"Connect the profile to your IDE (VS Code):
docker mcp client connect vscode --profile my-project
Local Development
Install dependencies:
npm installBuild TypeScript:
npm run buildStart the server:
npm start
Available Tools
1 tooladd_shadcn_componentC
Adds a shadcn component to the project workspace.
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | The name of the shadcn component to install (e.g., button, dialog). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, and the description does not disclose behavioral traits such as file system changes, dependency installation, or network access required. The agent is left uninformed about side effects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence with no wasted words. Front-loaded with essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, the description should at least hint at return values or success/failure behavior. It lacks completeness for a tool that likely produces side effects.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with a clear description of the parameter. The tool description does not add any further meaning beyond the schema, so baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the action (adds) and resource (shadcn component) with scope (project workspace). It is specific and distinguishable from hypothetical siblings, but no siblings exist to differentiate further.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool or prerequisites. For example, the user might need to have shadcn initialized in the project, but this is not mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- First observed
add_shadcn_component
TDQS
Scored across 1 tool
Only one tool exists, so there is no risk of confusion between tools. Disambiguation is perfect.
The single tool name follows a clear verb_noun pattern (add_shadcn_component) in snake_case, which is consistent and descriptive.
With only one tool, the server feels thin for a component management server. While the core operation is covered, additional tools for listing or removing components might be expected.
The server only supports adding a component, missing obvious operations like listing available components or removing them. This limits the agent's ability to manage shadcn components effectively.
Maintenance
Related MCP Connectors
Browse and install Crucible's animated React components into shadcn-style projects.
Find, inspect and install reviewed reusable AI-agent capabilities from superskill.sh.
Embed an AI chat widget on your website from your coding agent: provision, configure, get snippet.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover, install, and generate code examples for shadcn/ui components, providing installation commands and usage examples for 37+ React UI components.MIT
- AlicenseAqualityDmaintenanceIntegrate Shadcn Space MCP server into your IDE to generate ready-to-use shadcn/ui components without guesswork.548 npm3MIT
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.418 npm4-
- AlicenseAqualityDmaintenanceEnables AI assistants to access and manage shadcn/ui v4 components, including source code, demos, blocks, and CLI integration.1245 npmMIT