Skip to main content
Glama

Cursor A11y MCP

カーソル A11y MCP

AIエージェントにアクセシビリティテスト機能を提供するModel Context Protocol(MCP)サーバー。このツールは、axe-coreとPuppeteerを用いてWebアプリケーションのアクセシビリティ問題を特定するのに役立ちます。

特徴

  • 任意の URL またはローカル開発サーバーでアクセシビリティ テストを実行します
  • 包括的なアクセシビリティテストのためのaxe-coreを搭載
  • 以下を含む詳細な違反レポートを提供します:
    • 影響レベル
    • 問題の説明
    • ヘルプテキストとドキュメントのリンク
    • 影響を受けるHTML要素
    • 失敗の概要

プロジェクト構造

  • 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で利用できます。

アクセシビリティテストの実行

このツールは次の 2 種類の入力を受け入れます。

  1. テスト用の完全なURL
  2. http://localhost:5000に追加される相対パス

依存関係

  • @modelcontextprotocol/sdk : ^1.4.1
  • puppeteer :^24.1.1
  • zod :^3.24.1

テストサイトの依存関係

  • react :^18.2.0
  • react-dom :^18.2.0
  • react-scripts : 5.0.1

発達

  1. src/ディレクトリ内のソースコードを変更する
  2. npm run buildを実行して変更をコンパイルします。
  3. npm startでサーバーを起動します。

カーソルでの設定

このアクセシビリティ テスト ツールを Cursor の MCP サーバー設定に追加するには:

  1. カーソルの設定を開く (⌘ + ,)
  2. 「機能」>「MCPサーバー」に移動します
  3. 次の構成で新しい MCP サーバーを追加します。
    • 名前: a11y
    • ドロップダウンからcommandを選択
    • コマンド: node path/to/cursor-a11y-mcp/index/file/in/build/folder ( path/to/cursor-a11y-mcp/index/file/in/build/folderを、ビルド フォルダー内の index.js ファイルへの絶対パスに置き換えます。)
  4. Addクリック
  5. アクセシビリティテストツールがCursorのComposerで利用できるようになります

Composerでの使用

Cursor の Composer でアクセシビリティ テスト ツールを使用するには:

  1. ターミナルで実行します:
npm run start:test-site

これによりhttp://localhost:5000でテストサイトが起動します。

  1. カーソルのコンポーザーで、 use a11y toolと入力します。
  2. Composerはツールを実行するように促します
  3. ツールを実行すると、レスポンス内のアクセシビリティ違反と、違反を修正するためのコードアクションが表示されます。
  4. Composerは、違反が修正されたことを確認するためにツールを再度使用するように要求する場合があります。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

バージョン

現在のバージョン: 2.0.1

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Tools

CLI を通じてアクセシビリティ テスト機能を提供し、axe-core と Puppeteer を使用して Web アプリケーションのアクセシビリティの問題を特定するのに役立ちます。

  1. 特徴
    1. プロジェクト構造
      1. インストール
        1. 使用法
          1. MCPサーバーの起動
          2. テストサイトの実行
          3. アクセシビリティテストの実行
        2. 依存関係
          1. テストサイトの依存関係
        3. 発達
          1. カーソルでの設定
            1. Composerでの使用
              1. ライセンス
                1. バージョン

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables automated web accessibility scans for WCAG compliance using Playwright and Axe-core, providing visual and JSON reports with remediation guidance.
                    Last updated -
                    1
                    43
                    7
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    Provides web accessibility analysis and color blindness simulation using axe-core and Puppeteer, enabling detailed accessibility checks and visual simulations based on WCAG guidelines.
                    Last updated -
                    2
                    1
                    JavaScript
                    MIT License
                    • Apple
                    • Linux
                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables browser automation with Puppeteer, supporting navigation, form interactions, and connection to active Chrome instances for comprehensive web page interaction.
                    Last updated -
                    8
                    470
                    8
                    TypeScript
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    -
                    license
                    -
                    quality
                    An MCP (Model Context Protocol) server for performing accessibility audits on webpages using axe-core. Use the results in an agentic loop with your favorite AI assistants (Cline/Cursor/GH Copilot) and let them fix a11y issues for you!
                    Last updated -
                    JavaScript
                    Mozilla Public License 2.0

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/westsideori/cursor-a11y-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server