# mcp-accessibility-scanner [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/JustasMonkev/mcp-accessibility-scanner  
**GitHub Stars:** 59  
**npm Downloads (last month):** 15597  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-accessibility-scanner

## Description
MCP server for automated web accessibility scanning with Playwright and Axe-core.

## Tools
Capabilities this server exposes over MCP:

- **scan_page** — Performs a comprehensive accessibility scan on the current page using Axe-core.
- **get_scan_findings** — Use this read-only tool to page through the evidence from **one observation**, even after navigating away. It reads memory, not the current page. Start with:
- **audit_site** — Crawls and scans multiple internal pages, then aggregates violations across the site.
- **scan_page_matrix** — Viewport variants require a configured viewport (for example `--viewport-size=1280,720`). On native-sized browser tabs, use variants without viewport changes; the tool rejects viewport changes rather than permanently converting the tab to a fixed viewport. Cancellation waits for an active Axe scan…
- **audit_keyboard** — Audits real keyboard focus behavior by pressing Tab (and optional Shift+Tab) with practical heuristics.
- **audit_keyboard_operation** — Exercises a caller-defined keyboard scenario and checks the outcome after each key. Unlike `audit_keyboard`, this tests operation: opening a menu, selecting an option, dismissing a dialog, or returning focus. It does not discover tasks or decide which outcome your application should produce.
- **audit_form_validation** — Exercises one caller-defined invalid-input case: reaches the named text inputs/textarea fields through keyboard navigation, replaces their contents through keyboard input, activates the supplied submit control, and inspects the expected error/status feedback. It does not discover forms, choose inva…
- **audit_screen_reader** — Inspects the browser's accessibility tree (`page.ariaSnapshot`), accessible names and element geometry for potential accessibility issues. No actual screen reader is installed or driven, and its announcements and interactions are not tested.
- **audit_text_spacing** — Stress-tests the current page against WCAG 1.4.12 Text Spacing (AA). It applies the four user overrides the criterion requires content to survive, compares text geometry before and after, and reports text that ends up hidden or colliding. It then removes the overrides, so the page is left as it was…
- **browser_navigate** — Navigate to a URL.
- **browser_navigate_back** — Go back to the previous page.
- **browser_navigation_timeout** — Set default navigation timeout for existing tabs. Timeouts apply to the underlying page and are shared across sessions attached to the same live page.
- **browser_default_timeout** — Set default operation timeout for existing tabs. Timeouts apply to the underlying page and are shared across sessions attached to the same live page.
- **browser_snapshot** — Capture accessibility snapshot of the current page (better than screenshot for analysis).
- **browser_find** — Search the current page accessibility snapshot without returning the full snapshot.
- **browser_click** — Perform click on a web page element.
- **browser_type** — Type text into editable element.
- **browser_hover** — Hover over element on page.
- **browser_drag** — Perform drag and drop between two elements.
- **browser_drop** — Simulate an external drag and drop of files or clipboard-like data onto an element, for testing drop zones that never see a drag start inside the page.
- **browser_select_option** — Select an option in a dropdown.
- **browser_fill_form** — Fill multiple fields with one call. Generated Playwright code preserves checkbox/radio booleans and selects combobox options by label, matching the performed action.
- **browser_press_key** — Press a key on the keyboard.
- **browser_evaluate** — Evaluate a JavaScript expression on the page, or on a specific element when a `ref` is provided. The function's return value is serialized back as the result.
- **browser_take_screenshot** — Take a screenshot of the current page.
- **browser_pdf_save** — Save page as PDF.
- **browser_install** — Install the configured browser engine (use when browser executable is missing).
- **browser_close** — <!-- coderabbit-ai-generated:v1 -->
- **browser_resize** — Resize the browser window.
- **browser_emulate_media** — Emulate CSS media features on the current page without resetting omitted features.
- **browser_tabs** — Manage browser tabs in one tool.
- **browser_session_open** — Opens a separate browser session — its own browser context with its own tabs, cookies and storage — and returns its opaque handle (`bs_...`) both in the result text and as `structuredContent.browserSessionId`. Pass that handle as the `browserSessionId` argument of other browser tools to run them in…
- **browser_session_close** — Closes a session opened with `browser_session_open` and releases its browser resources.
- **browser_console_messages** — Returns console messages since the last explicit `browser_navigate` call. Like the network request list, this includes messages from pages reached by link clicks, form submits or back navigation in the same tab. Each tab keeps the most recent 200 of these messages; when older ones were dropped, the…
- **browser_network_requests** — Returns the current request list, numbered so a single request can be inspected with `browser_network_request`. Set `all: true` to include up to 200 retained requests from earlier explicit `browser_navigate` calls, alongside the current requests. The current list keeps the most recent 200 requests…
- **browser_network_request** — Returns credential-redacted request/response headers and body metadata for one request from the `browser_network_requests` listing.
- **browser_wait_for** — Cancelling an MCP request stops its pending timer or text waits and releases the browser session after those waits settle. This does not make other browser actions cancellable.
- **browser_handle_dialog** — Handle browser dialogs (alerts, confirms, prompts).
- **browser_file_upload** — Upload files to the page.
- **browser_verify_element_visible** — Verify an element by ARIA role/name.
- **browser_verify_text_visible** — Verify text visibility.
- **browser_verify_list_visible** — Verify list items at a snapshot reference.
- **browser_verify_value** — Verify an element value or checked state.
- **browser_mouse_move_xy** — Move mouse to specific coordinates.
- **browser_mouse_click_xy** — Click at specific coordinates.
- **browser_mouse_drag_xy** — Drag from one coordinate to another.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-accessibility-scanner": {
    "command": "npx",
    "args": ["-y","mcp-accessibility-scanner"]
  }
}
```

## Documentation

## What mcp-accessibility-scanner does

mcp-accessibility-scanner exposes browser automation and accessibility auditing through the Model Context Protocol. It works with web pages opened in a Playwright-controlled browser and supports automated checks for WCAG 2.0, 2.1, and 2.2 criteria at A, AA, and AAA levels.

The server covers both broad scans and focused checks. Axe-core findings can include rule details, JSON node information, remediation links, and optional screenshot annotations. Additional audits examine keyboard focus, caller-defined keyboard operations, invalid form submission behavior, browser accessibility-tree information, and text-spacing resilience.

It also provides general browser controls for navigation, interaction, page inspection, screenshots, PDFs, downloads or uploads, dialogs, history, and related workflows. Reach for it when an agent needs to inspect or exercise a real web interface rather than analyze source files alone.

## How it works

The default process is an MCP server using stdio. An MCP client sends browser and audit tool calls, while the server manages the browser session and current page. A typical workflow starts with `browser_navigate`, followed by `scan_page` or one of the focused audit tools.

`scan_page` runs Axe-core against the current page. Setting `annotateScreenshot` to true produces a full-page PNG with findings marked on the image and returns a file resource link. It does not create a JSON report. Keyboard, form, screen-reader-tree, text-spacing, site, and matrix audits save JSON reports and return summaries with report links.

`get_scan_findings` pages through evidence from one scan observation stored in memory, so findings remain available after navigation. `audit_site` crawls and scans multiple internal pages, while `scan_page_matrix` checks viewport variants when the browser has a configured viewport.

## Setup and configuration

Install Chrome before the first audit when using the system-browser setup; installing the npm package does not install a browser. A global installation uses:

```bash
npm install -g mcp-accessibility-scanner --allow-scripts=re2
```

The `re2` option allows its native dependency installation on npm 12. The installed `mcp-accessibility-scanner` command can then be registered as a stdio MCP server. For example:

```json
{
  "mcpServers": {
    "accessibility-scanner": {
      "command": "mcp-accessibility-scanner",
      "args": ["--headless", "--isolated", "--output-dir", "./a11y-output"]
    }
  }
}
```

`--isolated` uses a new browser profile. Output paths are relative to the server working directory, so an absolute path may be preferable when the client launches the process elsewhere. Docker images are also available with Chromium included. Docker Compose exposes an unauthenticated MCP HTTP endpoint on `127.0.0.1:8931`; it should not be exposed to untrusted networks.

## Tools and capabilities

- Run Axe-core scans with `scan_page` and retrieve stored evidence with `get_scan_findings`.
- Crawl internal pages through `audit_site` and test configured viewport variants with `scan_page_matrix`.
- Check focus traversal, caller-defined keyboard workflows, invalid form feedback, accessibility-tree structure, and text-spacing behavior.
- Navigate, click, type, hover, drag, select options, fill forms, press keys, evaluate JavaScript, resize pages, and emulate media features.
- Capture accessibility snapshots, screenshots, and PDFs, and configure navigation or operation timeouts.
- Save JSON audit reports and optionally create annotated full-page screenshots.

## Limitations and notes

Automated checks do not certify WCAG compliance. Manual accessibility testing remains necessary. The screen-reader audit inspects `page.ariaSnapshot`, accessible names, and element geometry; it does not operate an installed screen reader or test its announcements.

Caller-defined keyboard and form audits test the scenario supplied to them. They do not discover tasks, choose the intended result, or determine which invalid case should be used. Viewport-changing matrix variants require a configured viewport, while native-sized tabs reject viewport changes rather than becoming permanently fixed.

The stdio configuration requires the client to find the installed command on its `PATH`. Without a Docker volume mount, screenshots and reports created inside a container are lost when that container exits.

_Full upstream README: https://allmcps.com/mcp/mcp-accessibility-scanner/readme_

