Flakiness Knowledge Graph MCP logo

Flakiness Knowledge Graph MCP

Builds a local SQLite history of Playwright runs and exposes flakiness analysis through MCP tools.

Install Flakiness Knowledge Graph MCP

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "flakiness-knowledge-graph-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "flakiness-graph-seed"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio flakiness-knowledge-graph-mcp -- npx -y flakiness-graph-seed

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y flakiness-graph-seed

rror 404 'flakiness-graph-seed@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.2 npm notice To update run: npm install -g npm@12.2.2 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-11T14_29_17_052Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

flakiness-knowledge-graph-mcp MCP server combines a Playwright reporter with an MCP interface for analyzing test-run history. The reporter records results in a local SQLite database, while the server reads that database on demand to identify flaky, slow, and correlated tests. Reach for it when you need historical browser, OS, error, trend, or Git-commit context beyond a single Playwright trace.

Use cases

  • Rank historically flaky Playwright tests
  • Compare failure rates across browsers and operating systems
  • Track whether a test’s flakiness is increasing
  • Find shared causes across similar error messages
  • Identify commits associated with reliability regressions

Key features

  • Playwright custom reporter
  • Local SQLite run-history database
  • Flaky and slow test ranking
  • Browser and OS failure analysis
  • Semantic error clustering
  • Git commit flakiness correlation

Security & health

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

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 18d ago via OSV.dev · flakiness-graph-seed (npm)

Adoption & maintenance

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

Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Flakiness Knowledge Graph MCP works

What flakiness-knowledge-graph-mcp MCP server does

The flakiness-knowledge-graph-mcp MCP server collects Playwright test results over time and makes that history available to AI agents. Its reporter writes run records to a local SQLite database, including the test identifier, title, suite, file, status, duration, browser, operating system, timestamp, error, retry information, and Git metadata when available.

This history supports questions that a single test report cannot answer. You can identify tests with high failure or flakiness rates, check whether a test behaves differently across browser and OS combinations, find slow tests, and inspect whether a test’s reliability is changing over time. The data remains local in the configured database file.

How it works

Add the reporter to a Playwright configuration and provide a database path, such as ./flakiness.db. Normal test execution then records each result automatically. The MCP process reads the database when a tool is called and reuses its in-process database handle.

The flakiness-knowledge-graph-mcp MCP server uses sql.js, a WebAssembly-based SQLite implementation, rather than a native SQLite dependency. Git transition analysis can use CI commit variables including GITHUB_SHA, CI_COMMIT_SHA, CIRCLE_SHA1, and GIT_COMMIT. When enough consecutive passing runs precede a failure, the commit correlation tool can report the transition along with branch and author data when those fields are present.

Setup and configuration

Install the package globally with npm, or clone the repository and run its install and build commands. Configure the Playwright reporter with the database location:

ts
reporter: [["flakiness-knowledge-graph-mcp/reporter", { dbPath: "./flakiness.db" }]]

Register the executable as an MCP server in Cursor or VS Code, or add it to Claude Code with the documented claude mcp add command. A separate seed command can create 30 days of sample data in a database for trying the tools without an existing Playwright project.

For parallel workers in one Node process, the reporter uses an in-process write queue. Separate CI processes or shards should write to separate database files; those files can later be merged with standard SQLite tools or a custom script. Sharing one SQLite file across independent machines or processes is not recommended because file-system locking may not make writes atomic.

Tools and capabilities

The flakiness-knowledge-graph-mcp MCP server exposes eight tools:

  • get_flaky_tests ranks tests by failed-plus-flaky runs divided by total runs, with filters for minimum runs, result count, and age.
  • get_test_history returns a test’s run status, duration, error, retry, browser, and OS details.
  • get_failure_patterns breaks failure rates down by browser and operating-system combination.
  • get_slow_tests ranks tests by average duration.
  • get_error_groups groups failures by exact error prefix to expose repeated problems.
  • get_flakiness_trend reports daily flakiness rates for a selected test over a requested period.
  • cluster_semantic_error_trees normalizes values such as UUIDs, IDs, and URLs before fuzzy-merging similar errors with Levenshtein matching.
  • correlate_git_commit_flakiness searches for stable-to-flaky or flaky-to-stable transitions and associates them with commit, branch, and author data when available.

Every tool accepts a db_path; other arguments control limits, time ranges, thresholds, or the target test.

Limitations and notes

The reporter is designed for Playwright results and the server depends on accumulated history in its SQLite database. It does not replace analysis of an individual trace. Its Git correlation depends on commit information being available in the CI environment and on having enough prior stable runs to detect a transition.

For local development or single-machine CI, the documented setup is considered safe. Multi-process or multi-machine writers should use separate databases and merge them afterward. The flakiness-knowledge-graph-mcp MCP server can complement a trace-decoding MCP server: one supplies historical reliability context, while the other examines details from a particular run.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Flakiness Knowledge Graph MCP

flakiness-knowledge-graph-mcp is an MCP server that connects AI agents to Playwright run history stored in a local SQLite database. Its main tools rank flaky and slow tests, inspect test history, compare browser and OS failures, cluster related errors, track trends, and correlate flakiness transitions with Git commits.

Install it globally with `npm install -g flakiness-knowledge-graph-mcp`, or clone the repository and run `npm install && npm run build`. Then register the `flakiness-knowledge-graph-mcp` executable as an MCP server in your client.

Add `flakiness-knowledge-graph-mcp/reporter` to the Playwright reporter configuration and set its `dbPath`, such as `./flakiness.db`. Running the suite normally causes the reporter to write each result to that SQLite database.

Yes, it works with Cursor through a standard MCP configuration. Add a server entry in `.cursor/mcp.json` with `command` set to `flakiness-knowledge-graph-mcp`, then point your agent at the database created by the Playwright reporter.

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 PreviewFlakiness Knowledge Graph MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/flakiness-knowledge-graph-mcp?style=directory)](https://allmcps.com/mcp/flakiness-knowledge-graph-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/flakiness-knowledge-graph-mcp"><img src="https://allmcps.com/api/badge/flakiness-knowledge-graph-mcp?style=directory" alt="Flakiness Knowledge Graph MCP on AllMCPs" /></a>