mcp

v0.11.1
@accesslint/mcp Checked 10 hours ago Published 3 months ago

MCP 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.

ParameterTypeDescription
html *stringHTML to audit for accessibility violations
component_modebooleanTreat the page as a component fragment (skip page-level rules like html-has-lang). Auto-detected from the markup when omitted.
formatstringOutput verbosity. 'compact' fits one violation per line; default 'verbose'.
hoststringCDP host. Defaults to 127.0.0.1.
include_aaabooleanInclude WCAG AAA-level rules in the audit
min_impactstringOnly show violations at this severity or above
portintegerCDP port to attach to / launch on. Defaults to 9222 or ACCESSLINT_CDP_PORT. Omit for auto-detection.
rulesarrayAllow-list of rule IDs to run (e.g. ["text-alternatives/img-alt"])
wcagarrayAllow-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.

ParameterTypeDescription
url *stringURL to audit. Reuses an existing tab matching this URL; opens a new one otherwise.
formatstringOutput verbosity. 'compact' fits one violation per line; default 'verbose'.
hoststringCDP host. Defaults to 127.0.0.1.
include_aaabooleanInclude WCAG AAA-level rules in the audit
min_impactstringOnly show violations at this severity or above
portintegerCDP port to attach to / launch on. Defaults to 9222 or ACCESSLINT_CDP_PORT. Omit for auto-detection.
rulesarrayAllow-list of rule IDs to run
selectorstringCSS selector to scope the audit to; auto-waits for the element, then reports only violations inside it.
wait_forstringSelector or visible text to wait for after navigation (e.g. '#main', 'Welcome'). Polls until present or wait_timeout_ms elapses.
wait_timeout_msintegerMax ms to wait for wait_for / selector. Default 10000.
wcagarrayAllow-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.

ParameterTypeDescription
categorystringFilter by category slug (e.g. "aria", "text-alternatives")
fixabilitystringFilter by fixability
formatstringOutput verbosity. 'compact' is one rule per line; default 'verbose' is a table.
levelstringFilter by WCAG level
wcagstringFilter 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.

ParameterTypeDescription
id *stringRule ID, e.g. 'text-alternatives/img-alt'. Discover IDs via list_rules.