Skip to content
@culpritsql

Culprit SQL

Evidence-based database root-cause analysis. Desktop, CLI, MCP, and fleet telemetry.

Culprit SQL Studio: Find the root cause. Prove the fix.

Open-source performance diagnostics and root-cause analysis for relational and analytical databases.

SQL Server Azure SQL PostgreSQL TimescaleDB YugabyteDB MySQL MariaDB ClickHouse SQLite

culpritsql.com · fleet.culpritsql.com · explain.culpritsql.com
Blog · Guide · Architecture · Coding Agents (MCP) · Collector & ADX · Releases

Two ways to run it

Mode How it works
Direct
Desktop · CLI · MCP
Connect directly to a database (or open a saved snapshot offline) to inspect top queries, ranked findings, execution plans, live blocking, virtual indexes, and SQL migrations in CI or coding agents.
Fleet & Collector
ADX · ClickHouse · Helm
Deploy culprit-collector in your database network to stream verified telemetry and synthesized root-cause findings to Azure Data Explorer (ADX) or ClickHouse, and run Culprit Fleet (live demo) for zero-seat OIDC browser triage and remote POST /mcp.

What it diagnoses

  • Top queries by database time, wait attribution & ranked findings
  • Execution plan regressions, parameter sensitivity & side-by-side plan diffs
  • @TVP cardinality skew, memory-grant starvation & disk spills
  • Page-latch (PAGELATCH) hot pages & tempdb allocation contention
  • Blocking chains, DDL metadata-lock sandwiches & deadlocks
  • Worker-thread (THREADPOOL) & compiler-gateway starvation
  • PostgreSQL subtransaction (SubtransSLRU) & XID wraparound cliffs
  • Transaction-log stalls, slow client consumers & replica redo blocks
  • Version-store (PVS / vacuum) retention & cloud tier throttling
  • Missing/unused indexes & unsafe SQL migrations in pull requests

Alert on root causes directly from ADX

Point an Azure Monitor Scheduled Query Rule or Grafana alert at ADX to page on-call with the culprit and fix already attached:

// Runs every 1m in Azure Monitor / Grafana -> PagerDuty, Slack, or Teams
CulpritIncidentsV1
| where UpdatedAt > ago(5m) and Status == "active" and Severity == "high"
| project StartedAt, DatabaseName, CulpritKind, Headline, CulpritSql, DeveloperAction

Developer tools & packages

Project Install / Access Focus
Culprit SQL Studio culpritsql.com Desktop app, CLI, fleet collector, and 27-tool MCP server
Culprit Fleet fleet.culpritsql.com · Helm & GHCR Self-hosted multi-region fleet command center, archive time-machine & remote MCP server
Culprit Explain explain.culpritsql.com Client-side web visualizer for plans, diffs, deadlocks, and .xel captures
Culprit SQL for VS Code VS Code · Open VSX .sqlplan / .xel / .explain.json / .xdl editor, diff studio & SQL CodeLens
@culpritsql/devtools npm i @culpritsql/devtools React & Node.js SQL HUD, N+1 detector, and live EXPLAIN drawer
@culpritsql/test npm i -D @culpritsql/test Vitest, Jest & node:test matchers for indexes, spills & plan diffs
@culpritsql/ci uses: culpritsql/culprit-ci@v0.5.11 SQL migration lock linter, plan gate, SARIF 2.1.0 & PR diff bot
@culpritsql/plans npm i @culpritsql/plans Rust + WebAssembly SQL plan & deadlock parser and differ
@culpritsql/plan-viewer npm i @culpritsql/plan-viewer React <PlanViewer />, <PlanDiffViewer /> & <DeadlockViewer />

Pinned Loading

  1. culprit-sql-studio culprit-sql-studio Public

    Database root-cause diagnostics, 24/7 fleet collector, CLI & 27-tool MCP server for SQL Server, PostgreSQL, TimescaleDB, YugabyteDB, MySQL, MariaDB, ClickHouse & SQLite.

    Rust 31 3

  2. culprit-fleet culprit-fleet Public

    Self-hosted multi-region database fleet command center, archive time-machine & OIDC-gated MCP server for SQL Server, PostgreSQL, MySQL, MariaDB, ClickHouse, TimescaleDB & YugabyteDB.

    TypeScript

  3. culprit-vscode culprit-vscode Public

    Interactive SQL execution plan diagrams, side-by-side plan diffs, deadlock cycle graphs, and SQL safety checks for VS Code, Cursor & Windsurf.

    TypeScript

  4. culprit-plan-viewer culprit-plan-viewer Public

    Interactive React execution plan diagrams, structural diffs, deadlock cycle graphs & Extended Events (.xel) viewer for SQL Server, PostgreSQL, MySQL, MariaDB, ClickHouse, YugabyteDB & SQLite.

    TypeScript

Repositories

Showing 10 of 11 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…