Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
Six pure, in-memory CSS color tools: parse, convert, WCAG/APCA contrast, gamut map, ramps, solver
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"color-engine": {
"command": "npx",
"args": [
"-y",
"color-engine-mcp"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add color-engine -- npx -y color-engine-mcp프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"color-engine": {
"command": "npx",
"args": [
"-y",
"color-engine-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"color-engine": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"color-engine-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 aimsise 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.0.1)은 5개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
A Model Context Protocol (MCP) server providing 6 CSS color utilities: parsing, conversion, gamut mapping, WCAG contrast (with optional APCA), tint/shade ramp generation (with optional design-token output), and contrast-target solving. All tools operate purely in-memory — no network I/O, no filesystem writes.
| Tool | Purpose |
|---|---|
| parse_color | Parse any CSS color string into hex, RGB, OKLCH, and gamut info |
| convert_color | Convert a color into a canonical hex / rgb / hsl / oklch string |
| contrast | WCAG 2.1 contrast ratio and tier flags, with optional APCA Lc |
| gamut_map | Map wide-gamut colors into sRGB via perceptual OKLCH chroma reduction |
| generate_ramp | Tint-to-shade ramps with per-swatch contrast info and design-token output |
| solve_for_contrast | Find a foreground color that meets WCAG contrast targets against a background |
All JSON outputs shown in this README are genuine responses captured from the built server via the MCP Inspector CLI (
npx @modelcontextprotocol/inspector --cli).
Requires Node.js >= 20. The npm package exposes a color-engine-mcp bin, so no clone or build is needed — clients launch it via npx. This is a standard stdio MCP server using only the tools primitive, so any MCP-compatible client registers it the same way: point the client at the launch command, and the client spawns and manages the process itself.
For Claude Code, one command registers the server:
claude mcp add color-engine -- npx -y color-engine-mcp
(The default scope is the local project; add --scope user to register it for all your projects, or --scope project to write the shared .mcp.json.)
Most other JSON-configured clients accept this shape verbatim:
{
"mcpServers": { "color-engine": { "command": "npx", "args": ["-y", "color-engine-mcp"] } } }
Where the entry lives in a few common clients:
| Client | Config file |
|---|---|
| Claude Code | .mcp.json in the project root |
| Claude Desktop | claude_desktop_config.json (e.g. ~/Library/Application Support/Claude/ on macOS) |
| Cursor | .cursor/mcp.json (per-project) or ~/.cursor/mcp.json (global) |
| VS Code | .vscode/mcp.json — VS Code names the top-level key servers instead of mcpServers |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
Other clients (Zed, JetBrains, custom agents built on an MCP SDK, …) differ only in the file location and occasionally the top-level key name — see their MCP server registration docs.
Listed in the official MCP Registry as io.github.aimsise/color-engine-mcp.
Once connected, try asking your agent things like:
To run from a clone instead, see Development.
Every tool routes color strings through one shared parse boundary, so the rules below apply uniformly.
Accepted formats. Any CSS color string culori can parse, including named colors, hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb()/rgba(), hsl()/hsla(), and oklch() — plus the wide-gamut / CSS Color 4 formats:
color(display-p3 r g b)lab(L a b) / lch(L C h)oklab(L a b)hwb(h w b)color(rec2020 r g b)color(a98-rgb r g b)color(xyz-d65 x y z)A wide-gamut input outside sRGB parses fine and reports inGamut: false:
{ "input": "color(display-p3 1 0 0)" }
{
"hex": "#ff0000", "rgb": { "r": 255, "g": 0, "b": 0 }, "oklch": { "l": 0.6485740751442981, "c": 0.2994852863383699, "h": 28.958132730803953 }, "inGamut": false }
Whitespace. Leading/trailing whitespace is trimmed before parsing — " #ff0000 " parses as #ff0000.
CSS Color 4 channel clamping (legacy spaces only). Out-of-range channels in hex / rgb() / hsl() inputs are clamped at the parse boundary, per CSS Color 4: rgb(-50 0 0) behaves exactly as rgb(0 0 0), and hsl() saturation/lightness clamp likewise (hue wraps). Inputs in other modes (oklch(), lab(), color(display-p3 …), …) are not clamped — their out-of-gamut values flow through raw, which is what makes gamut_map useful.
`none` channels. CSS Color 4 none channels are normalized to 0 in all six tools — oklch(0.5 none 30) behaves exactly as oklch(0.5 0 30).
Component magnitude. A parseable component with an absurd magnitude (above 1e6, e.g. oklch(0.5 1e30 30)) is rejected with COMPONENT_OUT_OF_RANGE — two tools (gamut_map, solve_for_contrast) surface it differently; see the error codes table. Real out-of-gamut values are many orders of magnitude below this guard and are never affected.
Alpha policy. contrast and solve_for_contrast reject translucent colors — any explicit alpha < 1, including rgba()/hsla() functional alpha and 4-/8-digit hex (#00000080) — with ALPHA_UNSUPPORTED, because the effective color of a translucent layer depends on an unknown backdrop; composite over the backdrop first. All other tools accept translucent input and simply ignore the alpha channel (computations use the opaque color; no output ever carries an alpha component).
Length cap. Color strings longer than 256 characters (after trimming) are rejected with INPUT_TOO_LONG.
Parse any CSS color string and return hex, RGB, OKLCH, and gamut info.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | yes | Any CSS color string, e.g. "#ff0000", "red", "oklch(0.6 0.2 30)" |
Output for { "input": "#ff0000" }
{
"hex": "#ff0000", "rgb": { "r": 255, "g": 0, "b": 0 }, "oklch": { "l": 0.6279553639214311, "c": 0.2576833038053608, "h": 29.233880279627854 }, "inGamut": true }
The rgb channels are the sRGB-clamped 0–255 integer projection (consistent with hex). For an out-of-gamut input (e.g. a wide-gamut oklch(...)), the channels are clamped into [0, 255] rather than reporting raw out-of-range values — use the inGamut flag to detect that the input fell outside sRGB. The oklch block, by contrast, is the raw (lossless, unrounded) OKLCH of the input, and oklch.h is 0 for achromatic colors.
Convert a CSS color string into a canonical hex, rgb, hsl, or oklch format string.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | yes | Any CSS color string |
| to | string | yes | Target format: "hex", "rgb", "hsl", or "oklch" |
Output for { "input": "#ff0000", "to": "oklch" }
{ "result": "oklch(0.62796 0.25768 29.23)" }
Raw vs. clamped for out-of-gamut inputs
For a color that lies outside the sRGB gamut, the target formats diverge:
to: "oklch" returns the raw, lossless OKLCH triple, so an out-of-gamut color round-trips faithfully. E.g. { "input": "oklch(0.7 0.4 30)", "to": "oklch" } → "oklch(0.70000 0.40000 30.00)".to: "hex", "rgb", and "hsl" are all derived from the sRGB-clamped projection and report the in-gamut approximation. E.g. { "input": "oklch(0.7 0.4 30)", "to": "rgb" } → "rgb(255, 0, 0)". rgb channels are integers in [0, 255].(L/C are formatted to 5 decimal places and H to 2, which guarantees an exact hex round-trip across the full sRGB cube.)
Compute the WCAG 2.1 contrast ratio between two fully opaque CSS color strings and return tier flags. Optionally also computes the APCA Lc value (see APCA).
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| a | string | yes | First CSS color string (treated as the text/foreground for APCA), e.g. "#000000" |
| b | string | yes | Second CSS color string (treated as the background for APCA), e.g. "#ffffff" |
| apca | boolean | no | When true, additionally return the signed APCA-W3 apcaLc for text a over background b |
Output for { "a": "#000000", "b": "#ffffff" }
{
"ratio": 21, "aaNormal": true, "aaLarge": true, "aaaNormal": true, "aaaLarge": true }
ratio is the 2-decimal display value. The four tier booleans are derived from the unrounded raw ratio (so a near-boundary raw 4.4999, which displays as 4.50, still yields aaNormal: false).
WCAG 2.1 tier thresholds:
aaNormal / aaLarge require ratio ≥ 4.5 / ≥ 3.0aaaNormal / aaaLarge require ratio ≥ 7.0 / ≥ 4.5Errors. A string that fails to parse yields a parameter-named error — PARSE_FAILED: could not parse the foreground color for a, PARSE_FAILED: could not parse the background color for b. Translucent input yields ALPHA_UNSUPPORTED (see Alpha policy).
Pass apca: true to additionally get apcaLc — the signed APCA-W3 (SAPC-4g) lightness contrast Lc, rounded to 2 decimals, for text `a` over background `b` (the argument order matters for APCA, unlike the symmetric WCAG ratio). The sign encodes polarity: positive for dark text on a light background, negative for light text on a dark background; compare magnitudes with |Lc|.
{ "a": "#1a1a1a", "b": "#ffffff", "apca": true }
{ "ratio": 17.4, "aaNormal": true, "aaLarge": true, "aaaNormal": true, "aaaLarge": true, "apcaLc": 104.27 }
Reversing the pair flips the sign: { "a": "#ffffff", "b": "#1a1a1a", "apca": true } → "apcaLc": -106.55 (same WCAG ratio of 17.4, since the WCAG ratio is symmetric).
Commonly cited APCA guideline thresholds (by |Lc|):
| \ | Lc\ | Common guideline use | |
|---|---|---|---|
| 45 | Minimum for large/bold text | ||
| 60 | Minimum for other content text | ||
| 75 | Body text | ||
| 90 | Preferred body text |
Disclaimer: APCA is a candidate method for WCAG 3 and is not yet a normative WCAG standard — use the WCAG 2.1 tier flags for conformance claims.
Map any CSS color string into the sRGB gamut via perceptual OKLCH chroma reduction. Useful for converting wide-gamut colors (P3, Rec2020, arbitrary OKLCH) to displayable sRGB.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | yes | Any CSS color string, e.g. "oklch(0.6 0.4 30)" |
Output for { "input": "oklch(0.6 0.4 30)" }
{
"hex": "#f70000", "oklch": { "l": 0.6137129506655941, "c": 0.25183888824211537, "h": 29.233880279628004 }, "clamped": true }
clamped is true when the input was outside the sRGB gamut and had to be mapped. The returned oklch is the raw OKLCH of the mapped in-gamut result (chroma reduced perceptually), not of the original input.
Identity and idempotency. An input that is already inside the sRGB gamut is returned identically: clamped is false and hex is exactly the canonical hex of the input (e.g. { "input": "#3b82f6" } → { "hex": "#3b82f6", …, "clamped": false }). The tool is also idempotent: its own output hex is always in-gamut, so feeding a result back in takes the identity path and returns the identical hex.
G
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요