Guide
MCP
Give coding agents a direct line to the registry through the Model Context Protocol.
Overview
The server exposes the same JSON documents that shadcn consumes. It is read-only, works offline from a clone and speaks stdio, so it fits any MCP client. The clients below read the same registry.
Coverage
Primitives, effects, backgrounds, icons
Frameworks
Behaviour
Read-only, no network, no writes
Every answer comes from the registry: an agent cannot invent a component name, a category or an install URL. The catalogue resource is available as prequelui://catalog, and one item as prequelui://component/<name>.
Tools
search_components
query · usage · category · framework · limit
Finds a component by name, intention or category. Returns a ranked list with tags, a docs link and a React install command.
Example call
{
"name": "search_components",
"arguments": {
"query": "dialog",
"framework": "react",
"limit": 3
}
}describe_component
name
Explains one component: category, description, dependencies, files, available frameworks, every install command and related items.
Example call
{
"name": "describe_component",
"arguments": {
"name": "dialog"
}
}get_install_command
name · framework
Returns the exact shadcn, shadcn-vue, shadcn-svelte, Solid or vanilla command for one component.
Example call
{
"name": "get_install_command",
"arguments": {
"name": "dialog",
"framework": "vue"
}
}suggest_components
request · framework · limit
Turns a plain-language request into two or three components, each with a reason and a command.
Example call
{
"name": "suggest_components",
"arguments": {
"request": "animated entrance for my pricing page",
"framework": "react"
}
}A typical exchange is two calls: suggest_components to choose, then get_install_command to install. The agent never builds a registry URL itself.
Quickstart
The two calls below are enough to go from a plain request to a command that already points at the correct registry item.
{
"name": "suggest_components",
"arguments": {
"request": "animated entrance for my pricing page",
"framework": "react"
}
}
{
"name": "get_install_command",
"arguments": {
"name": "blur",
"framework": "react"
}
}The response contains the resolved name, the frameworks that ship it and one command per framework.
{
"name": "blur",
"category": "effects",
"frameworks": ["react", "vue", "svelte", "solid"],
"files": ["blur.tsx", "use-blur.ts"],
"commands": {
"react": "npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/blur.json",
"vue": "npx shadcn-vue@latest add https://prequeluianimate.terravidhal.me/r/vue/blur.json"
}
}Clients
Claude Code, Cursor, VS Code and Windsurf all read the same stdio server. Pick the client you use; the file name and the key differ.
claude mcp add prequelui -- node /path/to/prequelui-animate/mcp/server.mjsThe server ships in the repository. Clone it, replace the path, and Claude Code adds it to the current project.
From this repository
The server is part of the repository. Point any client at the local file during the preview; it reads web/public/r relative to itself and needs no build step.
{
"mcpServers": {
"prequelui": {
"command": "node",
"args": ["/path/to/prequelui-animate/mcp/server.mjs"]
}
}
}--check prints the registry path, the site URL and the item counts, then exits. In normal stdio mode only protocol messages go to stdout; logs go to stderr.
What agents can ask
The suggestion engine understands French and English. It scores the title, description, category tags and curated intents, so a request about a pricing page reaches pricing-friendly treatments rather than a random carousel.
Find
Find a dialog component with a blur behind it.
Suggest
Animated entrance for my pricing page.
Install
Give me the Svelte command for the accordion.
Explain
What does the bell icon do, and which frameworks ship it?