Skip to content

AI coding tools

Use our blocks from Cursor and Claude Code

Every block, component and page template we make installs with the shadcn CLI, so any assistant that can run a command can add one. Two things make it smoother: our registry in components.json, so items install by name, and our MCP server, so your assistant can search more than 1,500 of them and pick the right one. The free items need no account.

Step 1

Add the registry

Add @themesdev to the registries in your components.json. Use the short form for free items. With UI Pro, use the long form and set THEMESDEV_TOKENto a key from your account.

components.json, free items
"registries": {
  "@themesdev": "https://www.themes.dev/r/ui/{name}.json"
}
components.json, with UI Pro
"registries": {
  "@themesdev": {
    "url": "https://www.themes.dev/r/ui/{name}.json",
    "headers": { "Authorization": "Bearer ${THEMESDEV_TOKEN}" }
  }
}

Then any item installs by its store number:

Terminal
npx shadcn@latest add @themesdev/pricing-01

No components.json change at all? A free item also installs by its URL: npx shadcn@latest add https://www.themes.dev/r/ui/pricing-01.json

Step 2

Add the MCP server

The server lives at https://www.themes.dev/mcp. Without a key it shows and installs the free items; with a UI Pro key, everything.

Claude Code

One command adds our server to the project. Leave out the header line if you only use the free items.

Terminal
claude mcp add --transport http themesdev https://www.themes.dev/mcp \
  --header "Authorization: Bearer $THEMESDEV_TOKEN"

Cursor

Add the server to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project), then turn it on under Settings › MCP.

.cursor/mcp.json
{
  "mcpServers": {
    "themesdev": {
      "url": "https://www.themes.dev/mcp",
      "headers": { "Authorization": "Bearer ${env:THEMESDEV_TOKEN}" }
    }
  }
}

Any other MCP client

Windsurf, VS Code, Zed and the rest take the same thing: a Streamable HTTP server at https://www.themes.dev/mcp, with an optional Bearer token.

.mcp.json
{
  "mcpServers": {
    "themesdev": {
      "type": "http",
      "url": "https://www.themes.dev/mcp",
      "headers": { "Authorization": "Bearer ${THEMESDEV_TOKEN}" }
    }
  }
}

Step 3

Ask for what you need

Describe the section, not the item number. Some things we ask it ourselves:

What the server can do

search_items
Finds items by name, title, description or category. "A pricing section with a yearly toggle" works.
list_items
Lists items, filtered by access (free or UI Pro), kind (component, block, app screen, page template) and category.
show_item
Shows one item: what it is, its preview, how to install it, and its code when you have access to it.
install_item
Gives the exact npx shadcn add command and the components.json entry. It never changes your files itself; your assistant runs the command.

Questions

Do I need an account?

No, not for the free items. The 127 free blocks, components and page templates install without an account or key, from the CLI and through the MCP server. UI Pro items need a key from your account page.

Does the MCP server change my code?

No. It answers questions and hands back install commands. Your assistant runs npx shadcn add in your project, the same way you would, so you see every file it adds.

Do I need the MCP server at all?

No. The registry works on its own: add the @themesdev entry to components.json and install by name. The MCP server helps your assistant find the right item among more than a thousand without you browsing for it.

Is my key stored or logged?

The MCP server passes your key on to our registry for that one request and doesn’t keep it. Installs of UI Pro items are logged against your licence, as they are from the CLI.

Does it work with shadcn’s own MCP server?

Yes. shadcn’s MCP server reads the registries in your components.json, so once @themesdev is there you can browse and install our items through it too. Our own server knows our categories, access and previews, which shadcn’s can’t.

Try it on a free block first

Add the server without a key and ask for a free pricing or footer block. If it earns a place in your workflow, UI Pro opens the rest.