/sitecore-blok:blok-mcpfrom Sitecore Blok
Configures the shadcn MCP server to expose Sitecore Blok's component registry, enabling AI assistants to list, add, and compose Blok components from natural language prompts.
Ships in Sitecore Blok. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Blok exposes its registry over the shadcn MCP server. Once configured, AI assistants can list available components, add them, and scaffold layouts entirely from prompts — no manual lookup of registry URLs.
blok-components skillPrerequisite: Blok is already set up in the project — see the blok-setup skill. The MCP reads from components.json to know which registries to query.
Run at the project root:
npx shadcn@latest mcp init --client claude
This adds the shadcn MCP server to the project's Claude Code configuration. Verify by listing active MCP servers inside a Claude Code session — shadcn should appear.
Add to .cursor/mcp.json at the project root:
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["-y", "shadcn@latest", "mcp"]
}
}
}
Then enable shadcn under Cursor Settings → MCP.
Use the same mcp command pattern in the Copilot MCP config. Blok's docs defer to the shadcn MCP docs for the exact schema — if it changes, re-check https://blok.sitecore.com/mcp.
For the MCP to see Blok components (not just shadcn's core registry), components.json must declare the @blok registry:
{
"$schema": "https://ui.shadcn.com/schema.json",
"registries": {
"@blok": "https://blok.sitecore.com/r/{name}.json"
}
}
Without this line the MCP will only surface stock shadcn components.
Ask any of these once the MCP is running:
Show me all available components in the blok registry.
What components are available from blok?
Find me a hero section from the blok registry.
Install @blok/button.
Add button, card and alert from the Blok registry.
Build a dashboard layout using blok components.
Create a contact form using components from the shadcn registry.
For agent-authored prompts, be explicit about which registry — blok — to avoid the MCP falling back to stock shadcn components that don't match Sitecore styling.
| When you are… | How to use the Blok MCP |
|---|---|
| Designing UI | Query "what components exist?" during divergent proposals. Reference real component names in the UI design artifact. |
| Planning implementation | Use it to confirm a proposed component exists and to pull the current registry URL into the implementation plan. |
| Implementing | Use prompts like Add @blok/topbar, @blok/sidebar-rhs to install everything the plan lists in one pass. |
components.json missing the @blok registry line (see § 4)from the blok registry or @blok/*components.json and any MCP config changes after running shadcn mcp init so the team's setup stays reproducibleWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/blok-componentsCatalog of Blok primitives (65+) and composite bloks with registry URLs and the Marketplace quickstart inventory. Use to pick the right Sitecore-styled building block before writing custom markup in a Marketplace app or any Sitecore-styled UI./blok-marketplace-integrationHow Blok works inside a Marketplace app: iframe size limits per extension point, which Bloks fit where, shell patterns, theming in iframes, public-app submission checklist. Load when building a Marketplace app with Blok UI./blok-setupExact commands to add Blok to a project: shadcn init, Blok theme, registry aliases, first component, Tailwind v4 notes. Use when scaffolding a Sitecore-styled UI or asked for the Sitecore design language. Never Chakra or legacy blok-theme.npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-blok