A11yScope

io.github.perceivablev0.1.2更新於 Oct 11, 2026

WCAG 2.2 AA accessibility checks for pages and HTML, run locally in headless Chrome.

已驗證STDIO僅桌面Developer ToolsBrowser Automation

概覽

AI 產生的概覽

在本機的無頭 Chrome 中對網頁與 HTML 片段執行 WCAG 2.2 AA 無障礙檢查,並依規則回傳違規項目與修正建議。

功能
A11yScope 將 A11yScope Chrome 擴充功能所用的引擎以 MCP 伺服器形式提供。scan_page 工具會在無頭 Chrome 中載入網址或本機 HTML 檔案,依規則分組回傳違規項目,每項包含 CSS 選擇器、HTML 片段,以及說明該如何修改的訊息。scan_html 對助理剛產生的標記執行相同檢查,list_rules 則列出 31 項檢查及其 WCAG 2.2 成功準則、等級、影響與修正指引。掃描選項包括需人工判斷的項目、通過的檢查、每條規則的發現數量上限、視窗大小,以及針對延遲渲染頁面的等待時間。
適用情境
適合助理撰寫或修改網頁後、在完成前驗證無障礙性的情境,例如掃描本機開發伺服器並循環修正違規項目。也適合檢查產生的 HTML 片段中的對比度、標籤、結構與 ARIA 問題。
執行需求
透過 npx 以 stdio 程序在本機執行(套件 a11yscope-mcp)。需要 Node 20 或更新版本,以及已安裝的 Chromium 系列瀏覽器;若找不到,會一次性下載 Chrome for Testing 版本(約 150 MB)到 Puppeteer 快取。選用環境變數 A11YSCOPE_CHROME 可指定瀏覽器執行檔。不需要帳號、API 金鑰或網路服務。
安裝前請注意
掃描在本機進行,不會上傳任何內容,也沒有帳號或遙測。若機器上沒有 Chromium 系列瀏覽器,首次掃描可能下載 Chrome for Testing 版本。自動化檢查只能涵蓋部分無障礙障礙;結果不構成合規聲明,需要人工判斷的項目會以 review 回傳,而非通過或失敗。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 A11yScope,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

a11yscope-mcp

WCAG 2.2 AA checks for AI coding agents. The same engine as the A11yScope Chrome extension, exposed as an MCP server so Claude Code, Cursor, Claude Desktop and other MCP clients can audit the pages they build and fix what they find.

Runs locally in headless Chrome. Nothing is uploaded, no account, no telemetry.

Install

Claude Code

bash
claude mcp add a11yscope -- npx -y a11yscope-mcp

Cursor / Claude Desktop / any MCP client — add to the MCP config:

json
{  "mcpServers": {    "a11yscope": {      "command": "npx",      "args": ["-y", "a11yscope-mcp"]    }  }}

Needs Node 20 or newer and a Chromium-based browser. Installing downloads nothing: the first scan uses the Chrome, Chromium, Edge or Brave already on the machine, and only if none is found does it fetch a Chrome for Testing build (~150 MB, once) into Puppeteer's cache. To point it at a specific browser, set A11YSCOPE_CHROME to the executable path.

Tools

ToolWhat it does
scan_pageLoads a URL or a local HTML file in headless Chrome and returns violations grouped by rule, each with a CSS selector, an HTML snippet and a message that says what to change.
scan_htmlSame, for an HTML string the agent just generated. Pass base_url if the markup references stylesheets on a reachable server; otherwise inline the CSS, since contrast checks need computed styles.
list_rulesThe 31 checks, each with its WCAG 2.2 success criteria, level, impact and fix guidance.

Options on both scan tools: include_review (items that need a human decision), include_passed, max_findings_per_rule, viewport size. scan_page also takes wait_ms for pages that render late.

Typical prompt: "Scan http://localhost:3000 with a11yscope and fix every violation, then scan again."

What it checks

Text alternatives (images, form labels, buttons, links, frames, SVG), colour contrast with the large-text and bold exemptions applied and translucent backgrounds composited, document structure (language, title, headings, main landmark, skip link, tables, lists, duplicate ids), and keyboard, pointer and ARIA (zoom lock, positive tabindex, aria-hidden focusable, nested interactive controls, 24×24 target size, autoplay, captions, invalid roles, required ARIA states, autocomplete, focus visibility).

Calibrated against sites built by accessibility practitioners: gov.uk, webaim.org, deque.com, a11yproject.com and w3.org/WAI all report zero violations. Anything reported there is treated as our bug until proven otherwise, and false-positive reports are the most useful thing you can send.

What it does not do

Automated checks find roughly a third of accessibility barriers. A clean result is a good sign, not a conformance claim. Whether alt text is accurate, whether a page makes sense in a screen reader, whether a keyboard user can finish a task — no tool can answer those, and this one does not pretend to. Anything it cannot decide comes back as review, not as pass or fail. It is not a substitute for an expert evaluation and does not certify compliance with the EAA, ADA, KWCAG or any other standard.

Licence

Copyright © 2026 Perceivable. Free to install and run, including commercially, through npm and MCP clients. The engine source is published so that "nothing leaves your machine" can be verified rather than trusted; it is not open source, and no licence is granted to copy, modify or redistribute it or to publish derivative works. Full terms: the LICENSE file in this package and at the repository root. Problems and false positives: https://github.com/perceivable/a11yscope/issues.

來源:mcp/README.md,提交 c7a0aa6

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.2最新Oct 11, 2026