home / mcp / yc-css-ui mcp server
Provides automated CSS analysis, repair suggestions, and performance optimization via an MCP server for CSS issues and improvements.
Configuration
View docs{
"mcpServers": {
"hiyco-yc-css-ui-mcp": {
"command": "npx",
"args": [
"@yc-css-ui/server"
]
}
}
}You have a dedicated MCP server for YC-CSS-UI that analyzes CSS snippets, identifies issues, and offers AI-driven repair suggestions and performance optimization. This server is designed to help you integrate automated CSS analysis into your development workflow and Claude Code alongside real-time debugging and cross-browser checks.
Set up your MCP client to communicate with the YC-CSS-UI MCP server, then analyze CSS, receive remediation ideas, and apply fixes or optimizations in your project. You can run the server locally or connect to a remote instance via the provided MCP entry. Use the analyze results to drive automated refactors or guide manual improvements.
Key actions you can perform with the MCP server include analyzing CSS to surface issues, getting automatic repair recommendations, and optimizing CSS performance. You can also use it to verify cross-browser compatibility and accessibility concerns as part of your workflow.
Prerequisites you need before getting started:
Install and run the MCP server following the flow shown here to get a development environment running.
# Clone the MCP server repository
git clone https://github.com/yc-css-ui/yc-css-ui-mcp.git
cd yc-css-ui-mcp
# Install dependencies
yarn install
# Build all packages
yarn build
# Run tests
yarn test
# Start in development mode
yarn devConfigure the MCP client to connect to the YC-CSS-UI MCP server. The following configuration establishes a stdio-based MCP connection using npx to launch the server package.
{
"mcp_servers": {
"yc-css-ui": {
"command": "npx",
"args": ["@yc-css-ui/server"]
}
}
}1) Detect a Flexbox issue and receive a suggested fix (e.g., add a minimum height to a flex container).
/* Problematic CSS */
.navbar {
display: flex;
align-items: center; /* ⚠️ warning: container lacks explicit height */
}
/* Suggested fix from the MCP server */
.navbar {
display: flex;
align-items: center;
min-height: 60px; /* ✅ explicit height */
}Run tests, build, and start the development server as described in the project setup to ensure everything works in your environment.
# Run all tests
yarn test
# Run tests for a single package
yarn workspace @yc-css-ui/core test
# Run tests and generate coverage report
yarn test --coverageKeep your Node.js version aligned with the prerequisites to avoid compatibility issues. When you develop against the MCP server, prefer using the stdio configuration that directly launches the server with npx as shown above.
Analyzes CSS code to surface layout, performance, compatibility, and accessibility issues and returns a summary with detailed issue messages.