🎨 颜色MCP服务器
](https://www.npmjs.com/package/@htetoowaiyan/colors-mcp-server) 
一个简单的颜色工具 主控程序 前端开发人员的服务器。直接从您的AI代理转换、混合、调整和分析颜色。
此MCP服务器提供了一组简化的颜色实用程序,旨在提高效率和精度。它专注于为现代开发工作流程提供简单、轻量级的核心颜色操作工具。
工具
| 工具 | 说明 |
|---|---|
colors_convert | 将颜色转换为其他颜色空间 |
colors_batch_convert | 一次将多种颜色转换为目标颜色空间 |
colors_parse | 解析并验证颜色字符串 |
colors_adjust | 调整颜色属性(亮度、色度、色调) |
colors_batch_adjust | 批量调整多种颜色(亮度、色度、色调) |
colors_mix | 通过感知插值混合两种颜色 |
colors_scale | 生成感知均匀的色阶 |
colors_difference | 计算两种颜色之间的色差(ΔE) |
colors_batch_difference | 批量计算目标颜色的色差(ΔE) |
colors_contrast | 检查前景和背景颜色之间的WCAG对比度 |
colors_batch_contrast | 批量检查多个前景与背景的WCAG对比度 |
设置
将服务器添加到MCP客户端配置中(例如Claude Desktop、Cursor等):
{
"mcpServers": {
"colors": {
"command": "npx",
"args": ["-y", "@htetoowaiyan/colors-mcp-server"]
}
}
}发展
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 mode构建于
- 模型上下文协议SDK --MCP服务器框架
- 颜色 --颜色转换和操作
- 佐德 --输入验证
- Vitest --测试
- 生物群系 --装订和格式化
