color-space
Lets your AI agent convert colors between 221 color spaces using tested formulas instead of guessing the math.
393 stars on GitHubby colorjsLicense CC0-1.0Updated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add color-space -- npx -y color-space mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Convert #ff8000 to oklch and give me the CSS.
Write a GLSL function that converts sRGB to OKLab.
What it is
color-space is a color library with an MCP server. A color goes in as a CSS string or channel values, and the agent gets back verified conversions, gamut checks, shader code, LUT files and ICC profiles. Formulas are tested against cited sources.
What it can do
convert: convert a color between spacesgamut: check a color against a gamutcss: work with CSS color stringsspaceandspaces: look up color space detailscube: make a .cube LUT fileshader: write the conversion as GLSL, WGSL, HLSL or MSLicc: build an ICC profilecode: give the JavaScript call for a conversion
When to use
- βΊWhen you need to turn a hex color into OKLCH or another CSS format.
- βΊWhen you want shader code that converts between color spaces.
- βΊWhen you want a LUT file for a camera log format in a video editor.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
better-colorsHelps your agent convert, choose and check colors for a web interface, including OKLCH palettes, contrast and dark mode.better-colorsBuilds and checks color systems by generating palettes, naming tokens, converting formats and measuring contrast.design-systemHelps your agent set up your brand colors, fonts and style once, then apply them to every document conversion, with a contrast check.Frequently asked questions
Is it free and open source?
Yes. It is an open collection published on npm. A LICENSE file is linked in the readme.
Do I need an API key?
No, it runs locally with Node.js.
Which colors can I give it?
Any CSS string such as #ff8000, oklch(0.7 0.1 50) or rebeccapurple, or channel values.
Can it run over HTTP?
Yes, with npx -y color-space mcp --http 8787 on localhost, or hosted in a Worker, Deno or Bun.
Is there a Claude Code plugin?
Yes, it includes the server plus a skill, installed through the plugin marketplace.
How is accuracy checked?
The readme says formulas are tested against cited sources and ships a conformance.json file of reference conversions.
If it does not work
- βΊCheck that Node.js is installed so npx can run the package.
- βΊFor HLSL or MSL output, install the optional naga-wasm package, which asks for Node 24.12 or newer.
- βΊRestart your MCP client after you add the config.
5 new skills a week. 1 minute to read.