INDIVIDUAL MCP TOOL
analyze_gradient_contrast
Sample a text color's contrast along a whole gradient: returns the minimum ratio, aa/ui/fail status, failing ranges, the worst point, a suggested scrim overlay to reach AA, and a `recommendedText` caption color (best black/white across the whole gradient).
LIVE ENDPOINT
https://palettesense.com/api/mcp
Connect to this endpoint to inspect the live schema for analyze_gradient_contrast and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Inferred read-only · medium confidence · heuristic, not a guarantee.
- No write-capable action terms were found; this is not proof that invocation has no side effects.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.palettesense]
url = "https://palettesense.com/api/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"palettesense": {
"type": "http",
"url": "https://palettesense.com/api/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: palettesense
Remote MCP URL: https://palettesense.com/api/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"palettesense": {
"url": "https://palettesense.com/api/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"palettesense": {
"type": "http",
"url": "https://palettesense.com/api/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "palettesense",
"transport": "streamable-http",
"url": "https://palettesense.com/api/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
check_contrast— Compute the WCAG contrast ratio between a foreground and background hex color and return pass/fail for the requested context/level plus a full matrix (normalText, largeText, uiElement at AA/AAA).check_contrast_batch— Check up to 50 foreground/background pairs in one call.search_colors— Search a large named-color dataset by color-name prefix, a full hex value (nearest named colors), or a hex prefix.generate_gradient_css— Turn a gradient definition into ready-to-paste CSS (background-image value, CSS custom property, Tailwind v4 @theme block), plus the encoded form and a shareable URL.decode_share_url— Parse the state encoded in a PaletteSense share URL (or its g / ps / cart params): gradient, contrast page, and favorites.encode_share_url— Encode a gradient and/or a list of saved contrast pairs into shareable PaletteSense deep links the user can open with the state pre-populated.optimize_contrast— Given a foreground and background, nudge one color's lightness in OKLCH (keeping its hue) until the pair meets the target WCAG level, and return the adjusted hex.suggest_palette— Build a color scheme (complementary, analogous, triadic, tetradic, or monochromatic) around a base color using OKLCH, with each color scored for contrast against a background.