Описание
Wcag Server — Model Context Protocol server
README
A Model Context Protocol (MCP) server that provides WCAG accessibility guidelines, tools, and resources for web developers.
Features
- WCAG Guidelines: Access to Web Content Accessibility Guidelines versions 2.0, 2.1, 2.2, and 3.0
- Accessibility Tools: Check your code for WCAG compliance
- Color Contrast Analysis: Verify color combinations meet accessibility standards
- ARIA Validation: Check proper usage of ARIA roles and attributes
- Accessible Component Examples: Generate accessible code examples
WCAG Support
This server provides support for multiple WCAG (Web Content Accessibility Guidelines) versions:
- WCAG 2.0 (2008)
- WCAG 2.1 (2018)
- WCAG 2.2 (2023)
- WCAG 3.0 (Working Draft)
Prerequisites
- Node.js 16.x or higher
- npm or yarn
Installation
- Clone the repository
git clone https://github.com/yourusername/wcag-accessibility-server.git
cd wcag-accessibility-server
- Install dependencies
npm install
- Build the project
npm run build
Usage
- Start the server
npm start
The server will be running at http://localhost:3000 (or the PORT specified in your .env file)
Connect to the MCP endpoint at http://localhost:3000/mcp-sse using an MCP client
Available Prompts
- accessibility-component: Get accessibility best practices for specific UI components
- wcag-compliance: Get a compliance checklist for specific features
- color-contrast: Get guidance on meeting WCAG color contrast requirements
- keyboard-navigation: Get guidance on implementing keyboard navigation
- aria-usage: Learn how to properly use ARIA attributes
- accessible-names: Get guidance on providing accessible names for elements
Available Tools
- check-accessibility: Analyze code for accessibility issues based on WCAG guidelines
- generate-accessible-example: Generate accessible code examples for common components
- validate-aria: Validate ARIA attributes and roles in HTML code
- color-contrast: Analyze color contrast for WCAG compliance
Examples
Checking Code Accessibility
// Using the check-accessibility tool
const result = await client.callTool('check-accessibility', {
code: '<button onclick="doSomething()">Click me</button>',
codeType: 'html',
wcagVersion: '2.2' // or '2.0', '2.1', '3.0'
});
console.log(result.content[0].text);
Analyzing Color Contrast
// Using the color-contrast tool
const result = await client.callTool('color-contrast', {
foreground: '#333333',
background: '#FFFFFF',
textSize: 'normal' // or 'large'
});
console.log(result.content[0].text);
Getting Accessibility Guidelines
// Using the accessibility-component prompt
const prompt = await client.getPrompt('accessibility-component', {
component: 'dropdown',
wcagVersion: '2.2'
});
console.log(prompt.messages[0].content.text);
Testing WCAG Features
Run the test script to verify WCAG functionality:
npm run test:wcag
Development
This project uses TypeScript and follows the Model Context Protocol (MCP) specification. It is designed to help web developers create more accessible applications by providing guidance on WCAG standards and best practices.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Установка Wcag Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/iamfiscus/mcp-wcag-serverFAQ
Wcag Server MCP бесплатный?
Да, Wcag Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Wcag Server?
Нет, Wcag Server работает без API-ключей и переменных окружения.
Wcag Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Wcag Server в Claude Desktop, Claude Code или Cursor?
Открой Wcag Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Wcag Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
