mcp-server-cs-ui-library
v1.0.0
Published
MCP server for ContentStudio UI Library documentation
Maintainers
Readme
ContentStudio UI Library MCP Server
An MCP (Model Context Protocol) server that provides access to the ContentStudio UI Library documentation.
Features
- 📚 Get detailed component documentation
- 🔍 Search for components by keyword
- 📋 List all available components
- 🚀 Easy integration with Claude Desktop and other MCP clients
Installation
From NPM (Recommended)
npm install -g mcp-server-cs-ui-libraryFrom Source
git clone https://github.com/contentstudio/mcp-server-cs-ui-library.git
cd mcp-server-cs-ui-library
npm install
npm run buildUsage
With Claude Desktop
Add this to your Claude Desktop configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"cs-ui-library": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-cs-ui-library/dist/index.js"]
}
}
}Or if installed globally:
{
"mcpServers": {
"cs-ui-library": {
"command": "mcp-server-cs-ui-library"
}
}
}With Cline or Other MCP Clients
Add the server configuration to your MCP client's settings following their specific documentation.
Available Tools
get_component_doc
Get detailed documentation for a specific component.
Example:
Get documentation for the Button componentlist_components
List all available components in the library.
Example:
Show me all available CS UI componentssearch_components
Search for components by keyword or functionality.
Example:
Search for input componentsSupported Components
The server provides documentation for components including:
- button
- input
- card
- modal
- dropdown
- tabs
- accordion
- avatar
- badge
- checkbox
- radio
- select
- switch
- textarea
- tooltip
- alert
- dialog
- popover
- progress
- slider
- spinner
- table
- toast
...and more!
Development
# Install dependencies
npm install
# Build the project
npm run build
# Watch mode for development
npm run watch
# Run in development mode
npm run devCustomization
To customize the component list or URLs, edit the COMPONENTS array and BASE_URL in src/index.ts.
If your documentation site has a different structure, update the parseComponentDoc method selectors to match your HTML structure.
Troubleshooting
Components not loading
- Check that the base URL is correct
- Verify the component name is in the supported list
- Check network connectivity
- View the component URL directly in a browser
Configuration not working
- Ensure the path to the server is absolute
- Restart Claude Desktop after configuration changes
- Check Claude Desktop logs for errors
License
MIT
Links
- Documentation Site: https://cs-ui-library.netlify.app/
- MCP Documentation: https://modelcontextprotocol.io/
