A Model Context Protocol (MCP) server that provides accessibility testing capabilities AI agents. This tool helps identify accessibility issues in web applications using axe-core and Puppeteer.
src/
- Source code for the MCP server and accessibility testing tooltest-site/
- A React application with intentional accessibility issues for testingbuild/
- Compiled version of the source codenpm install
Then install the test site dependencies:
cd test-site
npm install
cd ..
npm run build
npm start
npm run start:test-site
The test site will be available at http://localhost:5000
.
The tool accepts two types of inputs:
http://localhost:5000
@modelcontextprotocol/sdk
: ^1.4.1puppeteer
: ^24.1.1zod
: ^3.24.1react
: ^18.2.0react-dom
: ^18.2.0react-scripts
: 5.0.1src/
directorynpm run build
to compile the changesnpm start
To add this accessibility testing tool to Cursor’s MCP Server settings:
a11y
command
from the dropdownnode path/to/cursor-a11y-mcp/index/file/in/build/folder
(Replace path/to/cursor-a11y-mcp/index/file/in/build/folder
with the absolute path to your index.js file in the build folder.)Add
To use the accessibility testing tool in Cursor’s Composer:
npm run start:test-site
This will start the test site at http://localhost:5000
use a11y tool
This project is licensed under the MIT License - see the LICENSE{:target=“_blank”} file for details.
Current version: 2.0.1