Skip to main content Switch to mobile version a11y-toolkit 5.37.0 The accessibility layer for AI coding agents — MCP server + CLI for WCAG 2.2: express static audit, rendered audit (contrast, 2.5.8 target size, focus), contrast math (pairs, CSS names, hsl/rgba, text-over-image pixel sampling), EAA/RD 1112/2018 declarations, snapshot regression diffs, aria-live monitor. Zero dependencies at core; es/en.
pip install a11y-toolkit==5.37.0 Copy PIP instructions
WCAG 2.2 accessibility checks for coding agents, developers and CI.
An automated check finds some of the accessibility problems and stops there. a11y-toolkit keeps going: audit an HTML file or a live page, find out how to fix each issue, and check what changed before you ship. When a human needs to review the result, export a verifiable evidence pack with the findings and the checks that still need attention.
Free to run yourself under the MIT license. Built by Jesús Quintana Fernández, who has been auditing websites for accessibility since 2003, and used by a11y.es for hosted monitoring.
Python 3.9+ · Zero dependencies at the core · Zero telemetry · English and Spanish output
Run a local contrast check with uvx. The expected ratio is 4.54:1. uv tool guide
uvx --from a11y-toolkit a11ytoolkit pair "#767676" "#ffffff" Install the CLI with uv tool install a11y-toolkit or run python -m pip install a11y-toolkit in your project's Python environment. Then audit a public page or pass --file page.html to audit local HTML.
a11ytoolkit audit --url https://example.com Each finding includes a WCAG criterion, severity and remediation. Check not_measured for the criteria that this audit did not measure. Run a11ytoolkit route --url https://example.com to see what to check next. The CLI writes UTF-8 on every platform, so a report sent to a file or a pipe (> report.json) is a valid file on Windows too.
Connect your coding agent
mcp-name: io.github.kinti/a11y-toolkit
Register a stdio MCP server with the command and arguments below. Use the configuration format supported by your client. Client setup guide
command: uvx args: --from a11y-toolkit a11y-toolkit-mcp For the npm launcher, use npx -y -p @kinti/a11y-toolkit a11y-toolkit-mcp. It bundles the engine and uses a local Python 3.9+ interpreter. Install options
Once connected, ask your agent to call a11y_contrast_pair for #767676 on #ffffff. The expected contrast ratio is 4.54:1.
Enable browser checks
Use the same Python environment for Playwright and the CLI or MCP server. Install Chromium for browser checks and Pillow for image decoding in pixel-based contrast checks.
python -m pip install a11y-toolkit playwright pillow python -m playwright install chromium a11ytoolkit dom https://example.com The CLI has no browser option and uses the first engine it finds. Choose the engine with the browser argument of the MCP tools. If your MCP client uses an isolated uvx environment, launch it from the browser-enabled environment instead. Set its command to that environment's a11y-toolkit-mcp executable. Rendered checks also support installed Firefox, WebKit, Chrome and Edge.
Closed
From a finding to a verified fix
Locate the issue and recheck it
Run these commands on the same local HTML file. The annotated copy marks the elements the report can locate in the original source, and marks.json lists the path of each marked element.
a11ytoolkit audit --file page.html > audit.json a11ytoolkit annotate page.html --report audit.json -o annotated.html --marks marks.json Apply the remediation in page.html, then repeat the audit. For text contrast, a11ytoolkit pair "#767676" "#ffffff" measures the color pair and reports the thresholds. Use a rendered check for text over images and gradients.
Block regressions in CI
Start with an audit of the page you want to track. The budget records the findings you have already accepted. Commit the budget so CI can use it as a baseline.
a11ytoolkit budget --init --audit audit.json > budget.json After the next change, audit the same file again and compare it with the saved budget.
a11ytoolkit audit --file page.html > next.json a11ytoolkit budget --budget budget.json --audit next.json Exit Result 0 The measured changes are within budget. 1 The capture failed or the reports could not be compared. 2 At least one finding exceeded the budget. Keep browser, color scheme and session type consistent when comparing live captures. To check changed HTML in a Git branch, use a11ytoolkit audit --changed --base origin/main. To compare focus order in a scripted journey, use trace. CI and keyboard recipes
a11ytoolkit trace https://mysite --script journey.json --capture-dialog-state -o after.json a11ytoolkit trace diff before.json after.json --gate-dialog-state --capture-dialog-state records, after each step, whether a dialog is open and whether focus is inside it. trace diff --gate-dialog-state compares that state when both traces carry it.
Budgets match instances by stable_paths (id, data-testid, ARIA name) before positional paths. In a crawl, failed URLs do not spend the page quota; the crawl stops after failures reach twice the quota and the report says so with failed_pages_capped.
a11ytoolkit init also installs a write-time gate in .claude/settings.json. guard fails closed: a save the engine cannot audit (over 3 MB, unparseable) returns decision: "error" and exit 1 instead of allow; A11Y_GATE=off bypasses the hook and --lang es answers in Spanish. fix returns error when its final audit fails. To re-verify a report, a11y_disprove checks each earlier finding on the live page; with fewer saved paths than instances it confirms only a signal still on the same page and rejects only with complete proof.
Hand off the evidence
a11ytoolkit evidence next.json -o evidence-pack.json An evidence pack includes the source reports, a 55-criterion matrix and the review still required on the sample. From a checkout of this repository, run python3 scripts/verify_pack.py /path/to/evidence-pack.json to check the SHA-256 seal and embedded reports. An auditor can review the pack and take responsibility for the conformance decision. Pack format and verifier
Test a real task blindfolded
Scanners check what a page is made of. This checks what a person can do with it. Your coding agent attempts a real task ("subscribe to the newsletter", "reset the password") perceiving only the accessibility tree, which is what a screen reader exposes, and acting only by accessible name and keyboard. Every point of friction it meets is logged against a WCAG criterion.
The demo page is authored to fail, and the verdict shown is real output for that walk.
Ask your agent to run the blindfold-task prompt with a URL and the task. When it finishes, it closes with a11y_journey_verdict, which turns the friction log into a deterministic verdict: pass, partial, fail or blocked, a score, and each finding with its criterion and remediation. To price a log by hand, run python3 -m a11y_toolkit.a11yjourney friction.json. The verdict is a report like the audits, so a11y_evidence accepts it and the friction list reaches the person who reviews.
A pass means one task was completable non-visually by an AI agent on one page. That is usability evidence. It is not a conformance claim and it does not replace testing with a human screen-reader user. The worked example shows the whole loop, on a failing fixture and on two live sites.
Choose the right check
Form checks can submit test data. Run them against a test site or an environment where submissions are expected. Examples and command options
Coverage and validation
48 of 55 A/AA criteria carry at least one automated signal (87%) in the supported WCAG 2.2 check modes. A signal covers a specific condition within a criterion. Any signal counts, even a partial one: a criterion appears in this count as soon as one of its conditions is checked, which says nothing about the others. The sample, the selected checks and the manual review determine what a reviewer can conclude about conformance. The evidence pack shows those distinctions criterion by criterion. Manual review checklist · Standards and mappings
The score is 100 minus 12, 6 or 2 points for each high, medium or low finding. It ranks what the automated checks saw; it is not a share of WCAG. Python callers can turn it into a level with compute_verdict(findings, score): one of serious_findings, clean, high_score or needs_improvement, where clean only means no automated findings.
For browser-based transcripts, the browser's accessibility tree is the source. Use a real screen reader for spoken-output verification. Screen-reader cross-check
MCP tools and prompts
The project ships 37 MCP tools, 5 prompts and a skill for repeatable audits and review. The CLI also includes regression and corpus commands. Agent skill · Agent documentation index
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.
The toolkit runs as your local user. Local file arguments can read or write files that user can access. URL and browser checks contact the pages you specify. The optional Nu HTML validation tool sends the selected URL or HTML to its configured validator. Keep authenticated browser session files local. Security policy and private reporting
Run make test from the repository root. Install Playwright and Chromium to exercise the browser suites. The tool inventory and agent index derive from the MCP definitions, and CI checks that they stay in sync. Architecture · Changelog
Fix a bug, improve a recipe or add a locale. Locale packs can be validated with python3 tests/test_locales.py. Translation guide · Good first issues · Discussions
I have been auditing websites for accessibility since 2003. I built this toolkit so the person fixing an issue can find it and the person reviewing the fix can check the evidence. If a result surprises you, share the smallest page that reproduces it. Jesús Quintana Fernández · Report an issue
The toolkit is used by a11y.es for hosted accessibility monitoring. a11y.es
The code is MIT-licensed. Modified distributions use their own name and branding. License
Released: Nov 29, 2026
Author: Jesús Quintana Fernández
Both files in this release have provenance metadata.
View provenance details
mcp model-context-protocol mcp-server accessibility a11y wcag wcag22 wcag-2-2 contrast audit coding-agent ai-coding-agent eaa ada screen-reader playwright ai-agents
Development Status 5 - Production/Stable
Intended Audience Developers
Operating System OS Independent
Programming Language Python :: 3
Topic Internet :: WWW/HTTP :: Browsers
Software Development :: Quality Assurance
Release files for a11y-toolkit 5.37.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.1 MB
Release files / a11y_toolkit-5.37.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Release files / a11y_toolkit-5.37.0-py3-none-any.whl
Security for a11y-toolkit 5.37.0
Both files in this release have been uploaded with provenance metadata.
With provenance a11y_toolkit-5.37.0.tar.gz Nov 29, 2026
With provenance a11y_toolkit-5.37.0-py3-none-any.whl Nov 29, 2026
Attestation for a11y_toolkit-5.37.0.tar.gz
Attestation for a11y_toolkit-5.37.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files Full provenance
Nov 29, 2026 2 release files Full provenance
Nov 27, 2026 2 release files Full provenance
Nov 26, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 6, 2026 2 release files Full provenance
Nov 1, 2026 2 release files Full provenance
Oct 31, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 29, 2026 2 release files Full provenance
Oct 28, 2026 2 release files Full provenance
Oct 25, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 17, 2026 2 release files Full provenance
Oct 16, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 19, 2026 2 release files Full provenance
Sep 18, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 13, 2026 2 release files Full provenance
Sep 8, 2026 2 release files Full provenance
Sep 7, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











