DocumentationCLI

CLI

MCP Server

The shadcn MCP Server allows AI assistants to interact with items from registries. You can browse available components, search for specific ones, and install them directly into your project using natural language.

Configuration

Add the Obsidian UI registry to your project’s components.json file.

1{
2"registries": {
3 "@obsidian": "https://www.obsidianui.com/r/{name}.json"
4}
5}

Initialization

Add the MCP server to your project:

1npx shadcn@latest mcp init

Client Setup

Configure for your AI assistant (e.g., Cursor):

1npx shadcn@latest mcp init --client cursor