Skip to main content

MCP server for accessibility testing with Cloudflare bypass using Camoufox and axe-core

Project description

a11y-mcp

PyPI License: MIT

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-mcp

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"]
    }
  }
}
Other editors (Cursor, VS Code, Zed, etc.)

Most editors use the same format. Add to your MCP config:

{
  "mcpServers": {
    "a11y": {
      "command": "uvx",
      "args": ["a11y-mcp"]
    }
  }
}

Config locations:

  • Cursor: ~/.cursor/mcp.json
  • VS Code (Continue): .continue/config.json under experimental.modelContextProtocolServers
  • VS Code (Cline): Cline MCP settings
  • Zed: ~/.config/zed/settings.json under context_servers

Tools

Tool Description
scan_page Scan a URL for WCAG violations
scan_element Scan a specific CSS selector
get_violations Get detailed violation info from last scan
get_full_report Full axe results (violations, passes, incomplete)
export_report Export as JSON, HTML, or CSV
set_wcag_level Set WCAG level (A, AA, AAA, 21A, 21AA, 22AA)
configure_rules 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.com

WCAG Levels

Level Standard
A, AA, AAA WCAG 2.0
21A, 21AA WCAG 2.1
22AA 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
pytest

Debug with the MCP inspector:

npx @modelcontextprotocol/inspector uvx a11y-mcp

License

MIT. Bundles axe-core (MPL-2.0).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a11y_mcp-0.1.0.tar.gz (165.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a11y_mcp-0.1.0-py3-none-any.whl (166.9 kB view details)

Uploaded Python 3

File details

Details for the file a11y_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: a11y_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 165.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for a11y_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28bd2b955305c8e7a8ae48f7fe4842982e2e91b8a0aa364144f19a20d8e91073
MD5 581c51667624563e053f7588187ebc92
BLAKE2b-256 c23701e3ef9a06e8891f45412c1aeba4f4ace2d121d867a4a971dff27ac2dc47

See more details on using hashes here.

File details

Details for the file a11y_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: a11y_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 166.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for a11y_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd92f554251daceb2789abf78fbfc8008e468c30989f4d0a1e5066ad105a6e21
MD5 f56d0e73cf68fa9bf0964e4f0d9f20c4
BLAKE2b-256 23226f986dba38fd07a130006643304f5f7ab3d181a24358ec4475dec7d403a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page