# shadcn.exchange MCP server

> Search every shadcn/ui block on shadcn.exchange from an AI assistant or a coding agent: heroes, pricing tables, login forms, dashboards and more, from every public shadcn registry, with install commands.

- Address: `https://shadcn.exchange/mcp`
- Transport: Streamable HTTP. No sign-in and no key: it reads only what the site shows anyone.

## Add it

Claude Code:

```bash
claude mcp add --transport http shadcn-exchange https://shadcn.exchange/mcp
```

Cursor, in `.cursor/mcp.json` or `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "shadcn-exchange": {
      "url": "https://shadcn.exchange/mcp"
    }
  }
}
```

VS Code, in `.vscode/mcp.json`:

```json
{
  "servers": {
    "shadcn-exchange": {
      "type": "http",
      "url": "https://shadcn.exchange/mcp"
    }
  }
}
```

Anything else that takes a remote MCP server, such as a custom connector in Claude or ChatGPT: give it `https://shadcn.exchange/mcp`.

## Tools

- `search_blocks`: Search the shadcn/ui blocks listed on shadcn.exchange: ready-made sections of a page, such as heroes, pricing tables, login forms, dashboards, footers and FAQs, from every public shadcn registry, free and paid. Use it when the user is building a page or a screen with shadcn/ui and wants a section to start from, or asks what blocks exist for something. Results come best first. Each has its id (for get_block), its description, its install command if it is free or where to buy it if it is paid, and its page with a live preview. Every word of the query has to be in a block's name, title, description or registry, so use one or two words, and the category for the kind of section.
- `get_block`: Get one block's details by its id from search_blocks: what it is, its install command, the npm packages and registry items it depends on, the files it adds, and its registry's notes on using it. Set include_source to also get its source code, for when the user wants to read or adapt the code rather than install it.
- `list_categories`: List the kinds of section the blocks are sorted into, such as hero, pricing, login, dashboard and footer, with how many blocks each has. Pass one to search_blocks as its category.
- `list_registries`: List the public shadcn/ui registries whose blocks shadcn.exchange lists, the most blocks first, with how many of each are free and paid, what each one is, and its page. Pass a registry's id to search_blocks to search only its blocks.

[The whole site for agents](https://shadcn.exchange/llms.txt).
