a11y-mcp
This server provides automated web accessibility auditing using axe-core, with built-in Cloudflare/bot protection bypass via an anti-detect browser (Camoufox).
Scan entire pages (
scan_page): Navigate to any URL and run a full WCAG accessibility audit, with automatic Cloudflare bypass and configurable conformance level.Scan specific elements (
scan_element): Target a CSS selector on the current page to audit just that element and its descendants.Retrieve violation details (
get_violations): Get a detailed list of accessibility violations from the most recent scan, including affected HTML elements, WCAG references, and remediation guidance.Get full reports (
get_full_report): Access a comprehensive report covering violations, passes, incomplete checks, and inapplicable rules.Export reports (
export_report): Export scan results in JSON (machine-readable), HTML (stakeholder-friendly), or CSV (spreadsheet/tracking) formats.Set WCAG conformance level (
set_wcag_level): Configure the WCAG standard to test against — supports WCAG 2.0 (A, AA, AAA), 2.1 (21A, 21AA), and 2.2 (22AA).Configure rules (
configure_rules): Enable or disable specific axe-core rules (e.g., color-contrast, image-alt) to customize subsequent scans.
Allows scanning of Cloudflare-protected websites by bypassing bot protection mechanisms like JavaScript challenges and Turnstile using Camoufox.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@a11y-mcp check accessibility of https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
a11y-mcp
MCP server for running axe-core accessibility audits. Uses Camoufox to bypass Cloudflare and other bot protection.
Install
# Claude Code
claude mcp add a11y -- uvx a11y-mcp
# Or with pip
pip install a11y-mcpRelated MCP server: Accessibility MCP Server
Configuration
For Claude Desktop, add to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"a11y": {
"command": "uvx",
"args": ["a11y-mcp"]
}
}
}Most editors use the same format. Add to your MCP config:
{
"mcpServers": {
"a11y": {
"command": "uvx",
"args": ["a11y-mcp"]
}
}
}Config locations:
Cursor:
~/.cursor/mcp.jsonVS Code (Continue):
.continue/config.jsonunderexperimental.modelContextProtocolServersVS Code (Cline): Cline MCP settings
Zed:
~/.config/zed/settings.jsonundercontext_servers
Tools
Tool | Description |
| Scan a URL for WCAG violations |
| Scan a specific CSS selector |
| Get detailed violation info from last scan |
| Full axe results (violations, passes, incomplete) |
| Export as JSON, HTML, or CSV |
| Set WCAG level (A, AA, AAA, 21A, 21AA, 22AA) |
| Enable/disable specific axe rules |
Usage
> Scan https://example.com for accessibility issues
> Export an HTML report for the last scan
> Check WCAG 2.2 AA compliance for https://adobe.comWCAG Levels
Level | Standard |
| WCAG 2.0 |
| WCAG 2.1 |
| WCAG 2.2 |
Default is AA.
Cloudflare Bypass
This uses Camoufox, an anti-detect browser with fingerprint spoofing at the C++ level. It handles JavaScript challenges, Turnstile, and most bot detection automatically.
On first run, Camoufox downloads a browser binary (~300MB).
Requirements
Python 3.10+
macOS, Linux, or Windows
Troubleshooting
Browser won't launch: Run python -c "import camoufox; camoufox.install()"
Cloudflare still blocking: Some sites have aggressive detection. The first visit may require manual verification.
axe-core won't inject: Likely a strict CSP. Try a different page on the same domain.
Development
git clone https://github.com/antonio-rmrz/a11y-mcp && cd a11y-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
python -m camoufox fetch
pytestDebug with the MCP inspector:
npx @modelcontextprotocol/inspector uvx a11y-mcpLicense
MIT License - see LICENSE for details.
Credits
axe-core - Accessibility testing engine by Deque
Camoufox - Anti-detect browser
MCP - Model Context Protocol by Anthropic
Related Projects
mcp-server-fetch - Web content fetching
mcp-server-puppeteer - Browser automation
mcp-server-playwright - Playwright browser control
Available Tools
7 toolsconfigure_rulesA
Enable or disable specific accessibility rules.
Use this to customize which rules are checked during scans. Changes apply to all subsequent scans until reconfigured.
Common rules to disable:
color-contrast: Color contrast checks
image-alt: Image alt text requirements
link-name: Link text requirements
region: Landmark region requirements
Args: rules: Map of rule IDs to enabled status. Example: {'color-contrast': false}
Returns: Confirmation of applied configuration
Inputs: rules (required). Returns: object
export_reportA
Export accessibility report in the specified format.
Generates a formatted report from the last scan results.
Formats:
json: Machine-readable JSON with full details
html: Styled HTML report for stakeholders
csv: Spreadsheet-compatible format for tracking
Args: format: Output format - 'json', 'html', or 'csv'
Returns: Formatted report content as a string
Inputs: format (required). Returns: object
get_full_reportA
Get complete accessibility report from the last scan.
Includes violations, passes, incomplete checks, and inapplicable rules. Use this for comprehensive analysis of accessibility compliance.
Returns: Complete scan results including all categories (violations, passes, incomplete, inapplicable)
Inputs: no named parameters. Returns: object
get_violationsA
Get detailed list of violations from the most recent scan.
Returns full violation details including affected elements, WCAG references, and remediation guidance.
Returns: List of violations with complete details including affected HTML elements
Inputs: no named parameters. Returns: object
scan_elementA
Scan a specific element on the current page for accessibility issues.
Must be called after scan_page() has loaded a page. Runs axe-core on just the specified element and its descendants.
Args: selector: CSS selector for the element to scan (e.g., '#main-nav', '.form-container')
Returns: Accessibility scan results for the specified element
Inputs: selector (required). Returns: object
scan_pageA
Navigate to a URL, bypass Cloudflare if present, and run an accessibility scan.
This tool uses an anti-detect browser (Camoufox) that can bypass Cloudflare protection, then injects axe-core and runs a full accessibility audit.
Args: url: The URL to scan for accessibility issues wcag_level: WCAG conformance level (A, AA, AAA, 21A, 21AA, 22AA). Default: AA wait_for_cloudflare: Wait for Cloudflare challenges to complete. Default: True
Returns: Summary of accessibility scan including violation counts by severity
Inputs: url (required), wcag_level, wait_for_cloudflare. Returns: object
set_wcag_levelA
Set WCAG conformance level for accessibility testing.
Available levels:
A: WCAG 2.0 Level A (minimum accessibility)
AA: WCAG 2.0 Level AA (standard compliance target, recommended)
AAA: WCAG 2.0 Level AAA (enhanced accessibility)
21A: WCAG 2.1 Level A
21AA: WCAG 2.1 Level AA
22AA: WCAG 2.2 Level AA (latest standard)
Args: level: WCAG level code (A, AA, AAA, 21A, 21AA, 22AA)
Returns: Confirmation of WCAG level setting with tags that will be used
Inputs: level (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
All tools have clearly distinct purposes: configuration (rules and WCAG level), scanning (page and element), and result retrieval (full report, violations, export). No ambiguous overlap.
All tool names follow a consistent verb_noun snake_case pattern (e.g., configure_rules, scan_page, get_violations), making the tool set predictable.
Seven tools cover the essential workflow of accessibility testing: configuration, scanning, and reporting. The scope is appropriate without unnecessary tools.
Core workflows are covered, but minor gaps exist: there is no tool to retrieve current configuration (e.g., enabled rules or WCAG level) or to list available rules, which could hinder agents needing to inspect settings.
Maintenance
Related MCP Connectors
Scan URLs or HTML for WCAG 2.2 violations. 75-rule manifest, weighted score, shareable reports.
Run WCAG accessibility scans on websites, list each issue with its element, and triage from chat.
Scan URLs for WCAG 2.1 violations, generate AI fixes, and produce VPAT 2.5 compliance reports.
Deterministic axe-core accessibility scans (WCAG 2.1 AA, EN 301 549, PDF/UA) via your account.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables automated web accessibility scans for WCAG compliance using Playwright and Axe-core, providing visual and JSON reports with remediation guidance.254,102 npm59MIT
- AlicenseBqualityDmaintenanceEnables AI agents to perform comprehensive accessibility audits on websites using Playwright and axe-core against WCAG standards. Provides detailed compliance reports with violation summaries and remediation guidance across multiple browsers.3MIT
- AlicenseAqualityDmaintenanceEnables accessibility testing of websites and HTML content using axe-core and IBM Equal Access engines. Supports WCAG compliance checking, multi-viewport testing, and provides detailed violation reports with remediation guidance.51MIT
- AlicenseAqualityDmaintenanceEnables AI agents to perform comprehensive web accessibility checks (WCAG 2.1/2.2) including color contrast analysis, ARIA validation, and full accessibility report generation without requiring any API key.8MIT