vola-trebla avatar

Playwright Network Chaos Mcp

vola-trebla/playwright-network-chaos-mcp

Exposes eight Playwright network interception tools for testing how web apps handle API failures, latency, connection drops, and third-party outages. You get simulate_api_failure to force error codes, inject_latency to add delays with jitter, block_resources for analytics and CDN blocking, simulate_network_drop for mid-flight aborts, trigger_system_network_error for DNS and firewall failures, simulate_stateful_failure for retry testing, inject_response_corruption for malformed JSON, and assert_chaos_handled for pass/fail verdicts. Each tool returns structured results showing intercepted request counts, whether fallback UI appeared, console errors, and page state. Useful when you need AI agents to verify error boundaries, loading states, and resilience logic that only surfaces when networks behave badly.

tools
8
transport
STDIO
last updated
May 19, 2026

Tools

8 tools

Public tool metadata for what this MCP can expose to an agent.

simulate_api_failureIntercepts requests matching a pattern and forces them to return an error status code. Checks if the app shows a fallback UI.

Intercepts requests matching a pattern and forces them to return an error status code. Checks if the app shows a fallback UI.

No parameter schema in public metadata yet.

inject_latencyAdds artificial delay to matching requests. Checks if loading states appear while the app waits.

Adds artificial delay to matching requests. Checks if loading states appear while the app waits.

No parameter schema in public metadata yet.

block_resourcesAborts requests to specified URL patterns — for testing third-party outages (analytics, CDNs, tracking pixels).

Aborts requests to specified URL patterns — for testing third-party outages (analytics, CDNs, tracking pixels).

No parameter schema in public metadata yet.

simulate_network_dropAborts requests mid-flight after a delay — simulating connection loss between request and response.

Aborts requests mid-flight after a delay — simulating connection loss between request and response.

No parameter schema in public metadata yet.

trigger_system_network_errorAborts requests with an OS-level error code — simulating DNS failures, firewall blocks, and connection resets.

Aborts requests with an OS-level error code — simulating DNS failures, firewall blocks, and connection resets.

No parameter schema in public metadata yet.

simulate_stateful_failureFails the first N requests then lets subsequent ones succeed — testing retry logic and recovery flows.

Fails the first N requests then lets subsequent ones succeed — testing retry logic and recovery flows.

No parameter schema in public metadata yet.

inject_response_corruptionServes malformed responses at the protocol level — unterminated JSON, content-length lies, or truncated payloads.

Serves malformed responses at the protocol level — unterminated JSON, content-length lies, or truncated payloads.

No parameter schema in public metadata yet.

assert_chaos_handledInjects a chaos HTTP status and returns a structured pass/fail verdict — chaos_survived is true only when the fallback UI appears and there are no unhandled JS exceptions.

Injects a chaos HTTP status and returns a structured pass/fail verdict — chaos_survived is true only when the fallback UI appears and there are no unhandled JS exceptions.

No parameter schema in public metadata yet.

Sponsors

Readme

playwright-network-chaos-mcp 🐸💥

npm version npm downloads CI License: MIT

An MCP server that gives AI agents dynamic network chaos control over Playwright browser sessions.

Your tests run on perfect networks. Your users don't. This MCP lets AI agents simulate API outages, inject latency, drop connections mid-flight, and block third-party resources — then assert whether the app handles it gracefully.


🤔 The Problem


View the full README on GitHub

Details

Repository
github.com/vola-trebla/playwright-network-chaos-mcp
Category
Web & Browser Automation
Package
playwright-network-chaos-mcp
Transport
STDIO
Registry
MCP registry, active

More from vola-trebla

Related Web & Browser Automation MCP servers

View all
1zhiqi-li avatarBrowser Mcp Cdpzhiqi-li/browser-mcp-cdpLocal Chrome via CDP with profile-snapshot isolation and shared-broker multi-client support0stars
2chromedevtools avatarChrome DevTools MCPchromedevtools/chrome-devtools-mcpMCP server for Chrome DevTools55.2Kstars
3angiejones avatarMCP Selenium Serverangiejones/mcp-seleniumAn MCP implementation for Selenium WebDriver411stars
4etairl avatarParallel Browser MCPetairl/parallel-browser-mcpMCP server for parallel browser automation across multiple providers.51stars
5pshivapr avatarSelenium Mcppshivapr/selenium-mcpSelenium Tools for MCP6stars
6ykshah1309 avatarStealth Agent Browserykshah1309/stealth-agent-browser-mcpStealth Chromium MCP server with hybrid AOM + Set-of-Mark vision and Readability extraction.1stars