Read-only table diffs with segment attribution: which slice of your data changed.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Diff two tables. See what changed, and which slice of your data it's concentrated in.
datadiffer compares two tables (dev vs. prod, PR vs. main, source vs.
destination) and tells you what changed and where it's concentrated: rows
added / removed / modified, per-column change rates, and segment attribution.
Built for the era when agents write your pipelines and someone has to check their work. A maintained, MIT-licensed successor to the archived data-diff.
No credentials, no config, no account. It generates its own data:

That last block is the point. A diff tells you 432 rows changed; datadiffer tells you they're almost all German orders, which is the difference between "something moved" and "the VAT change landed."
Exit codes follow the GNU diff convention: 0 no differences, 1 differences found, 2 operational error.
Useful flags: --key (inferred when omitted), --where, --columns /
--exclude-columns, --sample-limit, --no-attribution, -q.
datadiffer-action posts the report as a sticky PR comment:
datadiffer:
ANALYTICS.ORDERSvsANALYTICS_PR_482.ORDERS: differences found β+800 added Β· β250 removed Β· ~432 modified Β· 49,318 unchanged (2.96% of base rows affected) Policy: max-changed-rows-pct exceeded: 2.96% > 0.5%
Column Changed rows % of matched amount432 0.87% Where it's concentrated: 98.6% of modified rows have
country = 'DE'(8.87Γ over-represented) 93.2% of added rows haveplan = NULL(63.19Γ over-represented)
Running dbt? docs/dbt-ci.md turns dbt ls --select state:modified into one diff per changed model, each with its own comment.
Let a coding agent verify its own data changes:
Any MCP client works. datadiffer init prints the server entry to paste,
including a uvx form for clients that prefer no global install.
Four read-only tools: list_connections, schema_diff, diff_summary
(cheap preflight), diff_tables (full report). Credentials never pass
through the model. Tools take connection names from your local
datadiffer.toml, never DSNs. Over-cap requests come back as structured
refusals with a remedy, so the agent can self-correct instead of failing.
Most diff tools answer whether two tables match. datadiffer answers what changed and where: which columns moved, and which slice of the data the change is concentrated in.
| Tool | Use it instead when |
|---|---|
| Datafold | You need billion-row cross-database reconciliation, a collaboration UI, lineage/impact analysis, and a support contract. |
SQLMesh table_diff | You already run SQLMesh and diff within a single gateway (cross-database diffing is a Tobiko Cloud feature). |
| Recce | You want a dbt-native PR review UI and your whole workflow is dbt. |
| Google DVT | You're validating a migration across 17 warehouse types and want pass/fail validation with YAML configs. |
| datacompy | You're comparing two pandas/Spark/Polars DataFrames inside one process. |
datadiffer is for the case in between: one command, no platform, works from your terminal, your CI, or your agent, and it explains itself.
Same job, different flags:
| data-diff / reladiff | datadiffer |
|---|---|
data-diff DB1 table1 DB2 table2 | datadiffer diff <a> <b> (locators or --source/--target) |
-k, --key-columns | --key (repeatable, or comma-separated) |
-c, --columns | --columns |
-w, --where | --where (validated: single boolean expression, no subqueries) |
--json | --format json (stable schema v1) |
-l, --limit | --sample-limit |
Differences worth knowing: keys are inferred from declared constraints or
*_id conventions when you omit --key; unknown column names in filters are
an error, never silently ignored; and exit code 1 means "diff found"
(2 is reserved for operational errors), so CI can tell them apart.
Not yet ported: checksum-bisection hashdiff for very large cross-database diffs, which is reladiff's headline capability, plus MySQL, Oracle, ClickHouse, Trino and the rest of its connector list. If you need those today, use reladiff; the bisection port is the top item on our v0.2 roadmap and will credit its author.
Full command mapping and behavior differences: docs/migrating-from-data-diff.md.
--where. Pushing the comparison into the warehouse, and lifting that cap
with checksum bisection, are the next two pieces of work.execution.snapshot);
Snowflake pulls are a single consistent SELECT.MIT, no CLA, no telemetry. The report schema is frozen at v1 and contract-tested, so pipelines and agents that parse it keep working across releases. Dependencies are deliberately few: DuckDB, PyArrow, sqlglot, click, rich.
BigQuery, then checksum-bisection hashdiff so large cross-database diffs stop needing a row cap (ported with credit to reladiff), then more connectors. Tracked in issues. Comment on the one you need and it moves up.
Prior art gratefully acknowledged: data-diff and reladiff (Erez Shinan), whose checksum-bisection design v0.2 will port; Adtributor (Microsoft Research) for the attribution scoring; and DuckDB, which makes all of this fast enough to be boring.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/datadiffer)<a href="https://allmcps.com/mcp/datadiffer"><img src="https://allmcps.com/api/badge/datadiffer?style=directory" alt="Datadiffer on AllMCPs" /></a>