
A11y
io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.2更新於 Oct 24, 2026
Alt text, headings, contrast, ARIA for AI agents
概覽
一個本機 MCP 伺服器,為 AI 助理提供審查 HTML 網頁無障礙問題的工具,涵蓋替代文字、標題、對比度、ARIA 與表單。
- 可以做什麼
- 分析 HTML 中的圖片,檢查缺少、空白或品質不佳的替代文字,包括連結圖片、圖片輸入與圖像區域。驗證標題層級,找出跳級、多個 h1、空白或過長標題,並回傳標題大綱樹。依 WCAG 2.x 計算前景與背景顏色的對比度,並回報一般文字與大字的 AA、AAA 合規情形。驗證 ARIA 角色與屬性,標記多餘角色以及 aria-label、aria-hidden 的不當使用。審查表單的標籤關聯、fieldset 與 legend 分組、僅以佔位文字作標籤、autocomplete 建議與重複 ID。
- 適用情境
- 適合在檢查 HTML 頁面或元件的無障礙合規性、準備 WCAG 審查,或讓助理說明並修正替代文字、標題、對比度、ARIA 與表單標籤問題時使用。
- 執行需求
- 以本機程序透過 stdio 執行,從 npm 套件安裝並以 npm install 和 npm run build 建置;README 展示在桌面用戶端設定中以 node 啟動建置後的入口檔案。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 A11y,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-a11y-tools
Web accessibility analysis tools for AI agents, served over the Model Context Protocol (MCP).
Tools
check_alt_text
Analyze images in HTML for missing, empty, or low-quality alt text.
- Detects missing
altattributes - Identifies decorative images (
alt=""withrole="presentation") - Flags low-quality alt text (e.g., "image", "photo", filenames)
- Checks linked images,
<input type="image">, and<area>elements
check_heading_hierarchy
Validate heading structure for proper nesting and content quality.
- Verifies h1-h6 order with no skipped levels
- Ensures a single
<h1>per page - Detects empty, too-short, or too-long headings
- Supports
role="heading"witharia-level - Returns a visual tree of the heading outline
check_color_contrast
Check WCAG 2.x contrast ratio for foreground/background color pairs.
- Calculates precise contrast ratio per WCAG relative luminance formula
- Reports AA and AAA compliance for normal and large text
- Accepts hex (
#fff,#ffffff),rgb(r,g,b), and named colors
validate_aria
Validate ARIA attributes on HTML elements.
- Detects invalid ARIA roles
- Checks for missing required ARIA properties per role
- Flags redundant ARIA roles that match native semantics
- Warns about
aria-labelon non-interactive elements - Catches
aria-hidden="true"on focusable elements
check_form_accessibility
Audit form elements for accessibility compliance.
- Verifies every input has an associated label (explicit, implicit, or ARIA)
- Checks radio/checkbox groups for
<fieldset>and<legend> - Flags placeholder text used as the only label
- Suggests
autocompleteattributes for personal info fields - Detects duplicate IDs that break label association
Setup
Usage with Claude Desktop
Add to your claude_desktop_config.json:
License
MIT
來源:README.md,提交 f5c5682
工具
0版本歷史
1- v1.0.2最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。