webability
v1.12.0Free WCAG 2.2/ADA/508 accessibility MCP: scan, AI fixes, verify, vision audit, localhost tunnel
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_page Scan a page for accessibility issues
Scan a web page for WCAG accessibility issues. Works on any URL — deployed sites, localhost, staging. Returns `issues` (violations the scanner stands behind; findings the engines cannot decide are settled by the AI judge — a violation with a fix, or a pass recorded in `judged[]` with its reason — and anything unsettled is dropped, never listed for review) and a `summary`. On React ≤18 / Vue dev builds each issue carries `source` ({file, line, column, component}) read from the live component tree. Every issue carries a structured `fix.op` (add-attribute | set-attribute | remove-attribut…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to scan (e.g. https://webability.io or http://localhost:3000) |
format | string | "compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSO… |
level | string | Highest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it). |
minImpact | string | Only findings at this severity or above (critical > serious > moderate > minor) |
offset | integer | Start the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a… |
rootSelector | string | CSS selector to limit scan scope (optional) |
rules | array | Only these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules. |
sourceRoot | string | Local project root (local installs only). Issues without a framework `source` pointer get `sourceCandidates[]` — files whose contents match the selector's id/class/attribute tokens. |
storageState | string | Local MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state… |
viewport | string | Viewport size (default: desktop) |
wcag | array | Only these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2"). |
widgetView | string | Which DOM to measure when the page embeds the WebAbility widget. "source" (default) blocks our widget so the scan sees the site's own markup. "applied" waits for the widget to finish patching and meas… |
verify_fix Verify an accessibility fix
Re-scan a specific element after applying an accessibility fix and confirm the violation is gone. After you edit the code and serve it (deployed, staging, or http://localhost:3000), call this with the URL and the selector you fixed to get a machine-checked verified: true|false (DOM engines only — visual_audit findings are out of scope). Pass the WCAG criterion (e.g. "1.1.1") or axe rule id (e.g. "color-contrast") to check just that criterion; omit it to require the element be clean of ALL violations. A blocked page (bot-challenge / HTTP error) is reported as unverified, never a pass — veri…
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the element you fixed — use the `selector` from the original scan_page issue |
url * | string | URL now serving the fix (deployed, staging, or http://localhost:3000). Also accepted as `page` or `pageUrl`. |
viewport | string | Viewport size (default: desktop). Use the same viewport the issue was found at. |
wcag | string | Optional: WCAG criterion (e.g. "1.1.1", "1.4.3") or axe rule id (e.g. "color-contrast") to verify specifically. Omit to require the element be free of ALL violations. |
diff_scan Compare two accessibility scans
Compare two scans of the same page and report what changed: `fixed[]` (in the baseline, gone now), `new[]` (regressions — not in the baseline, present now), `remaining[]` (still there). Page-level complement to verify_fix (one element). Baseline is a scan_history id (`baselineId`, local installs) or a live scan of `baselineUrl`; current is `url` (scanned live now) or another history id (`currentId`). Live scans run a second time when they differ, and a difference that does not hold goes to `unstable[]`, so a changed page can take twice as long. Findings are matched by issue id (rule + elemen…
| Parameter | Type | Description |
|---|---|---|
baselineId | string | scan_history id of the BASELINE scan (local installs only) |
baselineUrl | string | Scan this URL live as the baseline (e.g. production) — use when there is no stored baseline |
currentId | string | scan_history id to use as the CURRENT side instead of scanning `url` |
format | string | "compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSO… |
level | string | Highest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it). |
minImpact | string | Only findings at this severity or above (critical > serious > moderate > minor) |
rootSelector | string | CSS selector to limit live scans to (optional) |
rules | array | Only these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules. |
url | string | URL to scan now as the CURRENT side (deployed, staging, or http://localhost:3000). Omit when passing currentId. |
viewport | string | Viewport for live scans (default: desktop). Use the same viewport the baseline used. |
wcag | array | Only these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2"). |
widgetView | string | Which DOM both live scans measure when the page embeds the WebAbility widget. "source" (default) blocks our widget; "applied" measures the visitor's patched view. Both sides must measure the same DOM… |
start_audit Start a full accessibility audit
[Full — FREE with a WebAbility account. Not runnable in Lite. Connect hosted MCP at https://mcp.webability.io/mcp (dashboard or Smithery: webability/accessibility), authenticate, then call `start_audit`.] Kick off a FULL accessibility audit deliverable for a URL — a persistent, timestamped artifact, not an inline scan. Runs the server-side pipeline (axe + advanced checks + mobile viewports + annotated screenshots + optional agent spot-check) and produces a downloadable report and a formatted Excel workbook (Cover / Status / Barriers / ADA context sheets) stored durably. Returns immediately…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to audit (a public/staging URL the server can reach, or a webability-tunnel URL — not localhost) |
includeAgent | boolean | Also run the agentic manual-audit pass (keyboard/focus/modal exploration). Slower. Default false. |
tunnel_secret | string | Secret printed by `webability-tunnel`. Required when `url` is a tunnel URL; the URL alone will be refused by the relay. Ignored otherwise. |
add_site Add a site to the account
Add a website to the signed-in WebAbility account. The site gets the full widget for its first 30 days and a first scan. Returns the site id and plan tier. Next: put the get_install_snippet tag on the site, and use create_upgrade_link to get a payment link for the WebAbility Pro plan. Needs a free WebAbility account (an AI agent can sign itself up with "Sign in with AgentID").
| Parameter | Type | Description |
|---|---|---|
url * | string | The site to add, for example https://shop.example.com. One domain per site. |
list_sites List the account sites and plans
List the sites on the signed-in WebAbility account with each site id, plan tier and the date the current plan ends. Use it to check that a payment activated WebAbility Pro on a site. Needs a free WebAbility account.
get_install_snippet Get the widget install tag
Get the one-line script tag that installs the WebAbility accessibility widget. Put it in the <head> or before </body> of every page of a site added with add_site. The widget finds the site by its domain, so the same tag works on every site. No account needed.
create_upgrade_link Get a WebAbility Pro payment link
Get a Stripe Checkout link that puts one site on the WebAbility Pro plan (the widget subscription). Give the link to the human who pays (your owner). When they pay, the plan activates on that site automatically; check with list_sites. You never handle card details. The site must be on the account (add_site first). Needs a free WebAbility account.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The site to upgrade, as added with add_site (for example shop.example.com) |
billing_interval | string | Billing period. Default monthly. |
get_audit Get audit status and report
[Full — FREE with a WebAbility account. Not runnable in Lite. Connect hosted MCP at https://mcp.webability.io/mcp (dashboard or Smithery: webability/accessibility), authenticate, then call `get_audit`.] Check an audit started with start_audit: returns overall status, per-step progress (scan → viewports → screenshots → agent → excel → publish), and — once complete — a severity summary plus short-lived download URLs for the report (JSON) and the Excel workbook. Poll every ~15s while status is pending/running. Only the account that started an audit can read it. Free with a WebAbil…
| Parameter | Type | Description |
|---|---|---|
id * | number | The audit id returned by start_audit |
flow_scan Scan a multi-page user flow
Scan a multi-page user journey. Walks startUrl plus the `autoNavigate` URLs sequentially (deterministic — one page fully rendered and scanned before the next), then returns ONE consolidated report with issues deduplicated across pages, each carrying the same fix payload as scan_page. Every requested URL gets an explicit outcome in `pages[]` (scanned / nav_failed / scan_failed / redirected_duplicate / duplicate_request / skipped_cap / blocked — bot-challenge, not a clean page / auth_redirect — storageState was given but the page is a sign-in page, session likely expired) — a page is nev…
| Parameter | Type | Description |
|---|---|---|
startUrl * | string | Starting URL of the journey |
autoNavigate | array | The URLs to walk after startUrl, in order (the MCP server is headless and cannot discover a journey interactively). Omit or pass [] to scan only startUrl as a single page. |
format | string | "compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSO… |
level | string | Highest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it). |
maxPages | number | Max pages to scan (default 10; at most 10 on the hosted server) |
minImpact | string | Only findings at this severity or above (critical > serious > moderate > minor) |
offset | integer | Start the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a… |
rules | array | Only these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules. |
sourceRoot | string | Local project root (local installs only) for `sourceCandidates[]` on issues without a framework `source` pointer. |
storageState | string | Local MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state… |
wcag | array | Only these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2"). |
detect_framework Detect the site framework
Detect a page's stack as two separate fields: `framework` — the application framework, CMS or site builder (e.g. nextjs, nuxt, sveltekit, vitepress, astro, gatsby, wordpress, shopify, mediawiki, vue, react; "unknown" when no signal) — and `cssToolkit` (tailwind, bootstrap, mui, plain-css). Lists the evidence it used and the value to pass as generate_ai_fix `framework`. scan_page reports the same two fields from the same detection.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to inspect |
generate_ai_fix Suggest a framework-aware fix
Generate framework-aware fix alternatives for a specific accessibility issue. For color contrast issues, returns 3 alternatives (minimal, brand-aligned, high contrast); brand palette is auto-extracted from the live URL using our scanner if `brandColors` is omitted. For label/ARIA issues, returns 1-2 alternatives. Each alternative includes ready-to-paste code for the detected framework.
| Parameter | Type | Description |
|---|---|---|
framework * | string | CSS framework — use detect_framework first |
html * | string | The element's outerHTML — send at most ~600 chars |
issue * | object | string | Issue object from scan_page (with selector, wcag, impact, message, fix.currentValue), or a plain-text issue description |
brandColors | array | Brand palette for brand-aligned suggestions. If omitted on a contrast issue with a `url`, auto-extracted via the scanner. |
context | string | Parent element outerHTML for context (~400 chars) |
url | string | Page URL — also used to auto-extract brand palette for contrast issues if `brandColors` is not provided. |
visual_audit Visual accessibility audit
[Full — FREE with a WebAbility account. Not runnable in Lite. Connect hosted MCP at https://mcp.webability.io/mcp (dashboard or Smithery: webability/accessibility), authenticate, then call `visual_audit`.] Pixel-level accessibility audit using Claude vision. Catches issues that DOM scanners miss: icon contrast (1.4.11), focus visibility (2.4.7), "looks like a button but isn't" (4.1.2), text rendered as images (1.4.5), visual hierarchy mismatches. Takes a URL, opens it in a headless browser, screenshots, and runs vision-based detection. Complements scan_page — run both for full coverage. Si…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to audit visually |
brandColors | array | Brand hex colors for context-aware filtering |
fullPage | boolean | Capture full scrolled page instead of just viewport (default: false) |
viewport | string | Viewport size (default: desktop) |
find_source Find the source file for a selector
Find source files in the local project that contain a given CSS selector. Maps DOM selectors back to source code so you can edit the right file. Searches React/Vue/Svelte/HTML/PHP/Astro files.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector from a scan issue |
rootDir | string | Project root to search (defaults to cwd) |
scan_html Scan an HTML snippet
Scan a raw HTML snippet or component markup without serving it — IN-PROCESS by default (jsdom + WebAbility detectors + axe-core): milliseconds, no browser, no network, so it fits inside a tight edit loop. A snippet is capped at 256 KB, 300 elements and 100 nesting levels, and at 24s per call — past any of those the call is refused with the alternative to use; for a whole page use scan_page. Fragments are auto-wrapped into a document. Returns scan_page's shape (issues / summary) with `fix.op` + `fixability` on every finding. jsdom has no layout, so visual-tier rules (contrast, target size,…
| Parameter | Type | Description |
|---|---|---|
html * | string | HTML content to test — a full document or a fragment |
engine | string | "in-process" (default): jsdom, ms, structural rules. "browser": headless Chromium + axe-core, includes contrast. |
format | string | "compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSO… |
height | number | Viewport height (browser engine only, default 800) |
level | string | Highest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it). |
minImpact | string | Only findings at this severity or above (critical > serious > moderate > minor) |
rules | array | Only these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules. |
tags | array | WCAG tags to check (default ["wcag2a","wcag2aa","wcag21aa","wcag22aa"]) |
wcag | array | Only these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2"). |
width | number | Viewport width (browser engine only, default 1280) |
get_rules List accessibility rules
List accessibility rules from both engines — axe-core (104) and the WebAbility detectors (90+) — with optional filters. Every rule carries `fixability` (mechanical | contextual | visual) and a `fix` op template, so you can pick the rules worth auto-fixing before scanning. Returns ruleId, engine, description, help, helpUrl, tags/wcag, fixability, fix.
| Parameter | Type | Description |
|---|---|---|
engine | string | Which engine's rules to list (default all) |
fixability | string | Only rules of this fixability tier |
rule | string | Only rules whose id contains these whole words (e.g. "link" → link-name, skip-link, not blink; "color-contrast"; case and -/_ insensitive). Also accepted: ruleId, id, query. |
tags | array | axe tag filter (e.g. ["wcag2aa"], ["best-practice"], ["cat.aria"]; a category also works without "cat."). WebAbility rules match on their WCAG criterion tag (e.g. "wcag143"). An unknown tag or categor… |
check_color_contrast Check color contrast
Check text contrast against the WCAG AA threshold (4.5:1, or 3:1 for large text); the AAA verdict is shown only when you pass level: "AAA". Either pass a `foreground` / `background` color pair, or pass `url` + `selector` to read the element's own text color, background (composited from the nearest painted ancestors), font size and weight from the live page; explicit colors win over the page. A gradient or image background is reported as an error, never a guessed ratio. When it fails, suggests BRAND-aligned replacements — extracts the actual brand palette from the `url` page using our scanner…
| Parameter | Type | Description |
|---|---|---|
background | string | Background color (hex or rgb). Optional with url + selector. |
brandColors | array | Pre-supplied brand palette. Skips URL extraction if provided. |
fontSize | number | Font size in px (default 16, or the element's computed size with url + selector) |
foreground | string | Foreground color (hex or rgb). Optional with url + selector. |
isBold | boolean | Whether text is bold (default false, or the element's computed weight with url + selector) |
level | string | Conformance level to judge. Default "AA". "AAA" adds the enhanced-contrast (1.4.6) verdict and AAA palette suggestions. |
selector | string | CSS selector of the text element on `url` (e.g. the `selector` from a scan_page issue) |
url | string | Live page: with `selector`, the colors are read from that element; on a failing pair, the brand palette is extracted from it (uses our scanner — CSS vars + dominant colors). |
check_aria Validate ARIA in HTML or on a page
Validate ARIA attribute + accessible name/role/value usage — in an HTML snippet (`html`) or on a live page (`url`), optionally limited to one element and its descendants (`selector`). Runs axe-core `cat.aria` and `cat.name-role-value` rules (aria-* attribute correctness, role validity, required parents/children, aria-hidden-focus, accessible names). Returns `violations`. A selector that matches nothing, or a page that answers an HTTP error, is an error — never "no violations". Nodes cap at 5 per rule by default — every rule reports nodesTotal + truncated; raise nodeLimit (max 50) or use…
| Parameter | Type | Description |
|---|---|---|
html | string | HTML to test for ARIA correctness (pass this or `url`) |
nodeLimit | number | Max nodes returned per rule (default 5, max 50) |
selector | string | Only report findings on this element and its descendants (e.g. the `selector` from a scan_page issue). ARIA references outside it still resolve. |
url | string | Live page to check (pass this or `html`) |
scan_history List past scans
Browse past scans run through this MCP server. Every scan_page / flow_scan / scan_html / visual_audit / check_aria / verify_fix call is logged locally (~/.webability/scans; local installs only — the hosted server keeps no history). Without arguments, lists recent scans (when, what target, result summary). Pass `id` to retrieve the FULL stored result of one past scan, or `filter` to match a URL/tool substring.
| Parameter | Type | Description |
|---|---|---|
filter | string | Substring match on target URL or tool name (e.g. "webability.io" or "scan_page") |
id | string | A scan id from the history list — returns that scan's full stored response |
limit | number | Max history entries to return (default 20) |
generate_report_pdf Create an accessibility report PDF
Turn scan findings into a branded WebAbility accessibility-report PDF, saved next to the project (local installs only). Pass the `issues[]` array a scan_page call returned plus the page `url`; the tool groups findings by functionality (Low Vision / Mobility / Navigation / Content / Cognitive), computes the WCAG score with the same penalty ladder as the platform, and renders a shareable PDF — free, no account. Use it when the user wants a deliverable to attach to an email, ticket, or compliance thread. Capped at 500 findings. For the full audit deliverable (Excel workbook + evidence screensho…
| Parameter | Type | Description |
|---|---|---|
issues * | array | Findings to include — pass the `issues[]` array from scan_page (message/type/wcag/selector/html/impact/fix). |
url * | string | The scanned page URL (used for the report header and file name) |
widgetDetected | boolean | Whether the WebAbility widget was detected on the page (shown in the report's widget status). |