wcag-accessibility
v0.1.6A 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute http:// or https:// URL to render and test. |
height | integer | Viewport height in CSS pixels. |
maxIssues | integer | Maximum violation groups returned; summary totals still cover the full run. |
maxNodesPerIssue | integer | Maximum affected elements returned per rule. |
standard | string | WCAG ruleset to test. Use best-practice to include additional axe guidance. |
width | integer | Viewport 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.
| Parameter | Type | Description |
|---|---|---|
html * | string | Complete HTML document or fragment to render and test. |
baseUrl | string | Optional http(s) base URL used to resolve relative assets. |
height | integer | Viewport height in CSS pixels. |
maxIssues | integer | Maximum violation groups returned; summary totals still cover the full run. |
maxNodesPerIssue | integer | Maximum affected elements returned per rule. |
standard | string | WCAG ruleset to test. Use best-practice to include additional axe guidance. |
width | integer | Viewport 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute path, or path relative to the server working directory, to an HTML file. |
height | integer | Viewport height in CSS pixels. |
maxIssues | integer | Maximum violation groups returned; summary totals still cover the full run. |
maxNodesPerIssue | integer | Maximum affected elements returned per rule. |
standard | string | WCAG ruleset to test. Use best-practice to include additional axe guidance. |
width | integer | Viewport 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.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background CSS sRGB color such as white, #ffffff, rgb(), hsl(), or color(srgb ...). |
foreground * | string | Foreground CSS sRGB color such as white, #767676, rgb(), hsl(), or color(srgb ...). |
fontSizePx | number | |
fontWeight | integer | |
level | string |
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.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background CSS sRGB color such as white, #ffffff, rgb(), hsl(), or color(srgb ...). |
foreground * | string | Foreground CSS sRGB color such as white, #767676, rgb(), hsl(), or color(srgb ...). |
adjust | string | |
fontSizePx | number | |
fontWeight | integer | |
level | string |
explain_issue Explain an accessibility rule
Return implementation-focused remediation steps and the axe rule reference for a rule ID found in an audit.
| Parameter | Type | Description |
|---|---|---|
ruleId * | string | axe 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.
| Parameter | Type | Description |
|---|---|---|
evaluation | string | |
principle | string | |
standard | string |