Cursor A11y MCP
光标 A11y MCP
一个模型上下文协议 (MCP) 服务器,提供可访问性测试功能的 AI 代理。此工具可帮助使用 axe-core 和 Puppeteer 识别 Web 应用程序中的可访问性问题。
特征
在任何 URL 或本地开发服务器上运行可访问性测试
由 axe-core 提供支持,可进行全面的可访问性测试
提供详细的违规报告,包括:
影响程度
问题描述
帮助文本和文档链接
受影响的 HTML 元素
故障摘要
Related MCP server: Web Accessibility MCP Server
项目结构
src/- MCP 服务器和可访问性测试工具的源代码test-site/- 一个用于测试的故意存在可访问性问题的 React 应用程序build/——源代码的编译版本
安装
npm install然后安装测试站点依赖项:
cd test-site
npm install
cd ..用法
启动 MCP 服务器
npm run build
npm start运行测试站点
npm run start:test-site测试站点的网址为http://localhost:5000 。
运行可访问性测试
该工具接受两种类型的输入:
要测试的完整 URL
将附加到
http://localhost:5000相对路径
依赖项
@modelcontextprotocol/sdk: ^1.4.1puppeteer: ^24.1.1zod:^3.24.1
测试站点依赖项
react:^18.2.0react-dom:^18.2.0react-scripts:5.0.1
发展
修改
src/目录中的源代码运行
npm run build来编译更改使用
npm start启动服务器
在光标中配置
要将此可访问性测试工具添加到 Cursor 的 MCP 服务器设置:
打开光标设置(⌘ + ,)
导航至“功能”>“MCP 服务器”
添加一个新的 MCP 服务器,配置如下:
姓名:
a11y从下拉菜单中选择
command命令:
node path/to/cursor-a11y-mcp/index/file/in/build/folder(将path/to/cursor-a11y-mcp/index/file/in/build/folder替换为 build 文件夹中 index.js 文件的绝对路径。)
单击
Add可访问性测试工具现在可在 Cursor 的 Composer 中使用
在 Composer 中的使用
要使用 Cursor Composer 中的可访问性测试工具:
在你的终端中运行:
npm run start:test-site这将在http://localhost:5000启动测试站点
在 Cursor 的 Composer 中,输入
use a11y toolComposer 将提示您运行该工具
运行该工具后,您将看到响应中的可访问性违规,以及修复违规的代码操作
Composer 可能会提示您再次使用该工具来确认违规行为是否已修复
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
版本
当前版本:2.0.1
Available Tools
1 toola11yB
Run accessibility tests on a URL or a local path (relative URL appended to http://localhost:5000).
Inputs: relativePath, url.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'a11y' has a clear and distinct purpose focused on accessibility testing.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'a11y' is concise and descriptive, and there are no other tools to compare it against for consistency.
A single tool is too few for a server named 'Cursor A11y MCP', which suggests a broader accessibility domain. While the tool is functional, the set lacks coverage for other common accessibility tasks like reporting, fixing issues, or checking compliance, making it feel thin and incomplete.
The tool surface is severely incomplete for an accessibility domain. It only provides testing on URLs or local paths, missing essential operations such as generating reports, analyzing results, fixing issues, or supporting different accessibility standards, which will limit agent effectiveness.
Maintenance
Related MCP Connectors
Scan URLs or HTML for WCAG 2.2 violations. 75-rule manifest, weighted score, shareable reports.
Deterministic axe-core accessibility scans (WCAG 2.1 AA, EN 301 549, PDF/UA) via your account.
Free WCAG 2.2/ADA/508 accessibility MCP: scan, AI fixes, verify, vision audit, localhost tunnel
Run WCAG accessibility scans on websites, list each issue with its element, and triage from chat.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables automated web accessibility scans for WCAG compliance using Playwright and Axe-core, providing visual and JSON reports with remediation guidance.254,102 npm59MIT
- AlicenseBqualityDmaintenanceProvides web accessibility analysis and color blindness simulation using axe-core and Puppeteer, enabling detailed accessibility checks and visual simulations based on WCAG guidelines.24MIT
- AlicenseAqualityDmaintenanceEnables accessibility testing of websites and HTML content using axe-core and IBM Equal Access engines. Supports WCAG compliance checking, multi-viewport testing, and provides detailed violation reports with remediation guidance.51MIT
- AlicenseAqualityDmaintenanceEnables comprehensive WCAG 2.0/2.1 accessibility testing of web applications using Playwright and axe-core. Supports natural language element finding, auto-discovery of interactive components, and generates detailed compliance reports with screenshots.2ISC