MCP
Install components from this registry with your AI coding agent via the shadcn MCP server.
The shadcn MCP server lets AI coding agents browse and install registry items for you. Point it at this registry and you can ask for “the button and dialog components” and the agent runs the install.
Configure the registry
Add this registry to your project’s components.json under registries:
{
"registries": {
"@shadcn-remix": "https://www.shadcn-remix.com/r/{name}.json"
}
}Add the MCP server
Run the shadcn MCP init command, or add the server to .mcp.json manually:
$ bunx --bun shadcn@latest mcp init --client claude$ npx shadcn@latest mcp init --client claude$ pnpm dlx shadcn@latest mcp init --client claude$ yarn dlx shadcn@latest mcp init --client claude{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}Run the shadcn MCP init command, or add the server to .cursor/mcp.json manually:
$ bunx --bun shadcn@latest mcp init --client cursor$ npx shadcn@latest mcp init --client cursor$ pnpm dlx shadcn@latest mcp init --client cursor$ yarn dlx shadcn@latest mcp init --client cursor{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["-y", "shadcn@latest", "mcp"]
}
}
}Run the shadcn MCP init command, or add the server to .vscode/mcp.json manually:
$ bunx --bun shadcn@latest mcp init --client vscode$ npx shadcn@latest mcp init --client vscode$ pnpm dlx shadcn@latest mcp init --client vscode$ yarn dlx shadcn@latest mcp init --client vscode{
"servers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}Use it
Once configured, prompt your agent naturally:
Show me the components available in the @shadcn-remix registry.
Add the dialog and dropdown-menu components to my project.The agent reads each item’s JSON, installs the npm dependencies, and writes the sources into app/ui/ — the same result as running the CLI yourself.
The MCP server reads the registries from components.json. Make sure the @shadcn-remix entry above is present before starting your agent.
Docs for LLMs
Agents that read documentation directly can start from /llms.txt, an index of every page, or fetch all of it at once from /llms-full.txt. Append .md to any docs URL for its markdown, like /docs/installation.md.