AI Integration

SmoothUI is built for AI-assisted development. Discover components via MCP, REST API, and machine-readable catalogs.

Last updated: March 7, 2026

AI Integration

SmoothUI is designed from the ground up for AI-assisted development. Whether you are an AI agent selecting components programmatically, or a developer using AI coding tools, SmoothUI provides first-class integration paths.

Quick Start

Choose the integration that fits your workflow:

You are...What to useSetup
AI coding agent (Claude, Cursor, Copilot)MCP Servernpx shadcn@latest mcp init
Building custom toolingREST APICall https://smoothui.dev/api/v1/...
LLM / RAG pipelineMachine-readable catalogFetch https://smoothui.dev/llms-full.txt

For AI Agents

AI agents can discover, search, and install SmoothUI components through multiple channels.

The fastest way to give an AI assistant full access to SmoothUI. The shadcn MCP server works out of the box with SmoothUI's registry.

Terminal
npx shadcn@latest mcp init --client claude
Terminal
npx shadcn@latest mcp init --client cursor
Terminal
npx shadcn@latest mcp init --client vscode

Once configured, your AI assistant can discover, search, and install any SmoothUI component. See the full MCP Server guide for detailed setup and example prompts.

REST API

For agents that need structured JSON data, SmoothUI provides a public REST API with no authentication required.

Discover components
curl "https://smoothui.dev/api/v1/suggest?need=animated+tab+navigation"
Get component source
curl "https://smoothui.dev/api/v1/components/animated-tabs?include=source"

Key endpoints:

EndpointPurpose
GET /api/v1/componentsList all components with filtering
GET /api/v1/components/{name}Get component details and source
GET /api/v1/components/search?q=...Keyword search
GET /api/v1/suggest?need=...Natural-language component suggestions
GET /api/v1/blocksList pre-built page sections
GET /openapi.jsonFull OpenAPI 3.1 specification

See the full REST API reference for query parameters, response schemas, and error handling.

Machine-Readable Catalog

For LLM context windows and RAG pipelines, SmoothUI provides machine-readable component catalogs following the llms.txt convention:

URLDescription
/llms.txtCompact overview of all components
/llms-full.txtFull catalog with metadata, props, and usage hints
/llms-components.jsonStructured JSON catalog for programmatic use

Agent Workflow

Here is the recommended workflow for AI agents integrating SmoothUI components:

  1. Discover — Use /api/v1/suggest?need=... or the MCP server to find relevant components based on what the user needs.
  2. Inspect — Fetch full metadata and source with /api/v1/components/{name}?include=source to understand props and usage.
  3. Install — Use the installCommand from the metadata: npx shadcn@latest add @smoothui/{name}.
  4. Integrate — Use compositionHints and the source code to wire the component into the project correctly.

Learn More