wcag-accessibility

v0.1.6
io.github.aditya-ariosity/wcag-accessibility Checked 3 days ago Published 3 months ago

A WCAG accessibility testing MCP for AI agents, Codex, Claude Code, and automated UI audits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

audit_url Audit a rendered URL

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.

ParameterTypeDescription
url *stringAbsolute http:// or https:// URL to render and test.
heightintegerViewport height in CSS pixels.
maxIssuesintegerMaximum violation groups returned; summary totals still cover the full run.
maxNodesPerIssueintegerMaximum affected elements returned per rule.
standardstringWCAG ruleset to test. Use best-practice to include additional axe guidance.
widthintegerViewport width in CSS pixels.

audit_html Audit an HTML document

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.

ParameterTypeDescription
html *stringComplete HTML document or fragment to render and test.
baseUrlstringOptional http(s) base URL used to resolve relative assets.
heightintegerViewport height in CSS pixels.
maxIssuesintegerMaximum violation groups returned; summary totals still cover the full run.
maxNodesPerIssueintegerMaximum affected elements returned per rule.
standardstringWCAG ruleset to test. Use best-practice to include additional axe guidance.
widthintegerViewport width in CSS pixels.

audit_file Audit a local HTML file

Render a local .html or .htm file beneath the configured allowed root and return accessibility findings and corrections. Read-only.

ParameterTypeDescription
filePath *stringAbsolute path, or path relative to the server working directory, to an HTML file.
heightintegerViewport height in CSS pixels.
maxIssuesintegerMaximum violation groups returned; summary totals still cover the full run.
maxNodesPerIssueintegerMaximum affected elements returned per rule.
standardstringWCAG ruleset to test. Use best-practice to include additional axe guidance.
widthintegerViewport width in CSS pixels.

check_contrast Check a color pair

Calculate the WCAG contrast ratio for foreground and background colors and determine whether the pair passes for the supplied text size and weight.

ParameterTypeDescription
background *stringBackground CSS sRGB color such as white, #ffffff, rgb(), hsl(), or color(srgb ...).
foreground *stringForeground CSS sRGB color such as white, #767676, rgb(), hsl(), or color(srgb ...).
fontSizePxnumber
fontWeightinteger
levelstring

suggest_contrast_fix Suggest a passing color

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.

ParameterTypeDescription
background *stringBackground CSS sRGB color such as white, #ffffff, rgb(), hsl(), or color(srgb ...).
foreground *stringForeground CSS sRGB color such as white, #767676, rgb(), hsl(), or color(srgb ...).
adjuststring
fontSizePxnumber
fontWeightinteger
levelstring

explain_issue Explain an accessibility rule

Return implementation-focused remediation steps and the axe rule reference for a rule ID found in an audit.

ParameterTypeDescription
ruleId *stringaxe rule ID such as color-contrast, button-name, or label.

get_wcag_checklist Get the complete WCAG requirement checklist

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.

ParameterTypeDescription
evaluationstring
principlestring
standardstring