# Cosmetic Shade Distance AI Agent Connect

> Cosmetic Shade Distance MCP provides the mathematical tools needed to calculate the exact distance between RGB color values. Your AI client uses these tools to compare skin tones against product catalogs, rank shade options, and ensure all color data meets strict industry standards through Euclidean distance calculations.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_qPEV9OYEbu19PY8TcQMANZZpxrC2BwALNXCWeAe5/ai-agent-connect
- **Tags:** rgb, shade-matching, color-distance, cosmetic-science, euclidean-distance

## Description

You can now give your AI agent the ability to handle complex color math for cosmetic formulation and shade matching. Instead of guessing how close a foundation shade is to a specific skin tone, you use this MCP to calculate the exact Euclidean distance between RGB values. This removes the guesswork from color selection. 

When you're working with large product catalogs, your agent can scan through hundreds of entries to find the single best match for a target color. If you need to evaluate a new batch of pigments, you can run multiple comparisons at once to see how they rank against your standard. It also includes a way to check that your color data is actually valid and follows the specific requirements of the cosmetic industry. It's a direct way to bring mathematical precision to color science workflows within your existing AI environment.

## Tools

### calculate_rgb_distance
This tool calculates the mathematical difference between two specific RGB color values.

### find_closest_shade
This tool searches through a provided collection of cosmetic shades to identify the one most similar to your target color.

### validate_color_integrity
This tool checks that a set of color data follows strict cosmetic industry standards.

### batch_compare_shades
This tool compares one target color against a list of multiple potential shade options to see how they stack up.

## Prompt Examples

**Prompt:** 
```
What is the distance between RGB(255, 0, 0) and RGB(0, 255, 0)?
```

**Response:** 
```
The Euclidean distance between the two colors is approximately 360.62.
```

**Prompt:** 
```
Find the closest shade to RGB(128, 128, 128) in this catalog: [{"id": "shade1", "rgb": {"r": 130, "g": 130, "b": 130}}, {"id": "shade2", "rgb": {"r": 200, "g": 200, "b": 200}]
```

**Response:** 
```
The closest shade is shade1 with a distance of 3.46 and a similarity score of 0.99.
```

**Prompt:** 
```
Rank these colors by similarity to RGB(255, 255, 255): RGB(250, 250, 250), RGB(0, 0, 0), RGB(100, 100, 100)
```

**Response:** 
```
The ranked order of similarity is: 1. RGB(250, 250, 250), 2. RGB(100, 100, 100), 3. RGB(0, 0, 0).
```

## Capabilities

### Euclidean Distance Calculation
Your agent uses this to find the exact numerical difference between two RGB colors.

### Catalog Searching
Your agent scans through shade libraries to find the best possible match for a user.

### Batch Ranking
Your agent compares one color against many to create a ranked list of similarity.

### Data Validation
Your agent checks color datasets to ensure they meet industry-specific requirements.

## Use Cases

### Skin Tone Matching
Your agent compares a user's skin tone RGB values against a foundation catalog to find the closest match.

### Batch Quality Control
You use the tool to check if a new batch of pigment matches the original target shade.

### Catalog Organization
Your agent ranks an entire product line by similarity to a specific color profile.

### Data Integrity Audits
You run validation checks to make sure your color database follows industry rules.

## Benefits

- Replaces manual color comparison with Euclidean distance math.
- Automates the process of finding the best match in large shade catalogs.
- Ensures color data stays within industry standards through automated validation.
- Ranks multiple color options simultaneously for faster decision making.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to color math tools.

1. Connect the MCP to your client like Claude or Cursor via Vinkius.
2. Provide your agent with RGB color data or a shade catalog.
3. Ask your agent to perform a specific task like finding a match or calculating distance.
4. The agent executes the corresponding tool to get a precise mathematical result.

## Frequently Asked Questions

**What math does this MCP use for color distance?**
It uses Euclidean distance to calculate the difference between RGB color values.

**Can I use this with my existing AI client?**
Yes, you can connect this MCP to any compatible client like Claude, Cursor, or Windsurf.

**How does it help with shade matching?**
It allows your agent to search through catalogs and find the shade with the lowest mathematical distance to a target color.

**Does it support batch operations?**
Yes, the batch_compare_shades tool lets you compare one color against many options at once.

**Is there a way to check if my color data is correct?**
Yes, the validate_color_integrity tool checks that your data meets cosmetic industry standards.
