a11y-toolkit — the accessibility layer for AI coding agents
WCAG 2.2 for your coding agent — audit, fix, document and watch. Zero dependencies, es/en.
37 MCP tools, 5 prompts and a skill covering the whole WCAG 2.2 loop: audit, fix,
document, watch, hand off — and now blindfold usability testing, where the agent
attempts real tasks perceiving only what a screen reader exposes. 48 of 55 A/AA criteria carry at least one automated signal (87%), every
finding ships with a concrete remediation your agent can apply, and the rendered tools
run on whichever browser you have — Chromium, Firefox, WebKit, Chrome or Edge.
The European Accessibility Act is in force since June 2025, ADA suits keep landing,
and AI agents now write most of the web. A scan is not a defence: the machine finds,
the human signs.
Quickstart
# MCP — one line, any MCP client (Claude, Cursor, Codex, Windsurf, …)
claude mcp add a11y-toolkit -- uvx --from a11y-toolkit a11y-toolkit-mcp
# CLI — same engine, one command
pip install a11y-toolkit
a11ytoolkit audit --url https://example.com
a11ytoolkit pair "#1f2328" "#fbfaf7"
Agents that prefer copy-paste configs (Cline and similar): llms-install.md carries both install paths, verified end to end.
Static audits, contrast math, PDF/DOCX screening and the evidence pack run with
zero dependencies. The rendered tools (real contrast over images, keyboard
traps, reflow, forms) additionally need Playwright:
pip install playwright && playwright install chromium.

Features
axe-core is the reference engine for automated rule detection, and this
toolkit does not try to out-rule it. It competes on the loop the reference
set leaves open: audit locally, get the exact element, reproduce the
regression, and hand over evidence a human can sign. The table below lists
capabilities the reference set lacks, and every row is reproducible from
this repository (the method and the raw results live in bench/).
| Capability |
axe-core / Lighthouse / pa11y |
a11y-toolkit |
| Text contrast over images and gradients (pixel sampling of the real background) |
No |
Yes |
| VPAT 2.5 (WCAG) draft from the evidence pack — US/ADA counterpart of the EAA statement |
No |
Yes |
| Form error testing: fills invalid data, really submits, judges what happens |
No |
Yes |
| Keyboard traps: real Tab walk + Escape-release test, plus focus/input-triggered navigation |
No |
Yes |
| Infinite-scroll audit: focus survival, announcements, feed end |
No |
Yes |
| Reflow at 320px and the WCAG text-spacing override, measured |
No |
Yes |
| Screen reader transcript: what a blind user hears, linearized |
No |
Yes |
| Tooltips that ignore Escape caught by actually hovering (1.4.13) |
No |
Yes |
| Legal statements for the EAA / RD 1112/2018, in Spanish and English |
No |
Yes |
| An evidence pack a human can sign — hashes, matrix, empty signature block |
No |
Yes |
| ACT Rules interop: EARL export + per-rule consistency report against official W3C test cases |
No |
Yes |
| WCAG 3 draft preview — regroup 2.2 findings under the draft's outcomes, no fake score; criteria the draft has no provision for are listed apart |
No |
Yes |
| The engine examines itself: seeded WCAG mutant bank — regenerable exam, kill rate + false positives via placebos |
No |
Yes |
| Sequential diagnosis: pass a URL and the page's own evidence orders the exams (severity only breaks ties) |
No |
Yes |
| Runs with zero dependencies at core, speaks es/en, any browser you have |
Heavy runtimes |
Zero dependencies |
The tools (37)
Full reference — descriptions, arguments, return shapes and behavior — in docs/tools.md. All tools accept lang (en|es) unless noted; output is JSON unless noted. Generated from server.TOOLS by scripts/gen_readme.py.
| Tool |
Category |
What it does |
a11y_audit_url |
Audit |
Express WCAG audit |
a11y_audit_dom |
Audit |
Rendered WCAG audit |
a11y_audit_pdf |
Audit |
PDF accessibility screening |
a11y_docx_screen |
Audit |
DOCX accessibility screening |
a11y_locate |
Locate |
Locate element by accessible name |
a11y_journey_verdict |
Blindfold testing |
Blindfold journey verdict |
a11y_autofix |
Fix & contrast |
Deterministic safe auto-fixes |
a11y_patches |
Fix & contrast |
Sealed patch-set (sha-keyed) |
a11y_contrast_pair |
Fix & contrast |
Contrast ratio + verdicts |
a11y_contrast_image |
Fix & contrast |
Text-over-image contrast |
a11y_contrast_dom |
Fix & contrast |
Live-element contrast sampling |
a11y_suggest_color |
Fix & contrast |
Nearest passing color |
a11y_generate_declaration |
Document |
Accessibility statement (EAA/RD 1112) |
a11y_generate_vpat |
Document |
VPAT 2.5 report (WCAG edition) |
a11y_generate_openacr |
Document |
OpenACR YAML report (GSA) |
a11y_badge |
Document |
Honest SVG badge |
a11y_snapshot |
Watch (regressions) |
A11y snapshot + tab order |
a11y_diff |
Watch (regressions) |
Snapshot regression diff |
a11y_diff_urls |
Watch (regressions) |
Staging vs production diff |
a11y_aria_live_snippet |
Watch (regressions) |
aria-live monitor snippet |
a11y_criterion |
Knowledge & context |
WCAG criterion explained |
a11y_html_validate |
Knowledge & context |
W3C Nu validation |
a11y_keyboard |
Interactions |
Keyboard-trap + skip-link landing detector |
a11y_forms |
Interactions |
Form error testing |
a11y_hover |
Interactions |
Hover dismissibility (1.4.13) |
a11y_reflow |
Interactions |
320px reflow check |
a11y_scroll |
Interactions |
Infinite-scroll audit (passive by default; interactive=true clicks the exact control you name) |
a11y_sr_transcript |
Interactions |
Screen reader transcript |
a11y_reduced_motion |
Interactions |
prefers-reduced-motion honored? |
a11y_forced_colors |
Interactions |
forced-colors survival heuristic |
a11y_vtt_check |
Interactions |
WebVTT caption quality |
a11y_evidence |
Coverage & evidence |
Evidence pack (verifiable handoff) |
a11y_disprove |
Coverage & evidence |
Disprover: re-verify findings |
a11y_ledger |
Coverage & evidence |
Coverage ledger (persistent) |
a11y_wcag3_preview |
Coverage & evidence |
WCAG 3 draft preview (no score) |
a11y_scope |
Coverage & evidence |
Applicability scope (semi-automatic) |
a11y_route |
Routing |
Tool router (goal or page to steps) |
The 5 prompts
-
audit-page (url*, language): Full accessibility audit workflow for a URL: automated tools + what to verify manually (keyboard, screen reader, zoom). Every prompt exists in English and Spanish.
-
fix-contrast (fg*, bg*, context): Guided contrast fix: verify the pair (or the text-over-image region), get the nearest passing color, apply it to the code. Every prompt exists in English and Spanish.
-
pre-deploy-check (url*, baseline): Pre-deploy regression check: express audit of the URL plus snapshot diff against a baseline snapshot. Every prompt exists in English and Spanish.
-
declaration-eaa (entity*, url*, status): Generate a European Accessibility Act / RD 1112/2018 accessibility statement, collecting any missing legal fields from the user. Every prompt exists in English and Spanish.
-
blindfold-task (url*, goal*, kind, language): Blindfold usability test — the agent attempts a real task perceiving ONLY the accessibility tree and acting only by accessible name and keyboard, logging friction per step; closes with a11y_journey_verdict. The capability no other accessibility tool has: task-based non-visual testing where the agent IS the screen-reader user. Every prompt exists in English and Spanish.
Install
mcp-name: io.github.kinti/a11y-toolkit · PyPI: a11y-toolkit · Zenodo DOI: 10.5281/zenodo.22843722
Works with any MCP-capable client — Claude Code/Desktop, Cursor, Windsurf, VS Code,
Codex CLI, OpenCode, ZCode, Zed, Cline, Continue, Kimi Code… See
docs/clients.md for every verified config format.
Node-native? npx -y @kinti/a11y-toolkit mcp… — the npm launcher runs the
same engine (npm/). Composing it
with the popular servers (Playwright, GitHub, Filesystem, Fetch…) —
docs/interop.md.
Start-to-finish recipes (audit → fix → seal → CI):
docs/cookbook.md.
claude mcp add a11y-toolkit -- uvx --from a11y-toolkit a11y-toolkit-mcp
Or with JSON config:
{
"mcpServers": {
"a11y-toolkit": {
"command": "uvx",
"args": ["--from", "a11y-toolkit", "a11y-toolkit-mcp"],
"timeoutMs": 60000
}
}
}
Rendered tools use Playwright if present and accept a browser parameter
(auto, chromium, firefox, webkit, chrome, msedge — auto-detects the first
available). Accept auth_state (Playwright storage_state path) to audit behind login.
Everything else works with zero dependencies.
The skill
git clone https://github.com/kinti/a11y-toolkit && cd a11y-toolkit
./skills/install-skill.sh # → ~/.zcode/skills and ~/.claude/skills
Agent hook — a11ytoolkit init
Agents that read AGENTS.md on their own get the
rule that matters — after any UI change, re-audit before calling the work
done — with the exact commands:
cd your-project
uvx --from a11y-toolkit a11ytoolkit init # writes/merges the AGENTS.md hook (idempotent)
uvx --from a11y-toolkit a11ytoolkit guard --file index.html # write-time gate: NEW high/medium refuse the save
It also prints the MCP config block and the optional skill install step.
--check reports whether the hook is present (exit 1 if not — CI-friendly).