mcp
v0.11.1MCP server for accessible agentic coding — WCAG audit tools for AI coding agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_html
Audit an HTML string for accessibility violations. Ensures a debuggable Chrome (auto-launches one headless if none is reachable), loads the HTML into a blank tab, and runs the @accesslint/core engine against the real DOM. Auto-detects fragments vs full documents.
| Parameter | Type | Description |
|---|---|---|
html * | string | HTML to audit for accessibility violations |
component_mode | boolean | Treat the page as a component fragment (skip page-level rules like html-has-lang). Auto-detected from the markup when omitted. |
format | string | Output verbosity. 'compact' fits one violation per line; default 'verbose'. |
host | string | CDP host. Defaults to 127.0.0.1. |
include_aaa | boolean | Include WCAG AAA-level rules in the audit |
min_impact | string | Only show violations at this severity or above |
port | integer | CDP port to attach to / launch on. Defaults to 9222 or ACCESSLINT_CDP_PORT. Omit for auto-detection. |
rules | array | Allow-list of rule IDs to run (e.g. ["text-alternatives/img-alt"]) |
wcag | array | Allow-list of WCAG criteria to run (e.g. ["1.4.3", "2.4.4"]) |
audit_live
Audit a live URL via CDP. Ensures a debuggable Chrome (auto-launches one headless via @accesslint/chrome if none is reachable — no manual setup needed), then runs the @accesslint/core engine against the live DOM. CSP-bypassing. Use this for any URL audit.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to audit. Reuses an existing tab matching this URL; opens a new one otherwise. |
format | string | Output verbosity. 'compact' fits one violation per line; default 'verbose'. |
host | string | CDP host. Defaults to 127.0.0.1. |
include_aaa | boolean | Include WCAG AAA-level rules in the audit |
min_impact | string | Only show violations at this severity or above |
port | integer | CDP port to attach to / launch on. Defaults to 9222 or ACCESSLINT_CDP_PORT. Omit for auto-detection. |
rules | array | Allow-list of rule IDs to run |
selector | string | CSS selector to scope the audit to; auto-waits for the element, then reports only violations inside it. |
wait_for | string | Selector or visible text to wait for after navigation (e.g. '#main', 'Welcome'). Polls until present or wait_timeout_ms elapses. |
wait_timeout_ms | integer | Max ms to wait for wait_for / selector. Default 10000. |
wcag | array | Allow-list of WCAG criteria to run (e.g. ["1.4.3", "2.4.4"]) |
list_rules
List available accessibility rules with optional filters by category, WCAG level, fixability, or criterion.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category slug (e.g. "aria", "text-alternatives") |
fixability | string | Filter by fixability |
format | string | Output verbosity. 'compact' is one rule per line; default 'verbose' is a table. |
level | string | Filter by WCAG level |
wcag | string | Filter by WCAG criterion (e.g. "1.1.1") |
explain_rule
Return detailed metadata for a single rule: description, WCAG criteria, level, fixability, browser hint, and remediation guidance.
| Parameter | Type | Description |
|---|---|---|
id * | string | Rule ID, e.g. 'text-alternatives/img-alt'. Discover IDs via list_rules. |