Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyDesign and media

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 spaces
  • gamut: check a color against a gamut
  • css: work with CSS color strings
  • space and spaces: look up color space details
  • cube: make a .cube LUT file
  • shader: write the conversion as GLSL, WGSL, HLSL or MSL
  • icc: build an ICC profile
  • code: 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

Node.js. Run it with npx -y color-space mcp. HLSL and MSL shader output needs the optional naga-wasm package.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.