AccessibilityBrief
v1.1.2Find WCAG 2.2 accessibility issues on your website, get the exact code fix, and rescan to confirm.
Scan a website for accessibility problems with AccessibilityBrief from your terminal or CI, and fail the build when serious issues appear. The same package is an MCP server, so AI coding agents such as Claude Code and Cursor can read your scans and fix the issues in your code. Every scan runs on AccessibilityBrief's servers against WCAG 2.2 A and AA, at desktop and phone size. The full report, with the exact fix for each issue found, is in your AccessibilityBrief account. Exit codes: 0 passed, 1 a gate failed, 2 an error (for example a wrong key or an unknown site).
Summary extracted from the README.
accessibilitybrief
Scan a website for accessibility problems with AccessibilityBrief from your terminal or CI, and fail the build when serious issues appear. The same package is an MCP server, so AI coding agents such as Claude Code and Cursor can read your scans and fix the issues in your code.
export ACCESSIBILITYBRIEF_API_KEY=ab_live_…
npx accessibilitybrief scan https://example.com --fail-on serious
Scanning example.com …
Score 97 out of 100 (automated). 1 page scanned.
Critical 0, serious 0, moderate 1, minor 0
Issues, worst first:
moderate Links with vague text (1 element, 1 page)
Every scan runs on AccessibilityBrief's servers against WCAG 2.2 A and AA, at desktop and phone size. The full report, with the exact fix for each issue found, is in your AccessibilityBrief account.
Requirements
- Node.js 18.17 or newer.
- An AccessibilityBrief Starter, Pro or Agency plan.
- An API key from Settings → API and integrations with the
readandscanscopes. - The site must already be added to your workspace. Each scan uses one manual scan of your plan.
Commands
| Command | What it does |
|---|---|
accessibilitybrief scan <url or site id> |
Start a scan, wait for it, print the result |
accessibilitybrief sites |
List the sites in your workspace |
accessibilitybrief mcp |
Run the MCP server for AI coding agents (started by your AI tool) |
accessibilitybrief --version |
Print the version |
Options
| Option | |
|---|---|
--fail-on critical|serious|moderate|minor |
Exit 1 if an issue is at least this severe (best practices and issues marked won't fix or false positive do not count) |
--min-score 0-100 |
Exit 1 if the automated score is lower |
--no-wait |
Start the scan and print its id |
--json |
Machine-readable output |
--locale en|de |
Language of issue titles |
--timeout <minutes> |
How long to wait (default 20) |
Exit codes: 0 passed, 1 a gate failed, 2 an error (for example a wrong key or an unknown site).
In CI
GitHub Actions, with the AccessibilityBrief action:
- name: Accessibility scan
uses: accessibilitybrief/scan-action@v1
with:
url: https://staging.example.com
api-key: ${{ secrets.ACCESSIBILITYBRIEF_API_KEY }}
fail-on: serious
The result is written to the job summary. Any other CI works with the command itself: set ACCESSIBILITYBRIEF_API_KEY and run npx accessibilitybrief@1 scan <url> --fail-on serious.
MCP server for AI coding agents
Claude Code:
claude mcp add accessibilitybrief --env ACCESSIBILITYBRIEF_API_KEY=ab_live_… -- npx -y accessibilitybrief mcp
Cursor, Claude Desktop, Windsurf and other clients (mcpServers format):
{
"mcpServers": {
"accessibilitybrief": {
"command": "npx",
"args": ["-y", "accessibilitybrief", "mcp"],
"env": { "ACCESSIBILITYBRIEF_API_KEY": "ab_live_…" }
}
}
}
Tools: list_sites, get_latest_scan, get_issue_groups, get_fix_prompt, start_scan, get_scan, mark_issue_status. The key needs read; add scan to let the agent start scans and write to let it mark issues. Setup for VS Code and more: accessibilitybrief.com/docs/mcp.
Then ask your agent: "Get the latest AccessibilityBrief scan for my site, take the worst issue group, fetch its fix prompt and fix it in this repo."
Documentation
Command line · MCP server · API reference
Automated testing detects only a portion of WCAG issues; manual testing is still required.