Skip to main content
Glama

English · 日本語 · 한국어 · 简体中文

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 MCP tools Node.js MCP Registry skills.sh MIT license

Quick Start · Installation · Usage · Tools · The Index · Development

npx -y @mishafyi/opendesign-mcp


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 partner registry that publishes an index, the 21st.dev marketplace with each component's bookmarks, and UIverse.io's copy-paste CSS and Tailwind elements with their favorites. Each result says how it installs.

🚀 Quick Start

Claude Code

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):

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

It needs Node.js 24 or later.

Ask your agent

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

Related MCP server: Ruixen MCP Server

✨ 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

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

Add to ~/.cursor/mcp.json:

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

📖 Cursor MCP docs

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

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

📖 VS Code MCP docs

Add to your Zed settings.json:

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

📖 Zed MCP docs

💬 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, 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

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. 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.

Available Tools

1 tool
search_componentsSearch UI componentsA
Read-only

Searches the index for components whose row holds every query word, in any case and order. Results come per source: those with more of the words in their name (a UIverse element's type) first, then the most bookmarked (21st.dev) or favorited (UIverse); each says how to install or open it.

Inputs: query (required), type, limit, source.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Helps AI assistants access shadcn/ui component documentation and examples through a TypeScript-based MCP server that provides reference information for component details, usage examples, and search capabilities.
      4
      1,124 npm
      60
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to discover, search, and retrieve Ruixen UI components from the live registry, providing installation commands for MCP-compatible clients.
      3
      27 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides coding agents live access to shadcn-style component registries, enabling them to search, compare, and fetch real component source code for UI composition.
      5
      84 npm
      7
      MIT