# MCP (/docs/mcp)

Learn how to use the shadcn MCP (Model Context Protocol) server with slidecn.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



[MCP](https://modelcontextprotocol.io/) is an open protocol that standardizes how applications provide context to LLMs. The shadcn CLI can register an MCP server so your editor can discover registry components—including items you install from **slidecn** via the same CLI.

## Configure MCP [#configure-mcp]

Run:

```bash
npx dlx shadcn@latest mcp init
```

Choose your MCP client when prompted, then enable the MCP server in that client to finish setup.

## Usage [#usage]

With MCP enabled, you can ask your IDE to work with **slidecn** patterns. Example prompts:

* Assemble a **deck*&#x2A; from &#x2A;*`title-slide`*&#x2A;, &#x2A;*`section-slide`*&#x2A;, and &#x2A;*`content-slide`*&#x2A;, then apply &#x2A;*`theme-default`*&#x2A; or &#x2A;*`theme-dark`**.
* Start from a template such as &#x2A;*`pitch-deck`*&#x2A;, &#x2A;*`tech-talk`*&#x2A;, &#x2A;*`product-demo`*&#x2A;, or &#x2A;*`weekly-report`** and tailor copy and slides.
* Add &#x2A;*`split-slide`*&#x2A; or &#x2A;*`image-slide`*&#x2A; for two-column or hero imagery, and use &#x2A;*`stat-slide`*&#x2A; or &#x2A;*`comparison-slide`** for metrics.
* Layer &#x2A;*`fragment-list`*&#x2A;, &#x2A;*`fragment-reveal`*&#x2A;, or &#x2A;*`auto-animate-pair`** for step-by-step reveals in Reveal.js.
* Drop in &#x2A;*`code-block`*&#x2A;, &#x2A;*`notes`*&#x2A;, or &#x2A;*`fit-text`** where you need syntax highlighting, speaker notes, or responsive headings.

Install items with &#x2A;*`npx shadcn@latest add @slidecn/<name>`*&#x2A; or the &#x2A;*`https://slidecn.dev/r/<name>.json`*&#x2A; URL on each docs page, then import from &#x2A;*`@/components/slides/...`** (or your configured target path) as usual.
