
DataSentry
io.github.Jackxiaozhiren由 GitHub 账号 Jackxiaozhiren 发布v2.0.0更新于 Oct 26, 2026
Local-first MCP server for data-quality discovery, evidence, drift, and controlled repair.
概览
本地优先的 MCP 服务器,让助手扫描数据质量问题、查看证据、比较漂移并提出可回滚的修复方案。
- 可以做什么
- 扫描文件、数据库和云对象,读取带样本、数量与置信度的证据化问题清单
- 读取六维质量评分、历史记录,以及模式、行数和问题分布的漂移对比
- 校验数据契约并管理定时扫描任务
- 提出、预览、应用到副本、验证并回滚修复,不覆盖原始文件
- 适用场景
- 适合面对尚不完全信任的数据、希望在固化为规则前先自动发现问题并拿到证据的场景;也适合让助手对 CSV、Parquet、JSONL、XLSX、DuckDB、SQLite、PostgreSQL、MySQL 或 S3/GCS/Azure 对象执行保守、可回滚的检测—修复—验证流程。
- 运行要求
- 作为本地 stdio 进程运行,从 PyPI 安装 datasentry-ai,用 uvx 或 datasentry mcp 命令并指定项目路径启动。无需 API 密钥、云服务或 LLM,确定性检测在本地基于 DuckDB 执行;OpenAI 或 Ollama 辅助为可选项。
安装
在 SourceWeft 中
- 打开 控制台中的 DataSentry,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DataSentry
Find bad data before your users do.
Automatic data-quality discovery, evidence-backed explanations, and safe reversible repair.
Local-first. Deterministic by default. AI optional.
Live demo · 30-second start · Use cases · FAQ · PyPI · Examples · MCP setup · Contribute
[Release] [PyPI] [Python] [CI] [License]
[DataSentry scans dirty data, explains evidence, and starts a safe repair loop]
中文导读:DataSentry 会先自动发现数据质量问题,再给出样本、比例、置信度等证据。修复采用
propose → preview → apply to a copy → verify → rollback的保守流程。检测与评分不依赖 LLM,AI 只作为可选辅助,数据可以完全留在本机。
Try it in 30 seconds
Install the current PyPI release and run the zero-config product tour:
datasentry-demo is also available as a direct console alias.
The demo generates synthetic dirty data, runs the built-in detectors, exports JSON + HTML reports, applies one safe repair to a copy, re-scans the repaired copy, and prints a rollback command. It needs no dataset, cloud service, API key, or LLM.
Prefer scanning your own data immediately?
Or launch the interactive interfaces:
Start with your problem
The default path is intentionally low-commitment: scan first, inspect evidence, then decide whether a finding deserves a permanent rule or a repair.
Why DataSentry exists
Most data-quality tools are excellent once you already know the expectations, checks, or contracts you want to enforce. Real incidents often start one step earlier: you do not yet know what is wrong.
DataSentry is built around the complete remediation loop:
- Find — discover common quality problems without writing every rule first.
- Explain — attach samples, affected counts/ratios, detector evidence, and confidence.
- Fix safely — preview changes and apply repairs to a copy instead of mutating the source.
- Verify — re-scan the repaired copy and surface persistent or newly introduced issues.
DataSentry fits best when you are looking at data you do not fully trust yet, want evidence before codifying checks, or need a conservative remediation path. It complements expectation- and contract-driven tools rather than requiring you to replace them.
What it catches automatically
DataSentry ships with 39 deterministic detectors covering common failure modes such as:
- missing and placeholder values;
- invalid emails, URLs, dates, and encodings;
- duplicate identifiers and uniqueness violations;
- inconsistent categories and cross-field contradictions;
- foreign-key and referential-integrity problems;
- numeric and statistical outliers;
- schema, row-count, score, and issue-distribution drift.
Every scan produces an evidence-backed issue list and a six-dimension quality score across completeness, validity, uniqueness, consistency, integrity, and timeliness.
Safe repair, not blind mutation
Repairs are fingerprinted, auditable, and reversible. AI-generated repair proposals remain human-approved state changes.
Quality gates for CI
For GitHub repositories, reuse DataSentry's maintained workflow_call gate instead of duplicating installation and exit-code handling:
See docs/GITHUB_ACTIONS.md for inputs, artifacts, security boundaries, and version-pinning guidance.
Reports can be exported as JSON, Markdown, HTML, JUnit, and SARIF. The versioned, machine-readable JSON report Schema is included for downstream validation. The GitHub Actions example fails the workflow on severe findings while still uploading an HTML report for review.
Give AI agents deterministic data-quality tools
DataSentry includes an MCP stdio server:
MCP-capable clients can scan files, inspect evidence-backed issues, read quality scores and trends, compare drift, validate contracts, manage scheduled jobs, and call DataSentry tools without bypassing the same underlying safety rules used by the CLI and REST API.
Copy-paste setup recipes for VS Code and Claude Desktop are in docs/MCP.md.
Boundary: AI may propose; humans approve state-changing repairs.
Where it fits next to popular data-quality projects
This is a positioning guide, not a winner/loser feature scorecard. These projects solve overlapping but different jobs; check their upstream documentation for current capabilities.
DataSentry is intentionally not trying to replace a metadata catalog, lineage platform, or every validator. Its focus is narrower: find bad data, show why it was flagged, and close the repair loop without gambling on the source.
Local-first by design
- deterministic detection and scoring run locally;
- DuckDB powers core local execution;
- OpenAI/Ollama assistance is optional;
- PII redaction, encrypted mappings, and LLM audit records are available when AI is enabled;
- the original source file is not overwritten by repair workflows.
Data sources
- CSV, Parquet, JSONL, XLSX
- DuckDB and SQLite
- PostgreSQL and MySQL
s3://,gs://, andaz://objects- single files, batches, and globs
History and drift
Persist scans and compare data over time:
Tracked signals include schema changes, row-count movement, quality-score changes, and issue-distribution drift.
Architecture
Reproducible benchmark
The benchmark generates synthetic dirty data and measures profiling, detection/fusion/scoring, numeric-outlier detection, JSONL reading, sampling, score drift, and memory high-water marks. See docs/BENCHMARKS.md.
Development
Contributing
Useful contributions include new detectors, connectors, integration examples, reproducible benchmark cases, documentation/translations, minimal bug reproductions, and CLI/TUI/Web usability improvements.
Want a small first contribution? Start with good first issue #14 or good first issue #15.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, and ROADMAP.md. Small contributions are tracked with good first issue and help wanted labels.
Documentation
- Project site and live report
docs/FAQ.md— evaluation, safety boundaries, and how DataSentry fits alongside other data-quality toolsexamples/— scenario-first runnable examplesdocs/MCP.md— VS Code and Claude Desktop MCP setupdocs/GITHUB_ACTIONS.md— reusable GitHub quality gateexamples/integrations/github-actions/— copy-paste CI gatedocs/BENCHMARKS.md— benchmark policydocs/DEVELOPMENT.md— engineering notes- Detect → fix → verify / 中文版
License
Apache-2.0 — see LICENSE.
If DataSentry helps you catch bad data before it reaches production, consider giving the repository a ⭐.
It helps other data engineers discover the project.
来源:README.md,提交 8c1a89b
工具
0版本历史
3- v2.0.0最新Oct 19, 2026
- v1.0.5Oct 19, 2026
- v1.0.4Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分