
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
playwright-accessibility-mcp-server
Advanced tools
MCP server for running the accessibility tests using Playwright and Axe-core.
This project is an implementation of a Model Context Protocol (MCP) server for accessibility testing using Playwright and Axe. It provides tools to scan URLs, raw HTML, and batches of URLs for accessibility violations and summarize the results.
[!TIP] The simplest way to get started is to use the one-line installation:
npx playwright-accessibility-mcp-server. This will automatically download and run the latest version without having to manually install the package.
First, install the Playwright Accessibility MCP server with your client. A typical configuration looks like this:
{
"mcpServers": {
"playwright-accessibility": {
"command": "npx",
"args": [
"playwright-accessibility-mcp-server@latest"
]
}
}
}
You can also install the Playwright Accessibility MCP server using the VS Code CLI:
# For VS Code
code --add-mcp '{"name":"playwright-accessibility","command":"npx","args":["playwright-accessibility-mcp-server@latest"]}'
After installation, the Playwright Accessibility MCP server will be available for use with your GitHub Copilot agent in VS Code.
Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx playwright-accessibility-mcp-server. You can also verify config or add command like arguments via clicking Edit.
{
"mcpServers": {
"playwright-accessibility": {
"command": "npx",
"args": [
"playwright-accessibility-mcp-server@latest"
]
}
}
}
Follow Windsuff MCP documentation. Use following configuration:
{
"mcpServers": {
"playwright-accessibility": {
"command": "npx",
"args": [
"playwright-accessibility-mcp-server@latest"
]
}
}
}
Follow the MCP install guide, use following configuration:
{
"mcpServers": {
"playwright-accessibility": {
"command": "npx",
"args": [
"playwright-accessibility-mcp-server@latest"
]
}
}
}
Clone the repository:
git clone https://github.com/deepakkamboj/playwright-accessibility-mcp-server.git
cd playwright-accessibility-mcp-server
Install dependencies:
npm install
Build the project:
npm run build
Start the server:
npm start
Use the tools via the MCP protocol to perform accessibility testing.
This project implements the MCP protocol, allowing you to interact with the server using MCP-compatible clients. Below are the steps to use it as an MCP server:
Start the MCP Server: Ensure the server is running by executing:
npm start
Connect to the Server:
Use an MCP client to connect to the server. The default server runs on http://localhost:3000.
Send MCP Requests: Use the following tools via MCP requests:
scan-url: Analyze a single URL for accessibility violations.scan-html: Analyze raw HTML content for accessibility violations.scan-batch: Analyze multiple URLs for accessibility violations.summarize-violations: Summarize accessibility violations from Axe results.write-violations-report: Write accessibility violations report to the output directory.Example MCP Request: Below is an example of an MCP request to write a violations report:
{
"tool": "write-violations-report",
"input": {
"violations": [
{
"id": "color-contrast",
"impact": "serious",
"description": "Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds.",
"helpUrl": "https://dequeuniversity.com/rules/axe/4.7/color-contrast",
"nodes": [
{
"target": ["#example"],
"failureSummary": "Fix this element's color contrast.",
"html": "<div id='example' style='color: #fff; background-color: #fff;'>Example</div>"
}
]
}
]
}
}
Send this request to the server using an MCP client, and the server will write the violations report to the output directory.
For AI clients (e.g. Claude Desktop, Cursor, VS Code MCP extension), configure your <client>_config.json:
{
"mcpServers": {
"playwright-accessibility-mcp-server": {
"command": "node",
"args": ["${AbsolutePath}/build/index.js"]
}
}
}
Once the MCP server is running, you can invoke tools like:
scan-url (params: { "url": "https://google.com" })scan-html (params: { "html": "<h1>Hello</h1>" })scan-batch (params: { "urls": ["https://a.com","https://b.com"] })summarize-violations (params: { "result": <axe result> })For local development, configure your <client>_config.json as follows:
{
"mcpServers": {
"playwright-accessibility-mcp-server": {
"command": "node",
"args": ["${AbsolutePath}/build/index.js"]
}
}
}
To run the server in development mode:
npm run dev
To test the tools, export the server and use the MCP SDK.
git checkout -b feature/xyz).This project is licensed under the MIT License.
FAQs
MCP server for running the accessibility tests using Playwright and Axe-core.
We found that playwright-accessibility-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.