原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Scherlok

作者:rbmuller版本 1.3.0i★ –i在你的电脑上运行
注册名称io.github.rbmuller/scherlok

安装

概览

作者提供的说明(英文原文)

Zero-config data-quality monitoring: profile a warehouse, detect anomalies, gate CI.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具
  • 你需要填写:SCHERLOK_CONNECTION

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SCHERLOK_CONNECTION

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "scherlok": {
      "command": "uvx",
      "args": [
        "scherlok"
      ],
      "env": {
        "SCHERLOK_CONNECTION": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add scherlok --env SCHERLOK_CONNECTION=your-value -- uvx scherlok

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "scherlok": {
      "command": "uvx",
      "args": [
        "scherlok"
      ],
      "env": {
        "SCHERLOK_CONNECTION": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "scherlok": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "scherlok"
      ],
      "env": {
        "SCHERLOK_CONNECTION": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SCHERLOK_CONNECTION 机密 必填 env
    Warehouse connection string (postgresql://, bigquery://, snowflake://, mysql://, duckdb:///path). Resolved server-side; never passed by the model.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 rbmuller 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 4923 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 4923 个服务器的 93% 更新
  • 基础检查结果等于或优于此分类中其他 4923 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Scherlok 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:SCHERLOK_CONNECTION

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.3.0)于前天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT17天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Scherlok

Zero-config anomaly detection for your database tables.

No YAML, no rules, no thresholds. Scherlok learns what "normal" looks like, then tells you when something changes.

pip install scherlok

scherlok ci postgres://user:pass@host/db # first run: baseline + new-table checks; every run after: drift

No database handy? The demo seeds one, learns it, breaks it, and catches it, in about a second:

uvx --from "scherlok[duckdb]" scherlok demo

Works with PostgreSQL, BigQuery, Snowflake, MySQL, DuckDB and dbt. Alerts go to Slack, Discord, Teams, email, or your CI exit code.


The Problem

Every data team has the same nightmare:

A source API silently changes from dollars to cents. Revenue dashboards show wrong numbers for 3 weeks before anyone notices.

A column starts returning NULLs. A table stops updating. Row counts drop 40% on a Tuesday. Nobody knows until the CEO asks why the report looks weird.

Current tools (Great Expectations, Soda, dbt tests) require you to define what "correct" looks like before you can detect what's wrong. Hundreds of rules. Dozens of YAML files. And you still miss things — because you can't write rules for problems you haven't imagined yet.

What It Catches

AnomalyWhat HappenedSeverity
Volume dropRow count dropped 40% overnightCRITICAL
Volume spike3x more rows than normalWARNING
Freshness alertTable hasn't updated in 12h (normally every 2h)CRITICAL
Schema driftColumn removed or type changedCRITICAL
NULL surgeNULL rate jumped from 2% to 45%CRITICAL
Distribution shiftColumn mean shifted 3+ standard deviations (Shewhart-style control limit)INFO, WARNING above 5σ
Cardinality explosionStatus column went from 5 values to 500CRITICAL
Broken new tableFirst sighting, no baseline yet: the table is empty, a column is NULL in every row, or its id / _id has duplicatesWARNING (CRITICAL under verify --table)
Constant columnFirst sighting: one value in 100+ non-NULL rowsINFO

Every anomaly is auto-scored: INFO, WARNING, or CRITICAL. No thresholds to configure.

A table seen for the first time has nothing to compare against, so it gets the new-table checks instead, from the profile already collected. They report WARNING (INFO for a constant column), so a legitimately empty table doesn't fail ci with the default --fail-on critical; once the table has a baseline they never run again. scherlok verify --table treats the tables it names as just built, so an empty table, an all-NULL column or a duplicate key in one of them is CRITICAL.

How It Works

Scherlok takes the opposite approach of rule-based tools: learn first, then detect.

scherlok connect postgres://user:pass@host/db   # connect once

scherlok investigate # learn your data scherlok watch # detect anomalies

Three commands. Five minutes. Done. (scherlok ci runs all three in one step for pipelines.)

After five valid profiles, Scherlok learns per-metric variability from the latest 30 profiles using robust historical baselines for volume, numeric mean shifts, NULL rates, and distinct counts. During cold start or when history is not usable, it keeps the conservative fixed defaults.

Every run is learned, except one that finds a CRITICAL anomaly on a table: that table keeps its baseline, so the alert repeats on every run until the data recovers, and the broken state never becomes the new normal. WARNING and INFO findings are learned. When the change is intended, such as a planned backfill, a person makes it the new normal with scherlok accept (below).

1. investigate — Learn the patterns
$ scherlok investigate

Profiling 12 tables... ✓ users — 45,231 rows, 8 columns ✓ orders — 1,203,847 rows, 15 columns ✓ products — 892 rows, 12 columns ... Done. Profiles saved.

Scherlok profiles every table: row counts, column types, NULL rates, value distributions, freshness cadence, cardinality. Stores everything locally in SQLite, as aggregates only: no value from your rows is saved (what Scherlok stores).

2. watch — Detect anomalies
$ scherlok watch

Checking 12 tables against learned profiles...

🔴 CRITICAL orders volume_drop Row count dropped 52% (1,203,847 → 578,412) 🟡 WARNING users null_increase Column "email": NULL rate 2.1% → 18.7% 🔵 INFO products distribution Column "price": mean shifted 3.2σ

3 anomalies detected. Exit code: 1

3. Alert — Slack, CI/CD, or both
# Slack

scherlok watch --webhook https://hooks.slack.com/services/...

Discord

scherlok watch --webhook https://discord.com/api/webhooks/...

Microsoft Teams

scherlok watch --webhook https://outlook.office.com/webhook/...

Any endpoint (generic JSON payload)

scherlok watch --webhook https://my-api.com/alerts

Repeating watch on the container's local time (install optional extra first)

pip install 'scherlok[schedule]' scherlok watch --schedule "0 6 * * *"

Auto-detects Slack, Discord, and Teams from the URL and formats the payload accordingly. Any other URL receives a generic JSON payload.

CI/CD Integration

Use Scherlok as a data quality gate on pull requests. The GitHub Action checks the change against the stored baseline, fails the check on anomalies and keeps one comment on the pull request up to date with the table, column, metric, baseline, current value and severity of each:

# .github/workflows/data-checks.yml

on: pull_request permissions: contents: read pull-requests: write jobs: scherlok: runs-on: ubuntu-latest steps:

build the change first, e.g. dbt run against a CI schema

  • uses: rbmuller/scherlok@v1 with: connection: ${{ secrets.DATABASE_URL }} store: s3://my-bucket/scherlok/profiles.db tables: orders,customers fail-on: critical

The connection is passed through the environment and masked, the comment never holds a value read from a row, and fork pull requests, which get no secrets, are skipped with a notice. 📖 GitHub Action guide →

Anywhere else, the ci command does it in one line. If Scherlok detects a critical anomaly, the pipeline fails:

scherlok config --store s3://my-bucket/scherlok/profiles.db

scherlok ci "$DATABASE_URL" --webhook "$SLACK_WEBHOOK" --fail-on critical

ci learns every run without a CRITICAL anomaly, so after a failure on --fail-on warning the new state becomes the baseline and a retry passes. When a retry must keep failing until the data is fixed, as with an AI agent or a CI job that retries, gate with verify. It compares against the stored baseline and saves no profiles, no anomalies and no config, and it never uploads a remote store; it only records the run.

scherlok verify --table orders --fail-on critical   # exit 1 while orders is still broken

scherlok verify --output json # one JSON object on stdout scherlok verify --record scherlok-runs.jsonl # append the run record, e.g. a CI artifact scherlok verify --against postgresql://db.example.com/shop --ignore volume # a dev build vs production

--against compares the connection's tables, such as a dev build, with another database's baseline in the same store, such as production's, and saves nothing under either: a dropped column fails before the change ships. --ignore volume is for builds on sampled data: row counts are not compared, and the column checks only flag what a sample can't explain.

Tables without a baseline are listed under tables_without_baseline, never counted as verified. Those you name with --table count as just built: an empty table, a column NULL in every row or a duplicate key there is CRITICAL, so an agent can gate on a table it just created. Every watch, ci, check and verify run is recorded, passing or not: scherlok history --runs lists them. Every anomaly in the JSON also carries column, metric, baseline, current, change_pct and a fixed hint, so it can be acted on without parsing the message. 📖 CI/CD gate guide →

Reconcile output against input

A table's own history can't catch a join that fans out on its first build, or a total that changes while the row count stays the same. reconcile compares a pipeline's output with its input, in the same database, and exits 1 when they don't add up:

scherlok reconcile --source raw.orders --target mart.orders \

--key order_id --sum amount --tolerance 0.001

It reports row_count_mismatch, duplicate_keys (a key repeated in the target: join fan-out), missing_keys, extra_keys and sum_mismatch (totals apart by more than the absolute --tolerance), all CRITICAL, with --output json for CI. It needs no baseline and saves nothing, and it reports counts and totals only, never a key value. On BigQuery and Snowflake every run scans both tables in full. 📖 Reconcile guide →

Accepting a change

A CRITICAL reading is never learned, so an intended change (a new column, a planned backfill) keeps alerting until a person accepts it:

scherlok accept --table orders --reason "Backfilled 2025 orders"   # shows before/after, asks to confirm

scherlok accept --table orders --reason "..." --yes # no prompt, for a workflow a person triggers scherlok history --approvals # who accepted what, and why

accept re-profiles the table, shows its rows, columns and anomalies against the current baseline, and on confirmation saves the new state as the baseline with one row in an append-only approvals table: who approved (git config user.email, else $USER), the reason, and the before/after summary. --reason is required.

To keep agents and scheduled runs from moving baselines at all, lock them: scherlok config --baseline-locked or SCHERLOK_BASELINE_LOCKED=1. Then only accept writes a baseline, including a new table's first one; watch, ci, check, dbt and the MCP tools compare without saving profiles, and `inves

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx