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

Cursor

{
  "mcpServers": {
    "mcp-axe": {
      "command": "mcp-axe",
      "args": ["run", "--port", "9788"]
    }
  }
}

Claude

{
  "mcpServers": {
    "mcp-axe": {
      "command": "mcp-axe",
      "args": ["run", "--port", "9788"],
      "workingDirectory": "${projectRoot}",
      "port": 9788,
      "transport": "sse",
      "ssePath": "/sse",
      "messagePath": "/messages"
    }
  }
}```

## CLI Usage

### Scan a URL
```bash
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.5.tar.gz (7.6 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.5-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_axe-0.1.5.tar.gz
  • Upload date:
  • Size: 7.6 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.5.tar.gz
Algorithm Hash digest
SHA256 6eeb1c1c84e35084199f907dd755c231d0d9e4ffef6f18902b097bf4f009e930
MD5 4c4a036a1553bf9c3b6c642fe18820d1
BLAKE2b-256 cf65eb00e903a941a5b529d2bc7f18d22995d89e565e4f12d74df0f08b4d2241

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_axe-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 44f25e35d0edcdb84a05c0c78dcd1518dc0b95980218ba98539b515367f056b0
MD5 a79cee43955329da5ce1fc3df5bb100d
BLAKE2b-256 af0e2725080edb538c8301624d268ebaae318d5a6958caf5c53ef88776ade060

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