Skip to main content
Glama
README.md
<div align="center">

**English** · [日本語](README-ja.md) · [한국어](README-ko.md) · [简体中文](README-zh-CN.md)

# OpenDesign MCP

### One search across shadcn's partner registries, 21st.dev and UIverse.

**Building UI with an agent? Let it install a component someone already built, before it writes one.**

[![npm version](https://img.shields.io/npm/v/@mishafyi/opendesign-mcp?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@mishafyi/opendesign-mcp)
[![MCP tools](https://img.shields.io/badge/MCP-1_tool-5c4ee5?style=flat-square)](#️-available-tools)
[![Node.js](https://img.shields.io/node/v/@mishafyi/opendesign-mcp?style=flat-square&logo=nodedotjs&logoColor=white&label=Node.js&color=339933)](https://nodejs.org/en/download)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-listed-0d1117?style=flat-square)](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.mishafyi/opendesign-mcp)
[![skills.sh](https://skills.sh/b/mishafyi/opendesign-mcp?style=flat-square)](https://skills.sh/mishafyi/opendesign-mcp)
[![MIT license](https://img.shields.io/badge/license-MIT-f4c430?style=flat-square)](LICENSE)

[Quick Start](#-quick-start) · [Installation](#-installation) · [Usage](#-usage-examples) · [Tools](#️-available-tools) · [The Index](#️-the-index) · [Development](#-development)

<code>npx -y @mishafyi/opendesign-mcp</code>

<br />

<img src="https://cdn.jsdelivr.net/gh/mishafyi/OpenDesign-MCP@main/assets/banner.png" alt="OpenDesign MCP: 181,442 components in one search across shadcn, 21st.dev and UIverse, each with how to install it" width="1200" />

</div>

---

An MCP server that finds a UI component to install before your agent writes one. Its tool, `search_components`,
searches an index of 181,442 components that ships with the package: every item of every
[shadcn](https://ui.shadcn.com) partner registry that publishes an index, the [21st.dev](https://21st.dev) marketplace
with each component's bookmarks, and [UIverse.io](https://uiverse.io)'s copy-paste CSS and Tailwind elements with their
favorites. Each result says how it installs.

## 🚀 Quick Start

### Claude Code

```bash
claude mcp add OpenDesign-MCP -- npx -y @mishafyi/opendesign-mcp
```

### Claude Desktop

Add this to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or
`%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "OpenDesign-MCP": {
      "command": "npx",
      "args": ["-y", "@mishafyi/opendesign-mcp"]
    }
  }
}
```

It needs Node.js 24 or later.

### Ask your agent

```text
Find a date range picker I can install, and add the best one.
```

## ✨ Features

- 🔍 **One search, three sources**: shadcn partner registries, 21st.dev and UIverse, each source's results apart
- 📦 **How to install**: `npx shadcn@latest add` for shadcn and 21st.dev items, the page to copy from for UIverse
- ⭐ **Ranked**: items with the words in their name first, then the most bookmarked (21st.dev) or favorited (UIverse)
- 🧭 **Filters**: one source, or one kind of item (`registry:block`, `ui`, `loader`…)
- 📴 **Offline**: the index ships with the package, so a search makes no network request
- 🗂️ **Greppable**: the index is plain TSV, and the server's instructions name its folder

## 📦 Installation

<details>
<summary><strong>📱 Claude Code</strong></summary>

```bash
claude mcp add OpenDesign-MCP -- npx -y @mishafyi/opendesign-mcp
```

Claude Code's server names allow only letters, numbers, hyphens and underscores, hence `OpenDesign-MCP`.

[📖 Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp)

</details>

<details>
<summary><strong>🖱️ Cursor</strong></summary>

Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "OpenDesign-MCP": {
      "command": "npx",
      "args": ["-y", "@mishafyi/opendesign-mcp"]
    }
  }
}
```

[📖 Cursor MCP docs](https://docs.cursor.com/context/mcp)

</details>

<details>
<summary><strong>🔷 VS Code</strong></summary>

Add to `.mcp.json` at the root of your workspace, VS Code's portable format:

```json
{
  "mcpServers": {
    "OpenDesign-MCP": {
      "command": "npx",
      "args": ["-y", "@mishafyi/opendesign-mcp"]
    }
  }
}
```

[📖 VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)

</details>

<details>
<summary><strong>⚡ Zed</strong></summary>

Add to your Zed `settings.json`:

```json
{
  "context_servers": {
    "OpenDesign-MCP": {
      "command": "npx",
      "args": ["-y", "@mishafyi/opendesign-mcp"],
      "env": {}
    }
  }
}
```

[📖 Zed MCP docs](https://zed.dev/docs/ai/mcp)

</details>

## 💬 Usage Examples

```
"Find a file upload component with drag and drop"
"Is there a shadcn block for a pricing table?"
"Show 21st.dev's most bookmarked hero sections"
"Find a toggle switch on UIverse"
"Search for a motion carousel, blocks only"
```

## 🛠️ Available Tools

| Tool | Returns |
|------|---------|
| `search_components` | The components whose row holds every word of `query`, in any case and order, per source: those with the words in their name (a UIverse element's type) first, then the most bookmarked (21st.dev) or favorited (UIverse), `limit` of each (10 when unset, at most 50). `source` keeps one source (`shadcn`, `21st` or `uiverse`); `type` keeps the items whose kind contains it (`registry:block`, `ui`, `loader`…) |

Each source's results say how its items install:

- shadcn partner registries: `npx shadcn@latest add @namespace/item`; `npx shadcn@latest view @namespace/item` shows
  its files first.
- 21st.dev: `npx shadcn@latest add "https://21st.dev/r/<author>/<slug>?api_key=$API_KEY_21ST"`, with a 21st API key
  from https://21st.dev/mcp. Free accounts get a few installs a day.
- UIverse: not shadcn. Copy the element's code from its page.

For a search the parameters can't express, the server's instructions name the folder of the TSVs below, for grep.

## 🗂️ The Index

| File | Rows | Rebuilt by |
|---|---|---|
| `data/shadcn-partners-directory.json` | shadcn's partner directory | `curl -sL https://ui.shadcn.com/r/registries.json -o data/shadcn-partners-directory.json` |
| `data/shadcn-partners-components.tsv` | registry, name, type, description, add command | `node scripts/fetch-shadcn-partners.mjs` |
| `data/shadcn-partners-unavailable.tsv` | each partner whose index couldn't be read, with the reason | the same |
| `data/21st-dev-marketplace-components.tsv` | author, slug, name, description, kind, likes, bookmarks, downloads, views, tags, dependencies, license, URL | `node scripts/fetch-21st-dev-marketplace.mjs` |
| `data/uiverse-components.tsv` | author, slug, type, theme, Tailwind or CSS, favorites, views, URL | `scripts/fetch-uiverse.mjs`, pasted into a browser's console on uiverse.io |

A refresh runs them top to bottom; commit the data, and the diff shows what each source added and dropped. The node
scripts retry 408, 413, 429 and 5xx answers and network errors with backoff, honoring Retry-After (got), and the
21st.dev sweep asks once a second.

### 📊 Coverage on 2026-11-29

| | Count |
|---|---:|
| Partners in shadcn's directory | 613 |
| Partners read (one with an empty index) | 557 |
| Partners whose index couldn't be read | 56 |
| Items from the partners | 167,189 |
| 21st.dev components, by 1,125 authors | 9,867 |
| UIverse elements, by 1,144 authors, of 4,513 listed | 4,386 |
| **Total** | **181,442** |

### 🔎 How each source is read

**shadcn partners.** The directory gives each partner's item URL template. The index is `{base}/registry.json` by
convention, but partners also publish it in the parent folder, as an `all` item whose `registryDependencies` list the
items, or behind a `{style}` placeholder, so the script tries each in turn. A candidate that answers 4xx or 5xx, or
with something that isn't an index, holds no index; a 429 after the retries, or a host that can't be reached, ends the
partner's probing. `shadcn-partners-unavailable.tsv` gives the reason: `no-index`, `http-<status>` or the network
error's code (`ENOTFOUND` for a domain that no longer resolves, `CERT_HAS_EXPIRED`…). Those partners' items install by
exact name but aren't in the index.

The directory's own `health` field doesn't replace reading: 8 partners it marks `unavailable` were read (750 items,
from indexes where its check doesn't look), 45 of its 46 `degraded` ones were read (degraded means items that fail
shadcn's schema, not an unreadable index), and the 56 that weren't are 53 of its `unavailable`, its 2 `observing` and
1 `degraded`.

`@registrydirectory` republishes other registries' items as `@registrydirectory/<registry>/<item>`, cult-ui's among
them, which answers 429 when read directly; items of registries read directly show up twice.

**21st.dev.** Its REST API (https://21st.dev/openapi.json) needs an API key and can only search, so the index comes
from `demos.list`, the tRPC endpoint its pages call: `{sortBy, limit, cursor}`, 200 items an answer. The recommended
order reaches components the date order misses (285 on 2026-11-29), and the bookmarks, likes and downloads orders reach
none beyond those, so date and recommended are swept, each until it stops adding; paging by `offset` instead stops at
about 200 items a sort order. 21st.dev counts 12,000+ items in its catalog, templates and themes among them.

**UIverse.** Every scripted request (curl, node, a headless browser) gets Cloudflare's challenge page, and the
open-source mirror, [uiverse-io/galaxy](https://github.com/uiverse-io/galaxy), has no metrics and stopped in
September 2024. So `fetch-uiverse.mjs` runs in the console of a browser that has passed the challenge: it lists `/elements` (35
an answer, no metrics) and reads each element's favorites and views from its metadata loader, 4 requests at a time. The
listing reorders as elements are added, so a sweep finds about 97% of them; its promo slots are skipped.

## 🧪 Development

```bash
git clone https://github.com/mishafyi/OpenDesign-MCP.git
cd OpenDesign-MCP
npm install
npm run build                  # tsc into dist/

# Run your build in Claude Code in place of the npm package
claude mcp add OpenDesign-MCP -- node "$PWD/dist/index.js"

# Call the built server without an MCP client
npx -y @modelcontextprotocol/inspector --cli node dist/index.js --method tools/call \
  --tool-name search_components --tool-args-json '{"query":"date range picker","limit":2}'
```

## 🤝 Contributing

Contributions are welcome:

1. **Fork** the repository
2. **Create** a feature branch: `git checkout -b feature/amazing-feature`
3. **Commit** your changes: `git commit -m 'Add amazing feature'`
4. **Push** to the branch: `git push origin feature/amazing-feature`
5. **Open** a Pull Request

## 📄 License

The code is MIT: see [LICENSE](LICENSE). The index lists the names, descriptions and links each source publishes; each
component belongs to its author, under its own license.

## ⚠️ Disclaimer

This project is not affiliated with or endorsed by shadcn, 21st.dev or UIverse.

TDQS

A4.1/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is no possibility of confusion with another tool. Its purpose—searching the component index—is clear and self-contained.

Naming Consistency4/5

The single tool uses clear snake_case verb_noun naming (`search_components`). With only one tool there is no broader pattern to compare, but nothing is inconsistent.

Tool Count3/5

A single search tool is thin for a server named OpenDesign-MCP. It may be enough for discovery, but it leaves no room for retrieve, filter, or install workflows.

Completeness3/5

The search operation appears functional and returns install/open guidance, but the tool surface has notable gaps: no component detail lookup, category browsing, or explicit install/open operation. Agents may be able to work around this from search results, but it is not a complete lifecycle.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues