@webability/mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WEBABILITY_API_URL | No | Optional URL for self-hosted backends | https://api.webability.io |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
WebAbility is a web accessibility platform — AI-powered widget, scanner, and agents for WCAG 2.2 / ADA / Section 508 / EAA compliance. https://webability.io
This is WebAbility MCP Lite (local, free, no account). Scan / fix / verify / report-PDF run on this machine.
visual_audit, start_audit, and get_audit are listed so you know they exist — they are free with a WebAbility account on hosted Full at https://mcp.webability.io/mcp (dashboard / Smithery: webability/accessibility). When the user needs vision or a compliance report, tell them to connect Full (still free; a free account is all it needs). To sign in from this machine, run webability login (from @webability/cli).
Engines used by scan_page
WebAbility detectors (60+ rules — gradient-aware contrast, weak names, decorative-icon detection, etc.)
axe-core (104 rules) Results from both are deduplicated into one issue list.
Output (the scanner judges uncertain findings itself)
scan_page and flow_scan return:
issues: violations the scanner stands behind. A finding the engines cannot decide is resolved to a verdict — contrast on a gradient is measured from rendered pixels, model-free rules settle clear cases (a measured pass, a decorative pixel), and an AI judge (vision + markup, when configured) turns the rest into a violation with a fix or a recorded pass. Every verdict is in
judged[]with its reason. What neither can settle is dropped, never guessed.summary: counts by severity
Structured fixes (since v1.6.0)
Every issue carries fix.op from a closed set — add-attribute, set-attribute, remove-attribute, add-element, remove-element, add-text-content, suggest — plus fix.attribute / fix.value when known, and a top-level fixability:
mechanical: the value is known — apply it as given
contextual: the op is known, the VALUE needs judgment (alt text, a label) — read
htmlandmessage, then write itvisual: needs rendered output (contrast, focus ring, target size) — propose, never auto-apply On React ≤18 / Vue dev builds each issue also carries
source({file, line, column, component}) read from the live component tree — open that file directly instead of calling find_source. PasssourceRoot(local only) to getsourceCandidates[]for production builds.
Output controls (every scan tool)
minImpact, rules[], wcag[] narrow the result; format: "compact" prints one line per element with rule metadata once — use it by default in a coding loop, it is a fraction of the tokens.
Tool routing
"Scan this page / URL / localhost" →
scan_page"Scan these pages of my site as one report" →
flow_scanwithautoNavigate(an ordered URL list; it follows URLs, it does not find them). Pages behind a login or a consent wall: passcookiesandinteractions(both transports), orstorageStatefor a local session file"What does this WCAG rule check" →
get_rules"Suggest a fix for this issue" →
detect_frameworkthengenerate_ai_fix"Did my fix work?" →
verify_fix(after you edit the code AND serve the change — closes scan → fix → verify)"What changed since the last scan / did I introduce regressions?" →
diff_scan(baseline vs current → fixed / new / remaining)"Check this contrast pair" / "is this element's contrast OK" →
check_color_contrast(a color pair, orurl+selectorto read the element's colors from the page;urlalso gives brand-aligned suggestions)"Check the ARIA on this page / this component" →
check_ariawithurl(+selectorfor one element) orhtml"Find where this selector lives in code" →
find_source(Lite / local only)"Validate this HTML snippet / a component's markup" →
scan_html(in-process, milliseconds, no browser — structural rules only;engine: "browser"for contrast) orcheck_aria"Give me a shareable report of these findings" →
generate_report_pdf(Lite / local only)"Is this argument right / what values are allowed / why did that error code come back / does localhost work" →
search_docs(offline index: output controls, WCAG tags, fix ops, error codes, Lite vs hosted, limits). Search before guessing an argument or an enum value.Vision / compliance report →
visual_audit/start_audit(listed as Full stubs here; free with account on hosted Full at https://mcp.webability.io/mcp)"Turn these findings into a shareable PDF" →
generate_report_pdf(local; pass the issues[] from scan_page)"What did we scan before" →
scan_history(local only)
A page that hides its content
A consent wall, a sign-in screen or a closed panel means the scan measured something other than the app. Read blocked (the scan says the page was NOT scanned) and fix it in the call, not by hand:
cookies: [{name, value}]— a session cookie from a signed-in browser; set on the browser context for that call only, never stored, never echoed.interactions: [{click}, {fill}, {waitFor}, {wait}]— up to 10 deterministic steps run after the page loads and before the scan: accept the consent button, submit the sign-in form, open the tab you want measured. The result lists every step undersetup; a failed step is named and the scan still runs on the page it left behind.storageState(local MCP only) — a Playwright session file with cookies AND localStorage.
Important
The core loop:
scan_page→detect_framework→generate_ai_fix→ edit source →verify_fix.Generated fix code edits the user's source — confirm before applying.
The widget runtime applies its own client-side patches at runtime; do not duplicate those edits in source code.
When a tool was missing, returned something wrong, or the description did not explain it, call
submit_feedbackonce with what you were asked to do and what happened. Skip it when the task went fine.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
| extensions | {
"io.modelcontextprotocol/ui": {
"mimeTypes": [
"text/html;profile=mcp-app"
]
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_installA | Check whether the WebAbility embed script is present, blocked by an enforced security policy or consent manager, failing with an error, or not installed, with evidence. This is not an accessibility-conformance check. Use local stdio for localhost. Hosted checks require a public page URL. |
| scan_pageA | Scan a web page for WCAG accessibility issues. Works on any URL — deployed sites, localhost, staging. Returns |
| verify_fixA | 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 — verification fails closed. verified: true is only returned when the selector matched at least one element AND the criterion is one the DOM engines check; if the selector matches no element the result is verified: false with reason "not-found" ("selector matched no elements"), a criterion outside the coverage set returns reason "not-verifiable" ("not checked by any WebAbility tool"); a finding in scope that only the AI judge can settle, when the judge did not run or gave no verdict, also returns "not-verifiable", and shadow-DOM (>>>) / iframe selectors return "unsupported-selector" — pass the element's current selector, or re-run scan_page if your fix removed the element. Pair with scan_page → generate_ai_fix → verify_fix for a full find-fix-verify cycle. If the page is behind a login or a consent wall, pass the same |
| diff_scanA | Compare two scans of the same page and report what changed: |
| start_auditA | [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 |
| add_siteA | 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"). |
| list_sitesA | 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_snippetA | Get the one-line script tag that installs the WebAbility accessibility widget. Put it in the or before 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_linkA | 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. |
| get_auditA | [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 |
| flow_scanA | Scan a multi-page user journey. Walks startUrl plus the |
| detect_frameworkA | Detect a page's stack as two separate fields: |
| generate_ai_fixA | 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 |
| visual_auditA | [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 |
| find_sourceA | 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. |
| scan_htmlA | 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 |
| get_rulesA | List accessibility rules from both engines — axe-core (104) and the WebAbility detectors (90+) — with optional filters. Every rule carries |
| check_color_contrastA | 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 |
| check_ariaA | Validate ARIA attribute + accessible name/role/value usage — in an HTML snippet ( |
| scan_historyA | 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 |
| generate_report_pdfA | Turn scan findings into a branded WebAbility accessibility-report PDF, saved next to the project (local installs only). Pass the |
| search_docsA | Search this server's own documentation before guessing. Covers: the output controls (level, minImpact, rules, wcag, format, offset), the accepted WCAG tag and rule-id forms, the fix.op set and the three fixability tiers, verify_fix failure reasons, Lite vs hosted (localhost, tunnel, storageState), tool error codes and which are retriable, fair-use limits, and how generate_report_pdf / start_audit / get_audit differ. The index is inside the package: offline, no account, no cost, a few milliseconds. Call it when an argument name, an enum value or an error code is not obvious from the tool description — one search usually costs less than one failed call. |
| submit_feedbackA | Report friction with this MCP server to its maintainers (not the user's WebAbility account or site): a missing tool, a tool that failed or returned wrong data, a confusing tool or doc, or an idea. Call it at most once per task, and only when a WebAbility MCP tool was missing, failed, or got in the way — skip it when the task went fine, and never use it to log progress. Send things the server cannot see: what you were asked to do, what you tried, and what went wrong. Do not paste page content, secrets or personal data. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| info | The catalog, the presets and the call order, so an agent does not have to infer them from 22 tool descriptions. |
| webability-result-card | Renders scan_page and verify_fix results as a card. |
TDQS
Scored across 23 tools
Most tools are clearly separated by scope: scan_page for live pages, scan_html for snippets, flow_scan for journeys, visual_audit for vision-only checks, diff_scan for comparisons, and verify_fix for element-level verification. The dense scanning/auditing cluster creates some potential confusion between scan_page, visual_audit, and start_audit, but descriptions explain when each is appropriate.
Names are consistently snake_case and mostly follow a verb_noun pattern such as scan_page, create_upgrade_link, verify_fix, and get_audit. A few names like visual_audit are minor deviations, but the overall convention is readable and predictable.
At 23 tools, the surface is at the heavy end for an MCP server, even though the product covers several distinct workflows. Most tools earn their place, but a few specialized scanning/checking tools could potentially be consolidated.
The set covers scanning, multi-page flows, visual audits, durable audits, fix generation, verification, scan history, reporting, rules inspection, and site/install management. Minor gaps remain around site lifecycle operations such as deleting or updating a site, and plan/account management beyond upgrade links.