Accessible Color Contrast MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Accessible Color Contrast MCPwhat's the contrast between #ffffff and #000000?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Accessible Color Contrast MCP
A simple MCP (Model Context Protocol) server for checking accessible color pairings. This uses the WCAG (Web Content Accessibility Guidelines) contrast algorithm to calculate real contrast ratios, which can inform your AI when working with colors.
More about WCAG Contrast requirements
Setup
Add this to your AI platform:
{
"mcpServers": {
"accessibility": {
"command": "npx",
"args": ["-y", "a11y-color-contrast-mcp"]
}
}
}Note, if you use nvm, you might need to use the path to the correct node and npx versions (24), for example:
"accessibility": {
"command": "/path-user-home/.nvm/versions/node/v24.12.0/bin/node",
"args": ["/path-user-home/.nvm/versions/node/v24.12.0/bin/npx", "-y", "a11y-color-contrast-mcp"]
}Example Usage
What is the contrast between #481bef and #c3eecb?
If I have a background color #22d3ee, should I use light or dark text on it?
What color text should I use for a background #6a4ba7 if I need to meet WCAG AAA level support?
Can you suggest 3 color pairs that are accessible? The colors should not be black or white, and should be reminiscent of fall.
Related MCP server: WCAG Color Contrast MCP Server
Available Tools
Get Color Contrast
Get the WCAG contrast value between two colors.
Parameters
colorA(required): First color (hex, rgb, hsl, or named color).colorB(required): Second color (hex, rgb, hsl, or named color).
Are Colors Accessible
Test two colors for WCAG accessible contrast.
Parameters
colorA: First color (hex, rgb, hsl, or named color).colorB: Second color (hex, rgb, hsl, or named color).level: WCAG level to test against, AA or AAA. Default "AA".size: Font size of text, larger font has a lower threshold. Can be small or large. Default "small".
Use Light or Dark
Detect whether to pair a light or dark color against a given color for best contrast.
Parameters
color: Color (hex, rgb, hsl, or named color).level: WCAG level to test against, AA or AAA. Default "AA".size: Font size of text, larger font has a lower threshold. Can be small or large. Default "small".
Development
This package contains a stdio and an http server, though the stdio is the recommended method for interacting with it.
Requirements
Node 18+
Install the dependencies with npm install. The MCP server itself lives in src/server.ts, with the stdio server in index.ts and the http server in http.ts.
Scripts
npm run build: Builds the src files into build.npm run stdio: Builds the src files, then starts the stdio server.npm run http: Builds the src files, then starts the http server.npm run test: Run the Jest tests.
http server
This is a work in progress while I figure out if it's worth setting up as a remote server. For now, it's developer-only. Once running (see above), you can access this on port 3000.
Here's an example interaction you can test with a tool like Insomnia.
POST http://localhost:3000/mcp
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get-color-contrast",
"arguments": {
"colorA": "#ff0000",
"colorB": "#ffffff"
}
},
"id": 1
}HTTP/1.1 200 OK
Content-Type: text/event-stream
event: message
data: {"result":{"content":[{"type":"text","text":"4.00"}]},"jsonrpc":"2.0","id":1}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides comprehensive color conversion, manipulation, analysis, and WCAG accessibility tools supporting multiple formats (hex, rgb, hsl, oklch, oklab) for design systems and web development.Last updated2872MIT
- Flicense-qualityDmaintenanceEnables accurate WCAG color contrast checking and accessibility analysis by calculating actual contrast ratios between color pairs, checking compliance levels, and analyzing luminance values for web accessibility.Last updated
- Alicense-qualityDmaintenanceA comprehensive toolkit for color conversion, manipulation, and accessibility analysis supporting formats like OkLCH and WCAG compliance. It enables AI agents to manage design systems by generating harmonious palettes, transforming color spaces, and performing contrast checks.Last updated2MIT
- Alicense-qualityAmaintenanceExtract palettes from images, generate harmonies, gradients, random palettes; Check WCAG and APCA contrast; Suggest nearest passing OkLCH lightness; Simulate color-blindness; Convert and sort colors across formats (hex / RGB / HSL / OkLCH / …)Last updatedMIT
Related MCP Connectors
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
Scan URLs for WCAG 2.1 violations, generate AI fixes, and produce VPAT 2.5 compliance reports.
Deterministic axe-core accessibility scans (WCAG 2.1 AA, EN 301 549, PDF/UA) via your account.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryelle/a11y-color-contrast-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server