Let your agent search our registry, read an item's files and install it through the shadcn MCP server.
For agents · 1 min read
The shadcn MCP server is a tool server from shadcn. MCP (Model Context Protocol) is a standard way for an agent to use outside tools. With this server, your agent can search our registry, read an item's files and install it in your project.
Set it up
-
Add our registry to
components.jsonin your project root:
{
"registries": {
"@dots-engine": "https://dotsengine.dev/r/{name}.json"
}
}Connect the server in your agent. Use with your AI agent has the steps for Claude Code, Cursor, Codex, Kiro, GitHub Copilot, Windsurf, Gemini CLI and OpenCode.
What to ask
Name our registry in the request, so the agent searches the right place:
- "Show me the items in @dots-engine."
- "Find a progress loader in @dots-engine."
- "Install the radar-circle example from @dots-engine and show it while the answer streams."
The server installs with the shadcn CLI. You get the same files as with npx shadcn@latest add.
When the agent finds nothing
Check that components.json has the @dots-engine entry and that the URL ends with {name}.json. Then restart the agent, so the server reads the file again.