Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WEBABILITY_API_URLNoOptional URL for self-hosted backendshttps://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 html and message, then write it

  • visual: 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. Pass sourceRoot (local only) to get sourceCandidates[] 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_scan with autoNavigate (an ordered URL list; it follows URLs, it does not find them). Pages behind a login or a consent wall: pass cookies and interactions (both transports), or storageState for a local session file

  • "What does this WCAG rule check" → get_rules

  • "Suggest a fix for this issue" → detect_framework then generate_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, or url + selector to read the element's colors from the page; url also gives brand-aligned suggestions)

  • "Check the ARIA on this page / this component" → check_aria with url (+ selector for one element) or html

  • "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) or check_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 under setup; 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_feedback once 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

CapabilityDetails
tools
{}
resources
{}
extensions
{
  "io.modelcontextprotocol/ui": {
    "mimeTypes": [
      "text/html;profile=mcp-app"
    ]
  }
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 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-attribute | add-element | remove-element | add-text-content | suggest) with fix.attribute / fix.value when known, and a fixability tier (mechanical = apply as given; contextual = op known, value needs judgment; visual = needs rendered output, propose only). A consent wall or a sign-in screen hides the page: pass cookies (a session cookie) and interactions (click the consent button, fill and submit the form) and the scan measures what the page became — the result lists every step under setup.

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 cookies / interactions you sent scan_page — verifying on the sign-in screen proves nothing.

diff_scanA

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 + element), so a changed class/id on a fixed element reads as fixed AND new — check new[] before calling it a regression. Typical loop: scan_page → edit → diff_scan(baselineId=, url=) → confirm new[] is empty. Both live sides take the same cookies / interactions as scan_page, because a page behind a login is otherwise compared with its sign-in screen. A cookie without domain/url is scoped to each side's own host.

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 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 with an audit id; poll get_audit for progress and, when complete, download URLs. structuredContent carries {id, status, pollAfterSeconds, next, expiresAt}; expiresAt is null until the API reports a retention time (download URLs last about 1 hour), and an unknown or expired id returns an audit_not_found error. Use this when someone needs a durable artifact to attach as evidence of testing effort for a compliance officer or legal response — for iterating on code, use scan_page + verify_fix instead. Needs a free WebAbility account (sign in by connecting https://mcp.webability.io/mcp/auth, or run webability login). Set includeAgent:true to add the slower agentic manual-audit pass. To audit a local dev server, open a tunnel (webability-tunnel --port 3000) and pass its URL as url with the printed secret as tunnel_secret; keep the tunnel open until get_audit reports complete (about 5 minutes) — the pipeline loads the page several times.

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 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 WebAbility account.

flow_scanA

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 — a session was given but the page is a sign-in page, session likely expired) — a page is never silently dropped. It visits URLs; it does not click links. To get past a login or a consent wall, pass cookies (both transports) or storageState (local MCP only), and interactions to click/fill once on startUrl before the journey is measured — those steps run on the first page only, and the session they create carries through the rest. Without autoNavigate it scans only startUrl, exactly like scan_page.

detect_frameworkA

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.

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 brandColors is omitted. For label/ARIA issues, returns 1-2 alternatives. Each alternative includes ready-to-paste code for the detected framework.

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 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. Sign in with a free WebAbility account for vision and full audits (sign in by connecting https://mcp.webability.io/mcp/auth, or run webability login). Fair-use rate limits apply.

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 fix.op + fixability on every finding. jsdom has no layout, so visual-tier rules (contrast, target size, focus ring) are NOT evaluated — the dropped count is reported as skippedVisual; pass engine: "browser" to run the axe-core headless-browser path for those (slower, axe rules only, returns axe violations).

get_rulesA

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.

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 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 (CSS vars + most-used colors), or use a provided brandColors array. No url and no brandColors = ratio + pass/fail only.

check_ariaA

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 scan_history(id) for the full set.

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 id to retrieve the FULL stored result of one past scan, or filter to match a URL/tool substring.

generate_report_pdfA

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 screenshots), use start_audit instead.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
infoThe catalog, the presets and the call order, so an agent does not have to infer them from 22 tool descriptions.
webability-result-cardRenders scan_page and verify_fix results as a card.

TDQS

A3.9/5.0

Scored across 23 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count3/5

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.

Completeness4/5

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.

Maintenance

ActivityNo data
ResponsivenessOutdated data