color-space — Claude Code MCP server: what it does, how to install
This MCP server converts values across 221 color spaces and gives agents tools for CSS colors, gamut checks, LUTs, ICC data, and shaders.
claude mcp add color-space -- npx -y color-spaceWhat color-space does
color-space exposes the convert, gamut, css, space, spaces, cube, shader, icc, and code tools to an agent. They accept CSS strings such as #ff8000 or channel values, then return color-space conversions and related data. The collection covers 221 color spaces.
The shader tool writes conversion code for GLSL, WGSL, HLSL, or MSL. The code tool returns a JavaScript call alongside its verified color-science equivalent. Other tools handle gamut checks, CSS parsing and formatting, LUTs, and ICC profiles. The launch command relies on npx, so that command must work in the environment.
What it helps with
- convert a color between CSS color spaces
- check whether a color fits a target gamut
- generate GLSL or WGSL conversion code
- create a LUT or ICC color profile
Example prompts for the agent
- Convert
#ff8000from sRGB tooklchand show the result. - Check whether
oklch(0.7 0.1 50)is inside the sRGB gamut. - Generate GLSL code for converting
rgbtooklch.
How to install color-space
Platform CLI
claude mcp add color-space -- npx -y color-spacePlatform CLI
codex mcp add color-space -- npx -y color-spaceConfig file
{
"mcpServers": {
"color-space": {
"command": "npx",
"args": [
"-y",
"color-space"
]
}
}
}Config file
{
"servers": {
"color-space": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"color-space"
]
}
}
}Platform CLI
gemini mcp add color-space npx -y color-spaceStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about color-space
How do I install color-space in Claude Code?
Run claude mcp add color-space -- npx -y color-space. Claude Code can then start the color-space MCP server.
What does color-space do?
It converts values across 221 color spaces and gives agents tools for CSS colors, gamut checks, LUTs, ICC profiles, and shader code.
Which tools does color-space provide?
It provides convert, gamut, css, space, spaces, cube, shader, icc, and code. The tools accept CSS strings or channel values.