Purpose
rnv-color-mcp is a remote MCP (Model Context Protocol) server that extracts color logic from the desktop suite and provides it as a single backend for different applications to call. It targets workflows that require precise color computation, letting the large language model handle choosing intents and tools while the server holds the exact values: either a parse succeeds or it is explicitly rejected, and colors are never guessed.
Main Capabilities
- Nine deterministic tools: covering format conversion, color harmonies, pigment mixing, WCAG contrast, CIEDE2000 color difference, and more.
- Flexible color input: each color input accepts hex (such as
#d2bc93), CSS names (such asred), RNV brand names (such asbrand gold、near-black), or saved palette references (such asSpring line, orSpring line:2for the second swatch). - Handling brand name and CSS name conflicts: brand names take precedence (such as
gold、blue、teal); usecss:blueto force the generic CSS name. - Physical pigment mixing: the mixing tool uses the Kubelka-Munk model, so mixtures darken like real pigments rather than averaging light.
- Palette management: named palettes can be saved and referenced, with persistent storage supported (configuration required).
- Authentication and scopes: implements OAuth 2.1 resource server authentication, with per-tool scopes (read covers read-only tools, write covers save_palette), supports RFC 9728 metadata and compliant 401 challenges. Public endpoints have authentication disabled by default.
- Registration and listing: published to the official MCP registry and listed in awesome-mcp-servers.
How to Use
- Connect: this is a hosted server, so no installation is required. In Claude: Settings → Connectors → Add custom connector, paste the server URL (see the official documentation:https://rnvizion-rnv-color-mcp.hf.space/mcp),认证留空,添加后在聊天中通过 + menu to enable.
- Example calls (natural language):
- "Save a palette named Spring line: near-black and brand gold."
- "Pull up my Spring line palette and give me three complementary outerwear accent colors."
- "Mix crimson and royalblue like real pigments."
- Self-hosting: the code is MIT licensed and can be rebuilt, hosted, and modified. Note: palette persistence requires setting
HF_TOKENand having a writable Dataset, otherwise saves only land in the container's local working copy and disappear with the container,save_palettereturnsdurable: falsealong withdurable_reason. Enabling authentication requires settingRNV_AUTH=1and a key source, and configuring the issuer, audience, and JWKS URI (RNV_AUTH_JWKS_URI). - Tech stack: Python, FastMCP (Streamable HTTP), Hugging Face Spaces (Docker), huggingface_hub (for persistent palette storage). The engine has no dependencies; color math, harmony, and text logic use only the standard library; only the server layer needs fastmcp.
Suitable Scenarios
- Designers or developers need precise color conversion, harmony, and contrast checking.
- Completing color workflows in natural language through Claude or other MCP clients, such as saving palettes, generating harmonies, and simulating pigment mixing.
- Scenarios that need to call the color computation engine as a backend service for multiple applications (such as fashion design applications).
- Multi-tenant or protected deployments that need OAuth 2.1 scope control.
Limitations
- The hosted server's public endpoints have authentication disabled by default; when self-deployed without authentication configured, it runs openly and is only suitable for public demos.
- Palette persistence depends on
HF_TOKENand a writable Dataset, otherwise it will not persist. - Any operation that needs to fetch external data requires outbound network access.
- Reconciliation and text output are currently covered only by smoke scripts, not yet included in regression testing.
- The brand color vocabulary is mirrored from RNVizion/rnv-brand, compared against upstream daily but not used as a gate; identifiers match upstream, but the check compares values.
- Colors outside known names are rejected rather than guessed; tokens that cannot be verified are rejected with a reason.
- If a copy is served from another URL, it may be older, modified, or configured differently; the official specification endpoint is https://rnvizion-rnv-color-mcp.hf.space/mcp .
Other
- Author: Christian "RNVizion" Smith.
- The brand color vocabulary is located at
engine/brand_vocab.py, mirrored fromRNVizion/rnv-brandatengine/brand.py; related notes are inBRAND_COLORS.md. - The test suite runs in CI on every push, covering the token validation matrix and end-to-end scoped execution without credentials.