Skip to main content

MCP plugin for accessibility testing using Axe-core

Project description

mcp-axe

PyPI version

🧪 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.

📦 Installation

PyPI

You could use mcp-axe from pypi package https://pypi.org/project/mcp-axe/

API Usage

Clone this repo and install in editable mode:

#optional
#git clone https://github.com/yourname/mcp-axe.git
#cd mcp-axe

python3 -m venv .venv && source .venv/bin/activate
pip install -e .

MCP Client

If you install direct from pip The configure Claude as below

{
  "mcpServers": {
    "axe-a11y": {
      "command": "python3",
      "args": ["-m", "mcp_axe"],
      "cwd": "."
    }
  }
}

If you are on development mode then configure claude as below

{
  "mcpServers": {
    "axe-a11y": {
      "command": "/path/to/.venv/bin/python",
      "args": ["-m", "mcp_axe"],
      "cwd": "/path/to/mcp-axe"
    }
  }
}

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

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.6.tar.gz (8.3 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.6-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_axe-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0e0d76561ff9f971f71db9631c6d0ecdeeb86cd1b190aa043aace090256ee220
MD5 831b0da214983114b5c68aae2a6f24da
BLAKE2b-256 064dddbd73b22cafb40e257d64b99dd890abd98b591b3da58604b3ab4b6d5c05

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mcp_axe-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9eea245d28272dc82f708244a4b99aaef95c251616a1eb378c84f7c499094abc
MD5 904f1e87814d6559031e6278ae6b7dda
BLAKE2b-256 0a4c67d0f881f3e72d975ee2b9cde4022e25b28d266e7e1a70fc96e769606e4b

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