OriginUI MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OriginUI MCP Server find payment components and show me how to install them"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OriginUI MCP Server
A Model Context Protocol (MCP) server that provides access to OriginUI components, enabling Claude Code agents to search, browse, and install OriginUI components seamlessly.
Features
Component Search: Search components by name, category, or tags
Component Details: Get comprehensive information about specific components
Installation Commands: Generate proper
pnpm dlx shadcn@latest addcommandsVisual Previews: Get component screenshots and visual descriptions to assess fit
Component Preview: View styling information and usage examples
Category Filtering: Browse components by category (buttons, inputs, forms, etc.)
Related MCP server: shadcn-ui MCP Server
🚀 Quick Start
TL;DR: Add this to your ~/.claude-code/mcp.json file:
{
"mcpServers": {
"origin-ui": {
"command": "npx",
"args": ["--yes", "github:kelvinchng/origin-ui-mcp"],
"env": {}
}
}
}Restart Claude Code and ask: "What OriginUI button components are available?"
Installation
Option 1: Use with npx (Recommended - No Cloning Required!)
No installation needed! You can use the MCP server directly from the GitHub repository with npx.
Option 2: Clone and Build Locally
git clone https://github.com/kelvinchng/origin-ui-mcp.git
cd origin-ui-mcp
npm install
npm run buildOption 3: Global Installation (Coming Soon)
npm install -g origin-ui-mcpClaude Code Integration
Step 1: Add to Claude Code MCP Configuration
Create or edit your Claude Code MCP configuration file at ~/.claude-code/mcp.json:
Option A: Using npx (Recommended)
{
"mcpServers": {
"origin-ui": {
"command": "npx",
"args": ["--yes", "github:kelvinchng/origin-ui-mcp"],
"env": {}
}
}
}Option B: Using local clone
{
"mcpServers": {
"origin-ui": {
"command": "node",
"args": ["/absolute/path/to/origin-ui-mcp/dist/index.js"],
"env": {}
}
}
}Note: With Option A (npx), no manual installation or path configuration is needed!
Step 2: Restart Claude Code
After adding the MCP configuration, restart Claude Code to load the OriginUI MCP server.
Step 3: Verify Integration
You can verify the integration is working by asking Claude Code:
"What OriginUI components are available for buttons?"Claude Code should now be able to search, describe, and provide installation commands for OriginUI components.
Usage Examples
Once integrated with Claude Code, you can ask questions like:
"Find me payment-related components"
"How do I install the button component?"
"What styling options does the card component have?"
"Show me all navigation components"
"I need a component for user input forms"
Claude Code will use the MCP server to provide accurate information and installation commands.
📸 Visual Component Assessment
One of the key features is the ability to get visual previews of components to help LLMs make better recommendations:
"Show me what the payment component looks like"
"Get a screenshot of the button component"
"I want to see the visual style of navigation components"The MCP server will provide:
Visual descriptions of component appearance
Links to live examples on OriginUI
Theme-specific information (light/dark modes)
Mobile responsiveness details
Use case recommendations based on visual style
Available Tools
search_components
Search for OriginUI components by name, category, or tags.
Parameters:
query(string, required): Search querycategory(string, optional): Filter by categorylimit(number, optional): Maximum results (default: 10)
Example:
search_components({
query: "payment",
category: "form",
limit: 5
})get_component_details
Get detailed information about a specific component.
Parameters:
componentId(string, required): Component ID (e.g., "comp-163")
Example:
get_component_details({
componentId: "comp-163"
})list_components
List all available components with basic information.
Parameters:
category(string, optional): Filter by categorylimit(number, optional): Maximum results (default: 50)
get_install_command
Get the installation command for a specific component.
Parameters:
componentId(string, required): Component ID
Returns:
pnpm dlx shadcn@latest add https://originui.com/r/comp-163.jsonget_component_preview
Get component preview with styling information and usage examples.
Parameters:
componentId(string, required): Component ID
get_component_screenshot
Get component visual preview to help assess if it fits your project.
Parameters:
componentId(string, required): Component IDtheme(string, optional): Theme preference ("light", "dark", "both")
Returns:
Visual descriptions of component appearance
Screenshots when available
Links to live examples
Use case recommendations
Installation instructions
Component Categories
button- Button componentsinput- Input and form controlsselect- Select and dropdown componentsnavbar- Navigation componentscard- Card and container componentsform- Form-related componentslayout- Layout componentsnavigation- Navigation elementsfeedback- Feedback and status componentsdata-display- Data display componentsoverlay- Modal and overlay componentstypography- Text and typography componentsmedia- Media components
Example Usage with Claude Code
// Search for button components
const buttons = await search_components({
query: "button",
category: "button",
limit: 10
});
// Get details for a specific component
const details = await get_component_details({
componentId: "comp-163"
});
// Get installation command
const installCmd = await get_install_command({
componentId: "comp-163"
});
// Get visual preview to assess fit
const screenshot = await get_component_screenshot({
componentId: "comp-163",
theme: "both"
});
// Install the component
// pnpm dlx shadcn@latest add https://originui.com/r/comp-163.jsonDevelopment
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Start the MCP server
npm startHow It Works
Component Discovery: The server maintains a registry of OriginUI components with metadata
Dynamic Fetching: Component details are fetched from OriginUI's JSON registry on demand
Caching: Components are cached for 5 minutes to improve performance
Installation: Generates proper
pnpm dlx shadcn@latest addcommands with correct URLs
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
MIT License - see LICENSE file for details.
Available Tools
7 toolsget_component_detailsB
Get detailed information about a specific OriginUI component
Inputs: componentId (required).
get_component_previewC
Get component preview information including styling and usage
Inputs: componentId (required).
get_component_screenshotC
Get component screenshot/visual preview to help assess if it fits the project
Inputs: componentId (required), theme.
get_install_commandB
Get the installation command for a specific component
Inputs: componentId (required).
get_registry_statsB
Get comprehensive statistics about the OriginUI component registry
Inputs: no named parameters.
list_componentsB
List all available OriginUI components with basic information
Inputs: category, limit.
search_componentsC
Search OriginUI components by name, category, or tags
Inputs: query (required), category, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Every tool has a clearly distinct purpose with no ambiguity: list_components and search_components handle discovery, get_component_details/preview/screenshot provide different types of component information, get_install_command gives installation instructions, and get_registry_stats offers registry-level data. The descriptions make it easy to differentiate between tools like get_component_details (detailed info) and get_component_preview (styling/usage).
All tools follow a consistent verb_noun pattern with snake_case throughout (e.g., get_component_details, list_components, search_components). The naming is predictable and readable, using clear verbs like 'get', 'list', and 'search' consistently across the toolset.
With 7 tools, this server is well-scoped for its purpose of managing a UI component registry. Each tool earns its place by covering distinct aspects: discovery (list/search), component inspection (details/preview/screenshot), installation (install_command), and registry analytics (stats). This count is neither too thin nor overwhelming.
The tool surface provides comprehensive coverage for the domain of a UI component registry, including discovery, inspection, and installation. Minor gaps exist, such as no tools for managing components (e.g., create/update/delete) or user-specific actions (e.g., favorites), but agents can work around this for core workflows like finding and using components.
Maintenance
Related MCP Connectors
Search, read and install ReUI shadcn components, examples, blocks and icons from your coding agent.
Search, read and install ndekoui React components, blocks and templates with the shadcn CLI.
Search shadcn registry items, read props and get exact install commands for React components.
Find, read and install shadcn components with Salesforce Lightning's look, for Radix and Base UI.
Related MCP Servers
- AlicenseAqualityDmaintenanceHelps 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.4519 npm60MIT
- AlicenseAqualityDmaintenanceProvides reference information for shadcn/ui components through a Model Context Protocol server that helps AI assistants access component documentation and examples.4519 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover, install, and generate code examples for shadcn/ui components, providing installation commands and usage examples for 37+ React UI components.MIT
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.415 npm4-