Fix accessibility once, in the component
One inaccessible component becomes thousands of failures across every product that uses it. A11yEngine checks every story in your Storybook, reports issues by component, and stops new ones from reaching your library.
Runs locally in your own Chrome. Nothing is sent to our servers.
Try it in one command
Works with Storybook 7 and later, running or built. Needs Node.js 18.17 or later and Chrome or Edge.
npx -p a11yengine-mcp a11yengine storybook http://localhost:6006
npx -p a11yengine-mcp a11yengine storybook ./storybook-staticA11yEngine Storybook scan of http://localhost:6006
212 of 214 stories scanned in 38 components, 2 failed to render.
7 confirmed issue(s) in 4 component(s); 11 needing review.
Components/IconButton (src/components/IconButton.tsx): 1 confirmed
✗ button-name on button [critical] in 6 stories
Forms/TextField (src/forms/TextField.tsx): 2 confirmed
✗ label on input[type=text] [critical] in 3 stories
✗ color-contrast on p [high] in 9 stories (dark mode only)
Baseline: 1 new, 2 fixed, 4 unchanged.
NEW Forms/TextField: label on input[type=text] [critical]Built for how design-system teams work
Every story, grouped by component
Each story is checked after it renders and its play function finishes, in light and dark mode. The same problem in twelve Button stories is one Button issue, with the stories listed and, in development mode, the file and line.
CI that fails only on new issues
Record today’s issues in a baseline file once. Pull requests then fail only when they add an issue, so your team can fix the backlog over time without blocking every merge.
Fixed at the source by your AI agent
With the MCP server, Claude Code, Cursor or Copilot scans the library, fixes each issue once in the component, and re-checks the affected stories to confirm the fix.
Add it to your pull requests
- Record the current issues once and commit the file:
--baseline a11y-baseline.json --update-baseline - Add the workflow below. It fails only when a change adds an issue, and the job log names it.
- After fixing issues, update the baseline again so they stay fixed.
name: Accessibility
on: pull_request
jobs:
storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx storybook build --quiet
- run: npx playwright install chromium
- run: >
npx -y -p a11yengine-mcp a11yengine storybook ./storybook-static
--baseline a11y-baseline.json --fail-on-newAdd --format sarif --out a11y.sarif to see issues in GitHub code scanning. All options are in the package README.
What it does and does not check
- Measured accuracy: only rules with at least 90% precision on the W3C ACT test cases are reported as confirmed. See the numbers.
- Stories are checked in isolation. Page title, language, landmarks and heading order are switched off for stories; check those on real pages with a site crawl.
- Only the states your stories show. Open menus, errors and hover states need their own stories or play functions.
- Automated testing finds only some issues. Screen reader flow, reading order and meaningful text still need a person.
Coming next: the design-system report
See each component next to every page it affects across your products, for example “Dialog: 3 issues, affects 214 pages across 4 products”, with trends over time. It will be part of the Business and Agency plans. The Storybook scan above stays free.
Using an AI coding agent? Set up the MCP server and ask it to “scan our Storybook at http://localhost:6006 and fix the confirmed issues”.