
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 toolsPublic 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 🐸💥
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
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
- Playwright Spatial Layout Mcp
- Sourcemap Retrace Mcp
- Tailwind Context Resolver Mcp
- Tsconfig Inheritance Flattener Mcp
- V8 Cpu Profile Decoder Mcp
- Release Readiness Triage Mcp
- React Render Profile Mcp2
- Playwright Trace Decoder Mcp1
- Ast Impact Mapper Mcp
- Env Secret Exposure Analyzer Mcp
- Flakiness Knowledge Graph Mcp
- Ndjson Local Log Triage Mcp