Search and install OriginUI components, with details fetched dynamically from the OriginUI JSON registry.
A Model Context Protocol (MCP) server that provides access to OriginUI components, enabling Claude Code agents to search, browse, and install OriginUI components seamlessly.
pnpm dlx shadcn@latest add
commandsTL;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?"
No installation needed! You can use the MCP server directly from the GitHub repository with npx.
git clone https://github.com/kelvinchng/origin-ui-mcp.git
cd origin-ui-mcp
npm install
npm run build
npm install -g origin-ui-mcp
Create or edit your Claude Code MCP configuration file at ~/.claude-code/mcp.json
:
{
"mcpServers": {
"origin-ui": {
"command": "npx",
"args": ["--yes", "github:kelvinchng/origin-ui-mcp"],
"env": {}
}
}
}
{
"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!
After adding the MCP configuration, restart Claude Code to load the OriginUI MCP server.
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.
Once integrated with Claude Code, you can ask questions like:
Claude Code will use the MCP server to provide accurate information and installation commands.
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:
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 IDReturns:
pnpm dlx shadcn@latest add https://originui.com/r/comp-163.json
get_component_preview
Get component preview with styling information and usage examples.
Parameters:
componentId
(string, required): Component IDget_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:
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// 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.json
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Start the MCP server
npm start
pnpm dlx shadcn@latest add
commands with correct URLsMIT License - see LICENSE file for details.
Tracks newly created Uniswap liquidity pools across nine blockchain networks, providing real-time data for DeFi analysts, traders, and developers.
Integrates with Ollama to run local large language models. Requires a running Ollama instance.
MCP server empowers LLMs to interact with JSON files efficiently. With JSON MCP, you can split, merge, etc.
An iOS mobile automation server using Appium and WebDriverAgent, built with clean architecture and SOLID principles.
Finds relevant code snippets, developer articles, and blog posts based on your queries.
An authentication-free, remote MCP server deployable on Cloudflare Workers or locally via npm.
Interact with your crash reporting and real using monitoring data on your Raygun account
Execute developer-defined bash scripts in a Dockerized environment for coding agents.
A tool server for integrating Dify Workflows via the Model Context Protocol (MCP).
Share code context with LLMs via Model Context Protocol or clipboard.