WCAG Color Contrast MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WCAG MCP Server
A Model Context Protocol (MCP) server for WCAG color contrast checking and accessibility analysis. Built with Bun, TypeScript, and Culori.
Rationale
LLMs will attempt to give you WCAG contrast scores for color pairs, but they are often inaccurate because the LLM is not running the actual equations for determine contrast between colors. This MCP server provides that capability.

Related MCP server: accessibility-mcp-server
Quick Start
# Install
bun install
# Build and run
bun run build
bun run startMCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"wcag": {
"command": "bun",
"args": ["run", "start"],
"cwd": "/path/to/wcag"
}
}
}Tools
analyze_contrast
Calculate WCAG contrast ratio between two colors.
{
"foreground": "red",
"background": "white"
}Returns ratio, compliance levels, and color details.
get_color_luminance
Get color luminance value and format conversions.
{
"color": "#3366cc"
}Returns luminance and formatted color values.
check_wcag_compliance
Check specific WCAG compliance.
{
"foreground": "#666666",
"background": "#ffffff",
"level": "AA",
"textSize": "normal"
}batch_contrast
Analyze multiple color pairs.
{
"colorPairs": [
{"foreground": "red", "background": "white", "label": "Error text"},
{"foreground": "blue", "background": "gray", "label": "Link"}
]
}Color Formats
Supports any format Culori can parse:
Hex:
#ff0000,#f00CSS:
rgb(255,0,0),hsl(0,100%,50%)Named:
red,blue,whiteModern:
oklch(0.7 0.15 180)
WCAG Standards
Level | Normal Text | Large Text |
AA | 4.5:1 | 3:1 |
AAA | 7:1 | 4.5:1 |
Development
bun run dev # Development with hot reload
bun run build # Build for production
bun run test-server # Test the mcp serverLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
WCAG color contrast checks, nearest accessible color, CSS color conversion and palette pair checks.
Contrast checks with fixes, OKLCH harmonies, palettes, color-blind previews and code export.
WCAG contrast & palettes
Check WCAG color contrast, fix failing colors, build 50-950 palettes. No account.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables checking WCAG color contrast ratios and accessibility compliance between color pairs. Helps determine optimal text colors for backgrounds and validates color combinations meet accessibility standards.16 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to perform comprehensive web accessibility checks (WCAG 2.1/2.2) including color contrast analysis, ARIA validation, and full accessibility report generation without requiring any API key.8MIT
- AlicenseAqualityAmaintenanceEnables automated web accessibility checking and review against Korea's KWCAG 2.2 standard, supporting static HTML/contrast validation, live URL audits, and certification readiness estimation.73 npmMIT
- AlicenseBqualityCmaintenanceEnables WCAG accessibility inspection of websites, with tools to check, analyze, and report on compliance issues.45 npmISC