e11y-docs-mcp

e11y-docs-mcp

MCP server that provides access to web accessibility documentation, enabling search and retrieval of W3C WAI-ARIA patterns and accessibility best practices.

Category
访问服务器

README

E11y Documentation MCP Server

A Model Context Protocol (MCP) server for accessing web accessibility documentation.

This MCP server provides AI assistants with access to web accessibility documentation from the e11y-mcp repository. It allows searching for and fetching W3C WAI-ARIA patterns and accessibility best practices documentation.

Features

  • Search Accessibility Articles: Find relevant W3C WAI-ARIA patterns and accessibility documentation
  • Fetch Article Content: Retrieve complete markdown documentation with metadata
  • List All Articles: Get an overview of all available accessibility documentation
  • Real-time Access: Fetches documentation directly from the remote repository
  • Metadata Support: Includes source URLs, last updated dates, and content information

Available Tools

1. search_accessibility_articles

Search for relevant web accessibility articles from the e11y-mcp documentation repository.

Parameters:

  • query (string): Search query to find relevant accessibility articles (e.g., "accordion", "button", "dialog")
  • maxResults (number, optional): Maximum number of results to return (1-20, default: 10)
  • outputMode (enum, optional): Output format - "json" or "compact-json" (default: "json")

Example:

{
  "query": "accordion",
  "maxResults": 5
}

2. fetch_accessibility_article

Fetch the complete content of a specific accessibility article from the e11y-mcp repository.

Parameters:

  • path (string): Path to the accessibility article (from search results)
  • includeMetadata (boolean, optional): Include article metadata (default: true)
  • outputMode (enum, optional): Output format - "json" or "compact-json" (default: "json")

Example:

{
  "path": "docs/www.w3.org_WAI_ARIA_apg_patterns_accordion.md",
  "includeMetadata": true
}

3. list_accessibility_articles

List all available accessibility articles in the e11y-mcp documentation repository.

Parameters:

  • outputMode (enum, optional): Output format - "json" or "compact-json" (default: "json")

Installation

Install from NPM

For Cursor IDE

{
  "mcpServers": {
    "e11y-docs-mcp": {
      "command": "npx",
      "args": ["e11y-docs-mcp@latest"]
    }
  }
}

For Claude Code

claude mcp add e11y-docs-mcp npx 'e11y-docs-mcp@latest'

Quick Start

1. Development Installation

git clone <your-repo-url>
cd e11y-docs-mcp
yarn install
yarn build

2. Configure MCP Client for Development

Add to your .cursor/mcp.json or other MCP client configuration:

{
  "mcpServers": {
    "e11y-docs-mcp": {
      "command": "node",
      "args": ["path/to/your/dist/server.js"]
    }
  }
}

3. Start Using

yarn start  # Start the server

4. Test Your Tools

Use the MCP inspector to test your tools:

yarn inspector

Example Usage

Search for Accessibility Patterns

{
  "tool": "search_accessibility_articles",
  "parameters": {
    "query": "button",
    "maxResults": 5
  }
}

Fetch Complete Documentation

{
  "tool": "fetch_accessibility_article",
  "parameters": {
    "path": "docs/www.w3.org_WAI_ARIA_apg_patterns_button.md",
    "includeMetadata": true
  }
}

List All Available Articles

{
  "tool": "list_accessibility_articles",
  "parameters": {}
}

Documentation Structure

The server accesses documentation from the vltansky/e11y-mcp repository, which contains:

  • W3C WAI-ARIA Patterns: Implementation guides for common UI patterns
  • Accessibility Best Practices: Guidelines for creating accessible web interfaces
  • Live Examples: Interactive demonstrations of accessible components
  • Implementation Details: ARIA roles, states, properties, and keyboard interactions

Available Documentation

The documentation currently includes patterns such as:

  • Accordion Pattern (Sections With Show/Hide Functionality)
  • Breadcrumb Pattern
  • Date Picker Dialog Example
  • And more...

Development

Available Scripts

  • yarn build - Compile TypeScript to JavaScript
  • yarn watch - Watch mode for development
  • yarn start - Run the compiled server
  • yarn test - Run unit tests
  • yarn test:ui - Run tests with UI
  • yarn inspector - Start MCP inspector for testing tools

Project Structure

src/
├── server.ts              # Main MCP server setup and tool registration
├── tools/
│   ├── e11y-tools.ts      # Accessibility documentation tools
│   └── e11y-tools.test.ts # Unit tests for tools
└── utils/
    └── formatter.ts       # Response formatting utilities

docs/                      # Local documentation and examples
package.json              # Dependencies and scripts
tsconfig.json             # TypeScript configuration

Testing

The server includes comprehensive tests for all tools:

yarn test        # Run all tests
yarn test:ui     # Run tests with interactive UI

Use Cases

For AI Assistants

  • Code Review: Check accessibility compliance in web applications
  • Implementation Guidance: Get specific ARIA patterns for UI components
  • Best Practices: Access current W3C accessibility guidelines
  • Pattern Discovery: Find the right accessibility pattern for specific use cases

For Developers

  • Quick Reference: Access accessibility documentation without leaving your IDE
  • Implementation Examples: Get working code examples for accessible components
  • Standards Compliance: Ensure your code follows W3C accessibility guidelines
  • Learning Resource: Understand accessibility principles and implementation

Architecture

The server follows a simple architecture:

  1. Tool Registration: MCP tools are registered with the server
  2. Remote Data Access: Documentation is fetched from the GitHub repository
  3. Search Functionality: Text-based search across article titles and paths
  4. Content Retrieval: Full markdown content with metadata extraction
  5. Response Formatting: Consistent JSON output with optional compact mode

Contributing

  1. Fork this repository
  2. Create your feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

License

MIT License - feel free to use this server for your accessibility documentation needs.

Resources

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选