Color Engine MCP logo

Color Engine MCP

In-memory MCP tools for CSS color parsing, conversion, contrast checks, gamut mapping, ramps, and contrast-target solving.

Install Color Engine MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "color-engine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "color-engine-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 6 tools correctly ().

Overview

The color-engine-mcp MCP server provides six in-memory CSS color utilities for parsing, conversion, contrast analysis, gamut mapping, ramp generation, and contrast-target solving. It runs as a standard stdio server launched with Node.js and npx, with no network access or filesystem writes. Use it when an MCP-compatible agent needs deterministic color calculations, accessibility checks, or design-token-oriented color output.

Use cases

  • Parse CSS colors and inspect their OKLCH and sRGB gamut status
  • Convert colors between hex, RGB, HSL, and OKLCH formats
  • Check WCAG and optional APCA contrast for foreground/background pairs
  • Generate tint-to-shade ramps with contrast and design-token data
  • Find foreground colors that meet a requested contrast ratio

Key features

  • CSS Color 4 input parsing
  • Hex, RGB, HSL, and OKLCH conversion
  • WCAG 2.1 and optional APCA contrast analysis
  • Perceptual OKLCH gamut mapping
  • Tint-to-shade ramp generation
  • WCAG contrast-target solving

Tools6

What Color Engine MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/21 checks healthy over the last 111d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Handles credentials · 1Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age142 days
Maintainers1

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · color-engine-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads250Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.

How Color Engine MCP works

What color-engine-mcp MCP server does

The color-engine-mcp MCP server exposes six CSS color utilities through MCP:

  • parse_color reads a CSS color and returns hexadecimal, sRGB, OKLCH, and gamut information.
  • convert_color produces a canonical hex, RGB, HSL, or OKLCH string.
  • contrast calculates WCAG 2.1 contrast and its AA/AAA tier flags, with optional APCA Lc output.
  • gamut_map brings wide-gamut colors into sRGB by reducing OKLCH chroma.
  • generate_ramp creates tint-to-shade ramps, including contrast data and optional design-token output.
  • solve_for_contrast searches for a foreground color that satisfies a requested WCAG contrast target against a background.

All calculations are performed in memory. The server does not make network requests or write files, making it suitable for agents that need color calculations without access to external services.

How it works

The color-engine-mcp MCP server uses a shared parsing boundary for all six utilities. Inputs may include named CSS colors, short or long hex values, rgb(), hsl(), oklch(), and several CSS Color 4 spaces such as Display-P3, Lab, LCH, OKLab, HWB, Rec. 2020, A98 RGB, and XYZ-D65.

Whitespace around an input is removed before parsing. Legacy hex, RGB, and HSL channels are clamped according to CSS Color 4 rules, while values in other color spaces remain raw so that gamut mapping can process them. CSS none channels become zero. Inputs longer than 256 characters are rejected, and extremely large component magnitudes can trigger a component-range error.

Parsed results report sRGB-clamped RGB and hexadecimal values alongside raw OKLCH data. The inGamut result indicates whether the source fits within sRGB. Conversion to OKLCH preserves the raw color, whereas hex, RGB, and HSL conversions use the sRGB-clamped projection.

Setup and configuration

Node.js 20 or newer is required. The npm package provides a color-engine-mcp executable, so clients can launch it without cloning or building the repository:

Terminal
npx -y color-engine-mcp

For Claude Code, register it with:

Terminal
claude mcp add color-engine -- npx -y color-engine-mcp

JSON-configured clients generally use this server entry:

config.json
{
  "mcpServers": {
    "color-engine": {
      "command": "npx",
      "args": ["-y", "color-engine-mcp"]
    }
  }
}

The server uses MCP's stdio transport and the tools primitive. Claude Desktop uses claude_desktop_config.json; Cursor uses .cursor/mcp.json or its global equivalent; VS Code uses .vscode/mcp.json with servers as the top-level key; and Windsurf uses ~/.codeium/windsurf/mcp_config.json. Zed, JetBrains, and custom MCP clients use their own registration locations.

Tools and capabilities

Use contrast for opaque foreground and background colors. It rejects translucent inputs because calculating their effective color requires a known backdrop. The other utilities accept translucent input but ignore alpha during computation. This means an alpha-bearing color can be parsed or converted, but it is not carried into output.

The contrast tool treats its first color as the text or foreground for APCA and the second as the background. generate_ramp supports per-swatch contrast information and design-token output, while solve_for_contrast is intended for finding an accessible foreground rather than merely measuring an existing pair.

The package is licensed under MIT and is listed in the official MCP Registry as io.github.aimsise/color-engine-mcp.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Color Engine MCP

color-engine-mcp is an MCP server that connects AI agents to six in-memory CSS color tools: parsing, format conversion, WCAG/APCA contrast analysis, gamut mapping, ramp generation, and contrast-target solving. It runs over standard stdio with Node.js and performs no network I/O or filesystem writes.

Install it by configuring an MCP client to run `npx -y color-engine-mcp`; Node.js 20 or newer is required. Claude Code can register it with `claude mcp add color-engine -- npx -y color-engine-mcp`, while JSON-configured clients use the command and argument separately.

Yes, color-engine-mcp works with Cursor as a standard stdio MCP server. Add its `npx` command and `-y color-engine-mcp` argument to `.cursor/mcp.json` for a project or to `~/.cursor/mcp.json` for a global configuration.

No, its contrast and contrast-solving tools reject translucent colors because the backdrop is unknown. Other tools accept alpha-bearing inputs but ignore alpha and calculate with the opaque color.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewColor Engine MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/color-engine-mcp?style=directory)](https://allmcps.com/mcp/color-engine-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/color-engine-mcp"><img src="https://allmcps.com/api/badge/color-engine-mcp?style=directory" alt="Color Engine MCP on AllMCPs" /></a>