Skip to main content
Glama

a11y-mcp

An MCP (Model Context Protocol) server that enables AI assistants to run automated accessibility audits using axe-core.

What is this?

This MCP server allows AI assistants (like Claude in Cursor) to:

  • Audit live web pages for accessibility issues

  • Audit raw HTML content for accessibility violations

  • Query available axe-core rules by WCAG level

Results are returned in a structured format with WCAG violation details, affected elements, and remediation guidance.

Related MCP server: accessibility-mcp-server

Setup

# Install dependencies
npm install

# Install Playwright browsers (required for URL auditing)
npx playwright install chromium

# Build the TypeScript
npm run build

Cursor Configuration

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "axe-mcp": {
      "command": "node",
      "args": ["/path/to/a11y-mcp/dist/index.js"]
    }
  }
}

Restart Cursor after updating the configuration.

Available Tools

audit_url

Audits a live URL by launching a headless Chromium browser.

Parameters:

  • url (required) - URL to audit

  • wcag_level - WCAG conformance level: A, AA (default), or AAA

  • include_selectors - CSS selectors to include in the audit

  • exclude_selectors - CSS selectors to exclude from the audit

  • wait_for - CSS selector to wait for before auditing

audit_html

Audits raw HTML content using JSDOM (no browser required).

Parameters:

  • html (required) - HTML content to audit

  • wcag_level - WCAG conformance level: A, AA (default), or AAA

  • include_selectors - CSS selectors to include in the audit

  • exclude_selectors - CSS selectors to exclude from the audit

get_rules

Lists available axe-core rules.

Parameters:

  • tags - Filter rules by tags (e.g., wcag2a, wcag21aa, best-practice)

Example Usage

Ask your AI assistant:

"Audit https://example.com for accessibility issues"

"Check this HTML for WCAG AA violations: <button><img src='icon.png'></button>"

"What axe-core rules check for WCAG 2.1 AA compliance?"

License

MIT - See LICENSE

This project uses axe-core which is licensed under MPL-2.0.

Available Tools

3 tools
audit_htmlAudit HTMLC

Run axe-core accessibility checks against raw HTML.

Inputs: html (required), wcag_level, exclude_selectors, include_selectors.

audit_urlAudit URLC

Run axe-core accessibility checks against a live URL.

Inputs: url (required), wait_for, wcag_level, exclude_selectors, +1 more.

get_rulesList RulesB

List axe-core rules, optionally filtered by tags.

Inputs: tags.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a clearly distinct input type or purpose: auditing a live URL, auditing raw HTML, and listing rules. There is no realistic way to confuse audit_url with audit_html, and get_rules is a read-only metadata lookup.

    Naming Consistency5/5

    All three tools follow a consistent verb_noun snake_case pattern (audit_url, audit_html, get_rules). The prefix grouping makes the two audit variants immediately recognizable as a family.

    Tool Count4/5

    Three tools is on the thin side but well-matched to a focused axe-core auditing server—each tool earns its place with no filler. A slightly broader surface could justify one or two more tools.

    Completeness4/5

    The surface covers the core lifecycle: audit a deployed page, audit markup directly, and inspect available rules for filtering. Minor gaps exist, such as reporting/export options or WCAG-level configuration, but agents can work around these via the rule listing.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to perform comprehensive accessibility audits on websites using Playwright and axe-core against WCAG standards. Provides detailed compliance reports with violation summaries and remediation guidance across multiple browsers.
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Exposes axe-core accessibility auditing as MCP tools so any MCP-compatible agent can audit HTML for structural and semantic issues.
      3
      MIT