# MCP server

- **[Get started](/get-started/)**

Klarhimmel UI is a shadcn-compatible registry the official shadcn MCP server can browse and install from: add @klarhimmel to components.json and ask your agent for a block. It also runs its own free, read-only MCP server at ui.klarhimmel.com/mcp (search_items, get_item, setup) that needs no setup.

## Steps

- **Use the shadcn MCP server**: Add the registry to components.json once, then set up shadcn's own server for your client (its MCP page lists the others). Your agent can then search and install Klarhimmel items beside shadcn's.

  ```
  // components.json
  "registries": { "@klarhimmel": "https://ui.klarhimmel.com/r/{name}.json" }
  
  npx shadcn@latest mcp init --client claude
  ```
- **Or add the Klarhimmel UI server**: No components.json needed, no key, no account. Add it once per agent.

  ```
  # Claude Code
  claude mcp add --transport http klarhimmel-ui https://ui.klarhimmel.com/mcp
  
  # Cursor, in .cursor/mcp.json
  { "mcpServers": { "klarhimmel-ui": { "url": "https://ui.klarhimmel.com/mcp" } } }
  ```
- **Ask for a block**: search_items finds items by words, get_item returns one item's install command with its page and Markdown twin, and setup returns the project steps to follow once.

  ```
  Find a Klarhimmel UI pricing block with a monthly and yearly toggle and add it to this page.
  ```

[Previous](/get-started/ai)

[Next](/get-started/design-system-mcp)

- **Copy for AI**
