elij-ui-library-mcp
v1.0.0
Published
MCP server for discovering Elij UI components
Readme
Elij UI Library MCP
An MCP server that lets AI clients discover components, props, categories, and Storybook stories from the published Elij UI Library registry.
What it does
The server exposes three read-only tools:
list_components— list all components or filter by categorysearch_components— search names, categories, and descriptionsget_component— inspect one component's metadata and props
It uses the MCP stdio transport. MCP messages stay on stdout and diagnostic logs are written to stderr.
Quick start
Run the latest published version without installing globally:
npx -y elij-ui-library-mcpFor a reproducible setup, pin a version instead:
npx -y [email protected]The unpinned command is convenient for trying the latest release. Pinning is recommended for production or shared team configuration.
Configure an MCP Host
VS Code
Create or open .vscode/mcp.json in your workspace and add:
{
"servers": {
"elijUiLibrary": {
"type": "stdio",
"command": "npx",
"args": ["-y", "elij-ui-library-mcp"]
}
}
}You can replace the package argument with [email protected] when you need a fixed version. After saving, run MCP: List Servers from the Command Palette and start elijUiLibrary.
Claude Desktop and Cursor
Add this entry to the client's MCP configuration:
{
"mcpServers": {
"elij-ui-library": {
"command": "npx",
"args": ["-y", "elij-ui-library-mcp"]
}
}
}Restart the client after saving the configuration. If the client supports a local executable, the equivalent command is:
elij-ui-library-mcpVerify the connection
After starting the server, confirm that the Host discovers these tools:
list_components
search_components
get_componentThen try these prompts in the Host chat:
List all available Elij UI components.Find components suitable for a pricing card.Show me the props and Storybook story for EventCarousel.Search for components related to WhatsApp contact buttons.Tool examples
list_components
Use it to browse the registry:
List components in the content category.Optional input:
{ "category": "content" }search_components
Use it to find a component by concept:
Search for a component that supports event image carousels.Inputs include query, optional category, and limit from 1 to 50:
{
"query": "carousel",
"category": "content",
"limit": 10
}get_component
Use it when you need implementation details:
Get the import path, props, and Storybook story for WhatsAppButton.Input:
{ "name": "WhatsAppButton" }If the component does not exist, the server returns an MCP error response instead of silently returning an empty result.
Example AI-assisted workflow
1. Ask the Host to search for a suitable component.
2. Ask for its props and Storybook story.
3. Ask for an import example using the returned component name.
4. Check the Storybook story before adding it to your application.Example conversation:
User: Find a component for a pricing card.
AI: Card is suitable. I can show its props and Storybook story.
User: Show the props and import example.
AI: Import Card from "elij-ui-library" and use the returned props from the registry.Troubleshooting
Server not found
Check that Node.js and npm are available:
node --version
npm --versionThen test the package directly:
npx -y elij-ui-library-mcpNo tools discovered
Restart the MCP server from the Host, confirm the configuration uses elij-ui-library-mcp (not the CLI package), and inspect the Host's MCP output log.
Registry data is unavailable
The MCP package reads registry metadata from the published elij-ui-library dependency. Check npm connectivity and make sure the dependency version is available in the configured registry.
Local development
From the monorepo root:
corepack yarn workspace elij-ui-library-mcp build
corepack yarn workspace elij-ui-library-mcp testThe server is read-only and does not modify your application files.
