@htetoowaiyan/colors-mcp-server
v1.1.0
Published
A simple color utility MCP server for frontend developers — convert, mix, adjust, and analyze colors.
Maintainers
Readme
🎨 Colors MCP Server
A simple color utility MCP server for frontend developers. Convert, mix, adjust, and analyze colors right from your AI-powered editor.
This is a personal project I built to learn how to create MCP servers. I needed these color utilities in my own development workflow, so I made it myself. There are other feature-rich color MCP servers out there — this one is intentionally simple and straightforward.
Tools
| Tool | Description |
|------|-------------|
| colors_convert | Convert a color to a different color space |
| colors_batch_convert | Convert multiple colors to a target color space at once |
| colors_parse | Parse and validate a color string |
| colors_adjust | Adjust color properties (lightness, chroma, hue) |
| colors_mix | Mix two colors with perceptual interpolation |
| colors_scale | Generate a perceptually uniform color scale |
| colors_difference | Calculate color difference (Delta E) between two colors |
| colors_contrast | Check WCAG contrast ratio between foreground and background colors |
Setup
Add the server to your MCP client config (e.g. Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"colors": {
"command": "npx",
"args": ["-y", "@htetoowaiyan/colors-mcp-server"]
}
}
}Development
git clone https://github.com/HtetOoWaiYan/colors-mcp-server.git
cd colors-mcp-server
npm installnpm run dev # Run with tsx (hot reload)
npm run build # Build for production
npm test # Run tests
npm run test:watch # Run tests in watch modeBuilt With
- Model Context Protocol SDK — MCP server framework
- Culori — Color conversion and manipulation
- Zod — Input validation
- Vitest — Testing
- Biome — Linting & formatting
