Skip to main content
Glama
rog0x

mcp-color-tools

by rog0x
README.md

# mcp-color-tools

MCP server providing color manipulation and design tools for AI agents.

## Tools

### color_convert

Convert a color between HEX, RGB, HSL, HSV, and CMYK. Accepts any format as input and returns all formats.

```json
{ "color": "#ff6b35" }
{ "color": "rgb(255, 107, 53)" }
{ "color": "hsl(16, 100%, 60%)" }
{ "color": "hsv(16, 79%, 100%)" }
{ "color": "cmyk(0, 58, 79, 0)" }
```

### palette_generate

Generate a color palette from a base color.

**Types:** complementary, analogous, triadic, split-complementary, monochromatic

```json
{ "color": "#ff6b35", "type": "triadic" }
```

### contrast_check

Check WCAG contrast ratio between two colors. Reports AA/AAA compliance for normal text, large text, and UI components.

```json
{ "color1": "#ffffff", "color2": "#333333" }
```

### color_mix

Mix, blend, lighten, darken, saturate, or desaturate colors.

```json
{ "operation": "mix", "colors": ["#ff0000", "#0000ff"], "weights": [2, 1] }
{ "operation": "blend", "colors": ["#ff0000", "#0000ff"], "ratio": 0.3 }
{ "operation": "lighten", "colors": ["#ff6b35"], "amount": 20 }
{ "operation": "darken", "colors": ["#ff6b35"], "amount": 15 }
{ "operation": "saturate", "colors": ["#888888"], "amount": 30 }
{ "operation": "desaturate", "colors": ["#ff6b35"], "amount": 25 }
```

### css_gradient

Generate CSS gradient code with direction, stops, and browser prefixes.

```json
{
  "type": "linear",
  "colors": ["#ff6b35", "#ffd700", "#00bcd4"],
  "direction": "135deg"
}
```

```json
{
  "type": "radial",
  "colors": [
    { "color": "#ff6b35", "position": 0 },
    { "color": "#ffd700", "position": 50 },
    { "color": "#00bcd4", "position": 100 }
  ],
  "direction": "circle at center"
}
```

## Setup

```bash
npm install
npm run build
```

## Claude Desktop Configuration

```json
{
  "mcpServers": {
    "color-tools": {
      "command": "node",
      "args": ["path/to/mcp-color-tools/dist/index.js"]
    }
  }
}
```

## License

MIT

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: converting formats, generating palettes, checking contrast, mixing/blending colors, and generating gradients. No two tools overlap in function, so an agent can unambiguously select the right one for a given task.

Naming Consistency5/5

All tool names follow a consistent snake_case pattern that combines an action verb or descriptive prefix with a clear object (e.g., color_convert, palette_generate, contrast_check). The naming is uniform and intuitive, with no mixed conventions or vague verbs.

Tool Count5/5

The set of 5 tools is perfectly scoped for a color utility server. Each tool covers a distinct major category of color operations without redundancy or bloat, making the surface easy to navigate.

Completeness5/5

The tools cover the full spectrum of common color workflows: conversion between all standard formats, palette creation from multiple schemes, WCAG contrast analysis, comprehensive color manipulation (mixing, lighten/darken, etc.), and CSS gradient generation. There are no obvious missing operations that would hinder typical use cases.

Maintenance

ActivityInactive
ResponsivenessNo issues