The accessibility layer for AI coding agents: audit, fix, document and watch - WCAG 2.2.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
12 MCP tools + 5 prompts + a skill that give any AI agent (Claude, Cursor, Windsurf, Codexβ¦) the full WCAG 2.2 loop: audit β fix β document β watch. Zero dependencies at its core; every finding ships with a concrete remediation your agent can apply.
Accessibility is not optional anymore: the European Accessibility Act is in force since June 2025, ADA suits keep landing, and AI agents now write most of the web. This toolkit makes "is it accessible?" a one-question ask β and "then fix it" a one-command job.
| Capability | axe-core / Lighthouse / pa11y | a11y-toolkit |
|---|---|---|
| Text contrast over images/gradients (pixel sampling of the real background, hostile-zone grid) | β | β |
| Legal accessibility statements (EAA / RD 1112/2018), accessible HTML, es/en | β | β |
| Regression watch between builds: accessible names + real tab-order diff | β | β |
| Remediation text per finding, written for an agent to apply | β | β |
| Focus-order regression detection | β | β |
| Runs with zero dependencies (stdlib only; Playwright optional for the deep pass) | heavy runtimes | β |
| Screen-reader aria-live announcement monitor | β | β |
| 0-100 score computed from weighted findings | β (Lighthouse, subset of rules) | β (fuller rule set) |
| Criterion explanations on demand for agents | β | β |
| Static core parity: ARIA validity, autocomplete 1.3.5, link purpose, list structure, duplicate ids | β | β |
| Output optimized for MCP/LLM consumption (JSON, severity-ranked, es/en) | β | β |
| Tool | What it does |
|---|---|
a11y_audit_url | Express static WCAG audit of a URL or raw HTML: 20+ signals with a weighted 0-100 score (alt, accessible names, labels, autocomplete 1.3.5, keyboard onclick, unknown ARIA roles, broken aria-labelledby, unnamed duplicated landmarks, meta refresh, skip mechanism, lang validity, title, headings, blocked zoom, captions, autoplay audio, generic/duplicated link text, target=_blank warnings, tabindex>0, aria-hidden-on-focusable, tables, duplicate ids, accesskeys). Per-finding remediation. |
a11y_audit_dom | Rendered audit (local Playwright/Chromium): real computed text contrast vs effective backgrounds with alpha compositing (1.4.3), minimum target size 24Γ24 (2.5.8 β new in WCAG 2.2), focus-indicator heuristic (2.4.7), :focus/:hover state contrast, open shadow DOM traversed β all static checks on the live DOM. |
a11y_contrast_pair | Exact ratio + verdicts 1.4.3/1.4.6/1.4.11. Accepts #hex, rgb(), hsl(), CSS color names; alpha composites over the background. Suggests the nearest passing color. |
a11y_contrast_image | Text over images: pixel-level sampling of the actual background β worst/median/p95 ratio, % area passing AA, hostile-zone detection on a 3Γ3 grid. |
| (rendered audit) | adds :focus/:hover state contrast (disabled exempt) and same-origin iframes |
a11y_suggest_color | Nearest opaque color (true RGB distance) reaching the target ratio (4.5 default). |
a11y_generate_declaration | Legal accessibility statement in HTML: RD 1112/2018 art. 10 (Spanish public sector) or European Accessibility Act wording (Directive (EU) 2019/882 / Ley 11/2023). es/en. The document is itself accessible. |
a11y_snapshot | Interactive elements (tag, role, accessible name, href) + real tab focus order + the computed accessibility tree (what a screen reader announces). Requires Playwright. |
a11y_diff | Regression diff between two snapshots: added/removed/renamed interactives, focus-order changes. |
a11y_diff_urls | Snapshot two URLs and diff in one call (staging vs production). |
a11y_aria_live_snippet | Injectable monitor logging every aria-live announcement (time, politeness, role, text) β what a screen reader would say, visible on screen. |
a11y_criterion | Explains any WCAG 2.2 criterion in plain language: what it requires, typical failures, and which toolkit tool verifies it. |
a11y_badge | Returns an honest badge as accessible SVG: score, date, scope ("automated screening"), never "conformant" β the anti-overclaim seal. |
5 prompts (slash-commands in supporting clients): audit-page (full audit workflow +
what automation can't check), fix-contrast, pre-deploy-check (audit + diff β GO/NO-GO),
declaration-eaa (collects legal fields, generates), conformance-wcagem (the three-tier
WCAG-EM ladder).
Registry name:
mcp-name: io.github.kinti/a11y-toolkitΒ· PyPI: a11y-toolkit
Claude Code (one command):
Any MCP client with JSON config (Claude Desktop, Cursor, Windsurf, VS Codeβ¦):
Or from the repo without publishing:
The rendered audit, snapshots and diffs use Playwright if present
(pip install playwright && playwright install chromium); everything else works with
zero dependencies.
Run from a clone with python3 a11y.py <subcommand>; from PyPI with uvx --from a11y-toolkit a11ytoolkit β¦.
examples/a11y-watch.yml turns this into a weekly scheduled check that fails
on regressions and publishes the SARIF to code scanning.
Before shipping the current rule set we benchmarked against axe-core 4.10 on real
pages (methodology and results) β same Chromium, same Playwright.
That pass caught a real WCAG failure on gov.uk that axe does not report (blue
button text at 3.91:1, manually verified) and drove out five of our own false
positives (hidden skip links reported as tiny targets, honeypot fields, non-tabbable
aria-hidden controls, single-context generic links). Every divergence has a
regression fixture.
Automation covers ~1/3 of WCAG β every audit says so. The audit-page prompt and the
bundled skill then have the agent check what it can (keyboard operability, focus
visibility, zoom reflow, announced errors) using
the manual checklist, and
recommend a screen-reader pass for the rest. A filter, not a verdict.
A local tool: runs on your machine as your user. path (image) and output_path
(statement) read/write local paths β use it in MCP clients you trust. Nothing leaves your
machine except the URL you explicitly audit.
test_dom.py self-skips without Playwright. Releases: tag vX.Y.Z β CI publishes to PyPI
(trusted publishing); server.json is the official MCP Registry manifest. Listed on
Smithery too. Contributions welcome β see
CONTRIBUTING.md (the golden rules: zero dependencies at the core,
es/en strings everywhere, honest scope notes).
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/a11y-toolkit)<a href="https://allmcps.com/mcp/a11y-toolkit"><img src="https://allmcps.com/api/badge/a11y-toolkit?style=directory" alt="A11Y Toolkit on AllMCPs" /></a>