Use Preskok UI with the shadcn MCP server.
Preskok UI works with the official shadcn MCP server through the @preskok registry namespace. There is no separate Preskok MCP server.
Start with a project initialized by Preskok UI. For MCP registry discovery, components.json must contain the Preskok registry namespace:
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "aria-nova",
"registries": {
"@preskok": "https://ui-three-mu.vercel.app/r/{name}.json"
}
}For a new project, shadcn resolves Preskok from its registry directory and writes this configuration for you:
npx shadcn@latest init @preskok/defaultConfigure your MCP client to run the shadcn MCP server:
[mcp_servers.shadcn]
command = "npx"
args = ["shadcn@latest", "mcp"]The MCP process must start in the project directory that contains components.json. In a monorepo, use the app package directory, not the monorepo root.
The shadcn MCP server can list configured registries, search @preskok items, view item metadata, return example source code, and produce install commands.
For example, an MCP client can resolve this install command:
npx shadcn@latest add @preskok/buttonThe shadcn MCP view_items_in_registries tool returns component metadata, file counts, and dependencies, but not component file source. The registry JSON and shadcn view @preskok/button do include component source.
The get_item_examples_from_registries tool does return full example source code.