Skip to main content

MCP plugin for accessibility testing using Axe-core

Project description

🧪 mcp-axe: Accessibility Testing Plugin using Axe-core

mcp-axe is an MCP-compatible plugin for automated accessibility scanning using Deque's axe-core. It supports both Selenium and Playwright engines and provides a CLI and FastAPI interface for scanning URLs, raw HTML content, and batches — all enriched with screenshot capture and optional reporting.

📦 Installation

Clone this repo and install in editable mode:

#git clone https://github.com/yourname/mcp-axe.git
#cd mcp-axe
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

CLI Usage

Scan a URL

mcp-axe scan-url https://broken-workshop.dequelabs.com --engine selenium --no-headless --save --output-json --output-html

Scan a local HTML file

mcp-axe scan-html path/to/your/file.html --browser chrome --no-headless --save --output-json --output-html

Batch scan multiple URLs:

mcp-axe batch-scan "https://broken-workshop.dequelabs.com,https://google.com" --engine selenium --browser chrome --headless --save --output-json

Summarize a saved report:

mcp-axe summarize report_selenium_chrome.json --output-json --save

API Usage

Run the FastAPI server locally:

uvicorn mcp_axe.api:app --reload --app-dir src

Available Endpoints:

Endpoint Description
POST /scan/url Scan a live URL
POST /scan/html Scan raw HTML content
POST /scan/batch Scan multiple URLs
POST /scan/summarise Summarize violations

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

mcp_axe-0.1.1.tar.gz (158.1 kB view details)

Uploaded Source

Built Distribution

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

mcp_axe-0.1.1-py3-none-any.whl (158.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_axe-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_axe-0.1.1.tar.gz
  • Upload date:
  • Size: 158.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mcp_axe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4797b68746469b3de31d96507201a3507370173368fb97ff1f5168864a79b065
MD5 d85266421211ff4d969cf279a63edc8d
BLAKE2b-256 0c93c209e13867008b82d9921fc3e5a8e96aa69eb83024e92a5f40d584ab4ffc

See more details on using hashes here.

File details

Details for the file mcp_axe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_axe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 158.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mcp_axe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3248cc5cd2568e5c955c32493c596d4fe8b2c97814fb9b804c05f8182ea4f443
MD5 81e0df7da6d55525c6b7c1d9c51f9a56
BLAKE2b-256 af2fd36b2a6b360ec21cea4846dc087957adc60a961d16d317dd386d4ef5649a

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