Playwright Trace Decoder MCP logo

Playwright Trace Decoder MCP

Unpacks Playwright trace.zip files and exposes structured tools for diagnosing CI test failures.

Install Playwright Trace Decoder MCP

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.example.com/cart/items

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

playwright-trace-decoder-mcp MCP server unpacks Playwright trace.zip archives and exposes structured trace data to AI agents. Its tools cover metadata, action timelines, network failures, console errors, ARIA trees, screenshots, causal chains, trace comparison, and source mapping. Trace paths can be local absolute paths or HTTPS URLs, with downloaded archives cached for the session. Reach for it when an agent needs to investigate a Playwright failure without processing raw archive contents or oversized JSON responses.

Use cases

  • Investigate a failed Playwright test from a CI trace
  • Identify the source line behind a failing locator
  • Compare passing and failing browser runs
  • Inspect network and console errors around a failure
  • Reduce trace archive size before storage or transfer

Key features

  • Structured Playwright trace.zip inspection
  • Paginated action, network, and console results
  • Compact ARIA trees and DOM mutation deltas
  • Failure screenshots and critical-frame extraction
  • Causal-chain and passing-versus-failing trace analysis
  • Locator-to-source mapping and error signatures

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

7/7 checks healthy over the last 45d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Playwright Trace Decoder MCP works

What playwright-trace-decoder-mcp MCP server does

playwright-trace-decoder-mcp MCP server turns Playwright trace.zip archives into focused, queryable results for failure investigation. Instead of exposing the archive as an undifferentiated collection of JSON and media files, it provides separate operations for test metadata, actions, browser logs, page structure, screenshots, and error relationships.

The server is aimed at Playwright end-to-end failures, especially those produced in CI. It can identify the failing action and top-level error, return the browser and viewport context, show failed network responses, and report JavaScript exceptions or warnings. It can also map a failed browser interaction to the file, line, and column in the test runner stack when that information is available in the trace.

How it works

Each operation receives a trace_path. The path may point to an absolute local archive or an HTTPS URL. For HTTPS inputs, the server downloads the archive and caches it for the session. Results are returned in focused formats rather than requiring an agent to read the archive directly.

List-oriented results, including action timelines, filtered network logs, and console output, accept limit and offset parameters. The documented range for limit is 1–500, with a default of 50, and responses include a has_more indicator for further pages.

The DOM-oriented tools use compact ARIA representations instead of full HTML. One operation returns the accessibility tree at a selected action, while another computes the added and removed ARIA lines around an action. Screenshot tools return Base64-encoded JPEG data, allowing an agent to inspect visual state when a page is blank or the accessibility tree does not provide enough information.

Tools and capabilities

The inspection tools expose test metadata, a high-level trace summary, paginated action history, server-error network responses, console errors, failure element state, and strict trace-format metadata. The strict metadata result includes the format version, retry-session breakdown, and HAR payload mode.

For UI investigation, the server can retrieve an accessibility tree, calculate DOM mutation deltas, obtain screenshots near failure, inspect requests that were still in flight, correlate completed fetches with DOM changes, and extract selected screencast frames around the failure window.

Root-cause tools build a chronological chain of preceding actions, network errors, and console errors; generate a stable 12-character SHA-1 signature from a normalized error; compare passing and failing traces; and map a locator or action to source code. Trace comparison aligns action sequences and reports structural differences, timing anomalies over 500 milliseconds, unmatched actions, and network changes.

Limitations and notes

The input is a Playwright trace.zip archive. The material describes analysis of trace data rather than live browser control or test execution, so it should be used after a trace has been produced. Visual results are encoded as Base64 JPEG data, which may still be sizable even though the server limits extraction to selected frames.

ARIA output is intentionally compressed and may not represent every detail available in raw HTML. The accessibility tree defaults to the snapshot associated with the failed action, while a specific action index can be requested. Screenshot selection similarly defaults to the image closest to failure, with an index available for walking the visual timeline.

playwright-trace-decoder-mcp MCP server can reduce the amount of trace data an agent needs to inspect, but conclusions still depend on what the recorded trace contains. The archive can also be trimmed by removing screenshots outside the critical failure window; the trimming result reports original size, reduced size, compression percentage, and the path to the new archive.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Playwright Trace Decoder MCP

playwright-trace-decoder-mcp is an MCP server that connects AI agents to Playwright trace.zip archives for structured failure analysis. Its main tools inspect metadata, actions, network and console errors, ARIA trees, screenshots, causal chains, source locations, and differences between passing and failing traces.

Yes, it accepts an HTTPS URL as trace_path, downloads the archive automatically, and caches it for the session. It also accepts an absolute local path to a trace.zip archive.

It reduces response volume with focused tools, pagination, compact ARIA YAML, DOM mutation deltas, and selected screenshot extraction. List tools support limit and offset parameters, with a has_more flag for additional results.

Yes, map_locator_to_source returns the failing interaction and can identify the test file, line, and column through the runner execution stack when that information is present in the trace.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPlaywright Trace Decoder MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/playwright-trace-decoder-mcp?style=directory)](https://allmcps.com/mcp/playwright-trace-decoder-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/playwright-trace-decoder-mcp"><img src="https://allmcps.com/api/badge/playwright-trace-decoder-mcp?style=directory" alt="Playwright Trace Decoder MCP on AllMCPs" /></a>