SuperAPI AI Directory

a11ymcp

Test URLs and HTML for WCAG 2.0/2.1/2.2 compliance using axe-core, including color contrast, ARIA validation and orientation lock detection.

Open website

About this tool

A11y MCP is an MCP (Model Context Protocol) server that gives LLMs access to a web accessibility testing API. It is built on the Deque Axe-core API and Puppeteer, enabling LLMs to analyze whether web content complies with WCAG standards and identify accessibility issues. Note: This is not the official MCP server from Deque Labs.

Main capabilities

  • Test web pages: Detect accessibility issues on any public URL, with support for custom viewport sizes.
  • Test HTML snippets: Detect accessibility issues on raw HTML strings.
  • WCAG compliance testing: Check content against multiple WCAG standards (2.0, 2.1, 2.2).
  • Customizable testing: Specify the accessibility tags/standards to test.
  • Rule exploration: Get information about available accessibility rules.
  • Color contrast analysis: Check whether color combinations meet WCAG requirements.
  • ARIA validation: Test the correct use of ARIA attributes.
  • Orientation lock detection: Identify content that forces a specific screen orientation.

Usage Prerequisites: Node.js 18 or later; an MCP-compatible client (Claude Desktop, Claude Code, VS Code, Cursor, etc.).

Claude Desktop configuration: Edit the MCP configuration file. On macOS the path is ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows it is %APPDATA%\Claude\claude_desktop_config.json, and on Linux it is ~/.config/Claude/claude_desktop_config.json. Add the server to the mcpServers object.

Claude Code (CLI): Register the server for the current project; if you want it available in all projects, you can register it globally; use the command to verify whether the server is registered. Note: MCP tools take effect only after restarting the Claude Code session.

VS Code (Copilot): Add it to VS Code's settings.json or .vscode/settings.json.

Cursor: Add it to the Cursor MCP configuration (.cursor/mcp.json).

Windsurf: Add it to the Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json).

Available tools

  • test_accessibility: Test a URL for accessibility issues. Examples include desktop viewport (default) and mobile viewport (iPhone 12/13).
  • test_html_string: Test an HTML string for accessibility issues. Examples include the default viewport and mobile viewport.
  • Get information about available accessibility rules, with optional filtering. Returns an array of rule objects, each containing ruleId, description, help, helpUrl, and tags. Examples include filtering rules by WCAG 2.1 AA and getting all rules (no filtering).
  • check_color_contrast: Check whether a foreground color and background color combination meets WCAG contrast requirements.
  • check_aria_attributes: Check whether ARIA attributes are used correctly in HTML.
  • check_orientation_lock: Check whether content forces a specific orientation.

Response format: The server returns accessibility test results as structured JSON.

WCAG tags reference: Common tags that can be used with the tags parameter.

Dependencies: @modelcontextprotocol/sdk, @axe-core/puppeteer.

Use cases: Developers and testers can use an LLM during coding or review to quickly check the accessibility compliance of web pages or HTML, covering common issues such as color contrast, ARIA usage, and orientation lock.

Limitations: Requires Node.js 18+ and an MCP-compatible client; test targets are public URLs or HTML strings; it is not an official Deque Labs server. Other details are not yet provided.