Colors Le logo

Colors Le

Extracts colors from source content with notation, positions, deduplication, and truncation metadata through one MCP tool.

Install Colors Le

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": {
    "colors-le": {
      "command": "npx",
      "args": [
        "-y",
        "colors-le-mcp"
      ]
    }
  }
}

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

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

colors-le MCP server lets MCP-compatible agents extract color values from stylesheet, markup, code, configuration, and text content. Its stdio interface exposes an `extract_colors` tool that returns each color's notation plus 1-based line and column positions. Callers can specify a format, filename, deduplication behavior, and result limit, with results capped at 500 by default. Reach for it when an agent needs to inspect palettes or design tokens without reading files or making network requests.

Use cases

  • Extract colors from source content for an AI agent
  • Audit design tokens across supported file formats
  • Locate color literals by line and column
  • Detect repeated or differently written palette values

Key features

  • Recognizes CSS, code, markup, configuration, and text colors
  • Reports original notation with 1-based positions
  • Supports deduplication and configurable result limits
  • Handles CSS Color 4 syntax and named colors
  • Runs over MCP stdio without files, network access, or API keys

Security & health

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

ActiveLast checked 1d ago

Recent health check succeeded.

10/10 checks healthy over the last 55d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · colors-le-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.

How Colors Le works

What colors-le does

colors-le MCP server gives an AI agent a focused color-extraction tool for source content. It recognizes hexadecimal, functional CSS color syntax, CSS Color 4 forms, and named colors across stylesheets, markup, programming languages, configuration files, Markdown, and plain text.

The result identifies each match by its original spelling and reports a 1-based line and column. Supported input formats include CSS, SCSS, LESS, Stylus, HTML, JavaScript, TypeScript, SVG, XML, JSON, YAML, TOML, Markdown, and arbitrary text. Language-specific parsing determines where colors are valid; unsupported language IDs fall back to raw-text scanning and are marked as unknown in metadata.

How it works

The server communicates over MCP using stdio. An agent passes document content to extract_colors; the server analyzes that content and returns structured matches. It does not open files, inspect a workspace, or make outbound network requests, so the host or agent is responsible for supplying the text to scan.

The tool accepts optional format and filename values, along with deduplication and a maximum-result setting. Results are limited to 500 by default, and the response includes meta.truncated when the limit prevents all matches from being returned.

Parsing covers short and long hexadecimal forms, comma-separated and modern space-separated rgb() and hsl() syntax, alpha channels, hwb(), lab(), lch(), oklab(), oklch(), color(), and CSS named colors such as rebeccapurple and transparent. Color positions remain tied to the original content, including literals that span multiple lines.

Setup and configuration

Install the published MCP package through npx and register it with an MCP host using a stdio command:

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

The server requires no environment variables, API key, or server-specific configuration. It can also be installed globally with npm and invoked as colors-le-mcp. A direct tools/list JSON-RPC request can verify that the process exposes extract_colors.

Claude Code can register it with claude mcp add colors-le -- npx -y colors-le-mcp. VS Code 1.101 and later can receive the tool through the Colors-LE extension's agent mode, while Cursor and Windsurf can point their MCP configuration at the same npx colors-le-mcp command.

Tools and capabilities

The server exposes one documented tool:

Recognition is context-aware for common formats. For example, HTML and SVG attributes such as fill and stroke are inspected, JavaScript and TypeScript strings are supported, and JSON, YAML, and TOML can be scanned for design-token values. Comments are excluded, while comment-like text inside strings remains part of the string.

Limitations and notes

Relative color syntax, calc() and var() expressions inside color calls are not parsed. Colors outside the sRGB gamut are clipped when converted. Hexadecimal text inside JavaScript strings is still eligible for matching, including URL fragments. Stylus values without a : or = only provide hexadecimal and functional matches, not named colors.

Raw-text scanning treats a value segment as continuing to the end of its line. As a result, a named color can be missed when multiple tokens share one line. In Markdown and plain text, three- and four-digit hexadecimal values must contain a letter from a through f to avoid treating issue references such as #250 as colors.

Reviews

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

Frequently Asked Questions about Colors Le

colors-le is an MCP server that connects MCP-compatible AI agents to the Colors-LE color extraction engine. Its main tool, `extract_colors`, scans supplied stylesheet, code, markup, configuration, or text content and returns color notation with 1-based line and column positions, optional deduplication, and result limits.

Install it by registering `npx -y colors-le-mcp` as an MCP stdio server in your host configuration. You can also install the npm package globally and run `colors-le-mcp` directly. No environment variables, API key, or additional server configuration is required.

Yes, colors-le works with Cursor through either the Open VSX extension or the MCP server command. For agent access, configure Cursor to launch `npx colors-le-mcp`; the server exposes the `extract_colors` tool over stdio.

colors-le scans CSS, SCSS, LESS, Stylus, HTML, JavaScript, TypeScript, SVG, XML, JSON, YAML, TOML, Markdown, and plain text. Other language IDs are handled as raw text, with the input language reported as `unknown` metadata.

No, the MCP server only analyzes content supplied in the tool call. It reads no files and makes no network requests of its own, so an agent or host must provide the document content to `extract_colors`.

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 PreviewColors Le AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/colors-le?style=directory)](https://allmcps.com/mcp/colors-le)
HTML Embed
<a href="https://allmcps.com/mcp/colors-le"><img src="https://allmcps.com/api/badge/colors-le?style=directory" alt="Colors Le on AllMCPs" /></a>