WCAG Accessibility MCP
This server gives AI agents automated WCAG accessibility auditing and contrast analysis for web interfaces.
Audit live URLs:
audit_urlrenders a public or local web page in headless Chromium and returns prioritized WCAG findings with DOM evidence.Audit raw HTML:
audit_htmltests unhosted or generated HTML in an isolated browser before deployment.Audit local files:
audit_filechecks.html/.htmfiles inside the allowed project root.Check color contrast:
check_contrastevaluates foreground/background pairs against WCAG AA/AAA thresholds for text size and weight.Suggest contrast fixes:
suggest_contrast_fixfinds the nearest passing color adjustment.Explain accessibility rules:
explain_issuegives remediation steps for axe rule IDs.Get WCAG checklists:
get_wcag_checklistreturns success criteria for WCAG 2.0/2.1/2.2 A/AA/AAA profiles, separating automated-partial from manual checks.Support multiple standards: wcag2a through wcag22aaa and best-practice profiles, defaulting to wcag22aa.
Return actionable evidence: issues include affected elements, computed styles, corrections, and guidance for what still needs manual review.
Operate read-only: all tools are safe for agents to invoke without modifying the audited system.
WCAG Accessibility MCP
A WCAG accessibility testing MCP for AI agents, Codex, Claude Code, and automated UI audits.
WCAG Accessibility MCP gives AI coding and design agents a real accessibility feedback loop. It renders web interfaces in Chromium, runs axe-core, checks color contrast, maps findings to WCAG guidance, and returns structured evidence that an agent can use to fix accessibility issues before a UI is treated as complete.
It is designed for people building with AI: product designers, design engineers, frontend developers, AI product teams, and anyone using agents to generate or review web interfaces.
This is an automated testing aid, not a WCAG certification service. It catches many common failures, but full accessibility review still requires human testing for keyboard behavior, focus order, screen readers, zoom, motion, content quality, and assistive-technology behavior.
Why This Exists
AI-generated interfaces often look polished but fail basic accessibility checks: weak contrast, missing labels, broken semantic structure, poor ARIA usage, inaccessible forms, and hidden keyboard issues.
This MCP helps agents stop guessing. Instead of saying “follow WCAG,” it gives them testable feedback:
what failed
where it failed
which element was affected
which WCAG-related rule applies
what needs to be fixed
which checks still require manual review
Related MCP server: Accessibility MCP Server
What It Can Do
Tool | What it does |
| Audits a rendered web page URL |
| Audits supplied HTML before it is hosted |
| Audits a local |
| Experimental: audits one target across named viewports and groups findings by stable fingerprints |
| Experimental: compares baseline and candidate audit results without rerunning the browser |
| Experimental: reports browser selection and setup guidance without launching Chromium |
| Experimental: captures screenshot evidence and optionally runs local OCR |
| Experimental: inspects exported Figma, Claude Design, or generic design-node data before implementation |
| Calculates WCAG contrast for a foreground/background color pair |
| Suggests a passing color adjustment |
| Explains an accessibility rule and how to fix it |
| Returns the complete WCAG checklist with automated/manual coverage |
Standards Coverage
The server supports these profiles:
wcag2awcag2aawcag2aaawcag21aawcag21aaawcag22aawcag22aaabest-practice
AA profiles include Level A and AA criteria. AAA profiles include Level A, AA, and AAA criteria.
The default profile is wcag22aa.
For WCAG 2.2:
AA includes 55 required success criteria.
AAA includes 86 required success criteria.
An automated axe mapping means partial automated coverage. It does not mean the whole WCAG success criterion has been fully tested.
Install
Requirements:
Node.js 20 or newer
Chrome or Edge recommended
Windows, macOS, or Linux
Install from npm:
npm install -g wcag-accessibility-mcpOr run directly:
npx -y wcag-accessibility-mcpIf the server starts correctly, you should see:
wcag-accessibility-mcp is running over stdioUse With Claude Code
Add the MCP server:
claude mcp add --scope user wcag-accessibility -- npx -y wcag-accessibility-mcpCheck that it is connected:
claude mcp listTest prompt:
Use the wcag-accessibility MCP tool check_contrast. Check #999999 on #ffffff for WCAG AA normal text. Do not calculate manually.Expected result:
The contrast ratio is about 2.85:1, which fails WCAG AA for normal text.Use With Claude Desktop
Open the Claude desktop config file on Windows:
notepad "$env:APPDATA\Claude\claude_desktop_config.json"Add this inside mcpServers:
{
"mcpServers": {
"wcag-accessibility": {
"command": "C:\\Program Files\\nodejs\\npx.cmd",
"args": [
"-y",
"wcag-accessibility-mcp"
]
}
}
}If you already have another MCP server, keep it and add wcag-accessibility as a second entry.
Then fully quit Claude Desktop and reopen it.
Use With Codex
Add the MCP server:
codex mcp add wcag-accessibility -- npx -y wcag-accessibility-mcpTest prompt:
Use the wcag-accessibility MCP to check the contrast of #999999 on #ffffff at WCAG AA.Example Agent Prompts
Audit this HTML for WCAG 2.2 AA issues. Prioritize critical and serious issues, explain each fix, then list what still needs manual review.Use wcag-accessibility to audit this local HTML file at desktop and mobile widths. Fix the accessibility issues in the code and rerun the audit.Inspect this Figma or Claude Design snapshot for accessibility risks before implementation, then verify the rendered HTML with audit_matrix.Capture a screenshot of this page and run OCR only if local OCR is configured. Use OCR findings as visual evidence, not as WCAG conformance.Check whether #FF3B12 on #F5F2EC passes WCAG AA for normal text. If it fails, suggest the nearest passing foreground color.Give me the WCAG 2.2 AAA checklist and separate automated checks from manual checks.Local Development
Clone the repository:
git clone https://github.com/aditya-ariosity/wcag-accessibility-mcp.git
cd wcag-accessibility-mcpInstall dependencies:
npm installBuild:
npm run buildRun tests:
npm run test:unitRun browser integration and end-to-end tests:
npm run test:browsernpm test is the deterministic browser-free unit suite. Use npm run test:browser when the machine has a working Chrome, Edge, Chromium, or bundled browser setup.
The CLI can write JSON, Markdown, or SARIF reports and compare a baseline:
npm run audit -- --url http://localhost:3000 --format json --out report.json
npm run audit -- --url http://localhost:3000 --baseline baseline.json --format mdStart the stdio MCP server:
npm startStart the optional HTTP transport:
npm run start:httpThe local HTTP endpoint is:
http://127.0.0.1:3000/mcpHealth check:
http://127.0.0.1:3000/healthEnvironment Variables
All environment variables are optional for normal local use.
Variable | Default | Purpose |
| Auto-detected | Absolute path to Chrome, Chromium, or Edge |
| Current working directory | Restricts local file audits to a specific folder |
|
| Allows localhost/private-network URL audits in trusted environments |
|
| Enables local file audits over HTTP in trusted deployments |
|
| Maximum concurrent Chromium audits |
|
| Timeout for the audit phase |
|
| Disables Chromium sandboxing only when the runtime requires it |
|
| Local OCR executable used by |
|
| Advertises the in-progress matrix, screenshot, diagnostics, and design-snapshot tools |
|
| Allows local file audits to load file-based images/stylesheets beneath the allowed root |
|
| HTTP bind address |
| Localhost names | Allowed Host headers for HTTP mode |
|
| HTTP JSON body limit |
|
| HTTP transport port |
Security Notes
The stdio server is meant to run locally with the same permissions as the agent using it.
The HTTP transport is a deployment building block, not a public hosted service by itself. Do not expose it directly to the public internet without authentication, TLS, rate limits, request-size limits, outbound network controls, and a low-privilege runtime.
By default:
tools are read-only
HTTP mode blocks private network URL targets
local file audit over HTTP is disabled
local file audit is restricted to the allowed root
Chromium sandboxing remains enabled unless explicitly disabled
Published Links
GitHub: https://github.com/aditya-ariosity/wcag-accessibility-mcp
MCP Registry name:
io.github.aditya-ariosity/wcag-accessibility
Current Scope
The stable release currently audits rendered web interfaces and HTML. The evidence core reports criterion-level coverage and keeps unresolved manual requirements visible.
The stable release does not yet inspect:
native mobile apps
PDFs
canvas-only interfaces
video captions
raw screenshots without HTML
raw Claude Design pixels
Matrix, screenshot/OCR, and design-snapshot modules are experimental and require A11Y_MCP_ENABLE_EXPERIMENTAL_TOOLS=true. Direct Figma plugin inspection, persistence, automatic fixes, and deeper design-tool adapters remain future work.
License
MIT
Available Tools
7 toolsaudit_fileAudit a local HTML fileARead-onlyIdempotent
Render a local .html or .htm file beneath the configured allowed root and return accessibility findings and corrections. Read-only.
Inputs: filePath (required), width, height, standard, +2 more.
audit_htmlAudit an HTML documentARead-onlyIdempotent
Render supplied HTML in an isolated headless browser and return WCAG findings plus evidence and suggested corrections. Use for generated UI before it is hosted. Read-only.
Inputs: html (required), width, height, baseUrl, +3 more.
audit_urlAudit a rendered URLARead-onlyIdempotent
Load a public or local web page in headless Chromium, run axe-core, and return prioritized WCAG findings, DOM evidence, computed styles, and contrast corrections. Read-only.
Inputs: url (required), width, height, standard, +2 more.
check_contrastCheck a color pairARead-onlyIdempotent
Calculate the WCAG contrast ratio for foreground and background colors and determine whether the pair passes for the supplied text size and weight.
Inputs: background (required), foreground (required), level, fontSizePx, +1 more.
explain_issueExplain an accessibility ruleARead-onlyIdempotent
Return implementation-focused remediation steps and the axe rule reference for a rule ID found in an audit.
Inputs: ruleId (required).
get_wcag_checklistGet the complete WCAG requirement checklistARead-onlyIdempotent
Return every success criterion required by a WCAG 2.0, 2.1, or 2.2 A/AA/AAA profile, with W3C references, axe rule mappings, and explicit automated-partial versus manual coverage. Use this to plan the checks that a browser audit cannot complete.
Inputs: standard, principle, evaluation.
suggest_contrast_fixSuggest a passing colorARead-onlyIdempotent
Find the nearest black-or-white-directed foreground or background adjustment that reaches the selected WCAG contrast threshold. Returns a mathematical candidate, not an automatic edit.
Inputs: background (required), foreground (required), level, adjust, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a clear and distinct task: three different methods for auditing (by URL, HTML string, or file), a contrast checker, a contrast fix suggester, an issue explainer, and a checklist retriever. There is no overlap or ambiguity among them.
Tool names mostly follow a verb_noun pattern (audit_url, audit_html, audit_file, check_contrast, explain_issue, get_wcag_checklist). The only minor deviation is 'suggest_contrast_fix', which is a verb_verb_noun but still clear and consistent in style.
7 tools is an ideal number for this domain. Each tool covers a necessary function without unnecessary redundancy: three audit entry points, two contrast helpers, one explainer, and one checklist reference. The scope is well-scoped and focused on WCAG accessibility.
The tool set provides a complete lifecycle for accessibility auditing: multiple ways to ingest content for auditing, contrast analysis and remediation, issue explanation, and a checklist for manual coverage. There are no obvious gaps for the intended use case of assessing and fixing WCAG compliance.
Maintenance
Related MCP Connectors
Accessibility compliance for AI coding tools. WCAG 2.2 reviews with shared evidence.
Free WCAG 2.2/ADA/508 accessibility MCP: scan, AI fixes, verify, vision audit, localhost tunnel
Website QA for your coding agent: audit SEO, performance, security, accessibility over MCP.
Edge MCP Server for live WCAG 2.1 AA accessibility compliance and AST security audits.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables LLMs to perform web accessibility testing against WCAG standards using Deque Axe-core API and Puppeteer.6538 npm97MIT
- AlicenseAqualityDmaintenanceProvides conversational, actionable accessibility testing for AI agents, including auditing, prioritization, and code-level fixes.22MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with web accessibility analysis tools via MCP, enabling checks for alt text, heading hierarchy, color contrast, ARIA validation, and form accessibility.39 npmMIT
- AlicenseAqualityCmaintenanceEnables auditing web pages for WCAG violations, applying deterministic fixes and PRs, all through MCP clients like Claude Desktop.7MIT