
Accessibility Scanner Mcp
io.github.Bishop81由 GitHub 账号 Bishop81 发布v0.1.2更新于 Oct 24, 2026
Scan any URL for WCAG accessibility issues (axe-core) and get per-element fixes for an AI agent.
概览
本地 MCP 服务器,用 axe-core 扫描网页 URL 的 WCAG 无障碍问题,并返回助手可据以修改的逐元素结果。
- 可以做什么
- 在本地 Chromium 浏览器中用 axe-core 引擎扫描 URL 的 WCAG 无障碍违规,先滚动页面以检查懒加载内容,并解析 CSS 渐变上的对比度。按严重程度分组读取结果,每条规则给出 WCAG 成功标准和修复指南链接,每个元素给出选择器、有问题的 HTML 和具体失败原因。查看被标记为需人工判断的项目,服务器单独返回这些内容,且从不声称页面完全合规。也可选择在托管服务上而非本地执行扫描,该模式还会为对比度失败给出建议修复颜色。
- 适用场景
- 适合助手审计或修复网页无障碍问题、需要可转化为代码修改的逐元素具体结果,并在修改后重新扫描确认时使用。也适合无法安装浏览器的 CI 或容器环境,通过托管模式使用。
- 运行要求
- 以 npm 包形式通过 npx 在本地运行,需要 Node.js 18+ 和基于 Chromium 的浏览器(Chrome、Chromium 或 Edge),可自动检测或用 CHROME_PATH 指定。也可设置 SCANNER_API_URL 在托管服务上扫描,无需账号或密钥,也无需本地浏览器。
安装
在 SourceWeft 中
- 打开 控制台中的 Accessibility Scanner Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
accessibility-scanner-mcp
An MCP server that lets an AI agent scan a web page for WCAG accessibility issues and get back findings it can act on. The agent calls one tool with a URL; it gets every violation grouped by severity, each with the exact element selector, the offending HTML, the specific failure, the WCAG success criterion, and a fix-guide link — plus the items that still need human review.
It runs the real axe-core engine in your local Chrome
(via playwright-core), so nothing about the pages you scan leaves your machine. It scrolls the page
first so lazy-loaded content is actually checked rather than silently skipped, and it resolves
color contrast over CSS gradients, which most tools leave as "needs review."
Upgrading from 0.1.x? 0.2.0 sees more of each page and returns more findings for the same URL. See CHANGELOG.md.
Part of accessibilityscanner.app.
Requirements
- Node.js 18+
- A Chromium-based browser: Chrome, Chromium or Edge, found automatically in that order.
Set
CHROME_PATHto point at a specific binary if you'd rather choose. A browser already installed by Playwright is used as a last resort; nothing is ever downloaded for you.
Or no browser at all
Set SCANNER_API_URL and the scan runs on accessibilityscanner.app instead of locally:
No account or key needed — it uses the same public endpoints the website's own form uses. Useful in CI, in a container, or anywhere you can't install a browser. Hosted scans also carry suggested fix colours for contrast failures, which the local scanner doesn't compute yet.
⚠️ In this mode the URL you scan is sent to our server. The local path sends nothing anywhere, and stays the default — hosted mode is opt-in via that environment variable only.
Install
Add it to your MCP client's config. No global install needed — npx fetches it on first run.
Claude Desktop (claude_desktop_config.json), Cursor, Claude Code, or any MCP client:
If Chrome is not auto-detected, add an env block:
The tool
scan_accessibility
Returns a report grouped by severity. For each rule: the WCAG criterion, a fix-guide link, and per element the selector, HTML, and exact failure. Example flow with an agent:
You: Audit https://example.com for accessibility and fix what you can. Agent: (calls
scan_accessibility) → reads the findings → edits the code → re-scans.
Honest about limits
Automated testing covers the machine-checkable subset of WCAG (most of the issues on a typical page, but not all of it). Items that need human judgement are returned under "Needs manual review." It never claims a page is "compliant."
License
MIT
来源:README.md,提交 0d28637
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分