- Home
- MCP servers
- Color Converter
Color Converter
- typescript
0
GitHub Stars
typescript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"bennyzen-mcp-accessibility-checker": {
"command": "npx",
"args": [
"-y",
"mcp-color-convert@latest"
]
}
}
}You can run and use the Color Converter MCP server to perform color format conversions, manipulations, analysis, and accessibility checks within your MCP-enabled development workflow. It provides a complete color toolkit that integrates with your AI coding agents to streamline design system work, web development, data visualization, and accessibility compliance using perceptual color spaces.
How to use
You will connect an MCP client to the Color Converter server using a standard MCP transport. The server exposes a set of tools you can invoke from your agent to convert colors between formats, adjust color properties, analyze accessibility, generate palettes, and more. Use natural language prompts or structured tool calls to perform tasks such as converting a color to OkLCH, lightening a color, or checking WCAG contrast against a background.
How to install
Prerequisites: you need Node.js 18+ installed on your machine. You will run the server locally via a CLI command that installs the package on demand if needed.
# Quick install and run using the MCP client integration
npx -y mcp-color-convert@latest
Additional setup and usage notes
To use this MCP server with your agent, configure the MCP client to launch the server as a stdio transport. The following configuration shows how to set the color converter as a local, self-installing MCP server. This keeps the server ready for inquiries like converting colors, generating palettes, and analyzing accessibility.
{
"servers": [
{
"name": "color-converter",
"description": "AI-powered color conversion, manipulation, analysis, and accessibility tools for design systems",
"transport": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-color-convert@latest"]
}
}
]
}
Security and maintenance
The server relies on your MCP client to manage the lifecycle. Ensure you restart your MCP client after configuration changes. Regularly update the mcp-color-convert package to keep features and compatibility current.
Troubleshooting
If the server fails to start or respond, verify Node.js 18+ is installed, clear caches if needed, and re-install dependencies. Ensure the MCP client is configured to launch the server correctly and that the path to the npx command is accessible.
# Example: verify server command by attempting to start the process directly
node -e "console.log('ready')" # should start with a waiting state in the MCP client
Notes
This server supports a broad set of color formats and tools for conversion, manipulation, analysis, and accessibility. You can convert between HEX, RGB(A), HSL(A), OkLCH, and OkLab spaces, preserve or drop alpha depending on the target format, and perform actions like lightening, darkening, saturating, rotating hue, and comparing contrast.
Available tools
convert
Universal color format converter between supported formats including hex, rgb, rgba, hsl, hsla, oklch, and oklab with alpha preservation across alpha formats.
lighten
Increase the lightness of a color by a percentage amount.
darken
Decrease the lightness of a color by a percentage amount.
saturate
Increase color saturation/intensity by a percentage amount.
desaturate
Decrease color saturation/intensity by a percentage amount.
invert
Create the complementary color by rotating hue by 180 degrees.
grayscale
Convert a color to grayscale using perceptual OkLCH.
rotate
Rotate the hue around the color wheel by a number of degrees.
luminance
Compute WCAG relative luminance on a 0-1 scale.
chroma
Evaluate color intensity/purity on a 0-1 scale.
opacity
Extract alpha/opacity value from a color that supports transparency.
name
Return a common color name or hex if unnamed.
palette
Generate a 6-color harmonious palette from a base color.
scheme
Generate color harmonies such as complementary or triadic schemes.
swatch
Create an 11-step design system swatch (50-950).
random
Generate a random color in a specified format.
contrast
Calculate WCAG contrast ratio between two colors.
compare
Full WCAG compliance analysis with recommendations.
text_color
Suggest optimal text color (black or white) for a given background.
is_valid_color
Validate whether a color string can be parsed.