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

Shadowjoin

作者:harsh-chandak版本 0.3.2i★ –i在你的电脑上运行
注册名称io.github.harsh-chandak/shadowjoin

安装

概览

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

Measure the matches your exact join is silently dropping, and get the rule that fixes each.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:SHADOWJOIN_CONFIG

安装

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

安装之前

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "shadowjoin": {
      "command": "npx",
      "args": [
        "-y",
        "shadowjoin"
      ],
      "env": {
        "SHADOWJOIN_CONFIG": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add shadowjoin --env SHADOWJOIN_CONFIG=your-value -- npx -y shadowjoin

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "shadowjoin": {
      "command": "npx",
      "args": [
        "-y",
        "shadowjoin"
      ],
      "env": {
        "SHADOWJOIN_CONFIG": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "shadowjoin": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "shadowjoin"
      ],
      "env": {
        "SHADOWJOIN_CONFIG": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • SHADOWJOIN_CONFIG 必填 env
    Absolute path to shadowjoin.config.json, which names your data sources. Connection strings live here and never pass through a tool call.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

与“其他”中的其他服务器比较i

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

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

常见问题

Shadowjoin 安全吗?

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

它需要哪些密钥或代码?

你需要填写:SHADOWJOIN_CONFIG

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

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

它还在维护吗?

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

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, FactLot

替代选择

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

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

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

FactLot

作者:9mp96ygnbk-alt

Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.

电脑或云端今天更新
安装

作者的 README

打开 README

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

shadowjoin

Measure the matches your exact join is silently dropping.

Your pipeline joins two sources on a name, an email, a SKU, a company. It matches what matches. Everything else just... isn't there. No error, no exception, no alert — the query returns, the dashboard renders, and a quarter of the rows that should have matched quietly don't.

shadowjoin runs a shadow matcher alongside your real join key and tells you how many matches you are losing, which normalization rule would recover each one, and — if you have any ground truth at all — proves the recoveries are real.

npx shadowjoin scan \

--left customers.csv --left-key company_name \ --right crm_export.csv --right-key account_name

Fourteen seconds, no sound. Every figure in it is verbatim CLI output from the committed example below — higher-resolution version.

The progress output above is real: shadowjoin shows what it is doing while it works. All of it is suppressed automatically when stdout is not a terminal, so piping to a file, to jq, or running in CI produces byte-identical output to before — and there is no postinstall script, because a tool you point at a production database has no business running code at install time.

What it found on public data

Joining the S&P 500 constituent list against NYSE + Nasdaq listings on company name. Both files carry ticker symbols, so every recovered match can be checked rather than believed:

  left rows 503   right rows 6,709

exact join matches 1 0.2% recovered by shadow join 428 85.09% still unexplained 74

LOWER BOUND ON LOST MATCHES: 85.09% of left rows verified against ground truth: 419 correct, 1 wrong, 8 ambiguous (precision 99.76%)

rules worth adopting, in order (greedy by marginal recovery):

  1. strip security/listing boilerplate (common stock, ADS, ...) +68 68
  2. strip corporate suffixes (inc, corp, ltd, plc, gmbh ...) +319 387
  3. strip punctuation +33 420
  4. sort tokens (order-insensitive match) +4 424
  5. remove all whitespace +1 425

The exact join found one match. There were four hundred and twenty-eight, and 419 of them are confirmed correct by ticker.

Reproduce it yourself — the data ships with the repo:

git clone https://github.com/harsh-chandak/shadowjoin && cd shadowjoin

npm install && npm run build node dist/cli.js scan \ --left examples/sp500.csv --left-key Security --left-id Symbol --left-truth Symbol \ --right examples/listings.json --right-key name --right-id symbol --right-truth symbol

A join you would actually ship

The example above is deliberately unflattering — a short index name against a full security description. Here is the realistic case.

Unicode CLDR country names (what your UI displays) joined to UN official country names (what your reference data uses), on the country name, with ISO 3166 alpha-3 as ground truth. That is a join people write every week.

  exact join matches              205 / 249   82.33%

recovered by shadow join 5 2.01% precision 100% still unexplained 39

rules worth adopting:

  1. & -> and +4
  2. remove all whitespace +1

It looks healthy. 82% matched, no errors, nobody investigating. And it is silently dropping Antigua & Barbuda, Trinidad & Tobago, São Tomé & Príncipe, Turks & Caicos Islands and Vietnam — the last one because the UN spells it Viet Nam.

Two things this example shows that the first one does not:

Applying every rule finds nothing. The full rule set recovers zero here; the two-rule subset recovers five. Over-normalization collapses keys that should stay distinct, and shadowjoin names the better subset instead of letting you assume more rules is better.

It separates mechanical misses from semantic ones. The 39 it cannot explain are not normalization problems at all:

  Vatican City    vs  Holy See

North Korea vs Democratic People's Republic of Korea Cape Verde vs Cabo Verde Bosnia vs Bosnia and Herzegovina Hong Kong vs China, Hong Kong Special Administrative Region

No string transform recovers those. They need an alias table or a real entity resolution library. Knowing *which* of your misses are mechanical and which are semantic is the difference between a one-line fix and a project.

node dist/cli.js scan \

--left examples/countries_ui.csv --left-key country --left-truth iso3 \ --right examples/countries_reference.csv --right-key country --right-truth iso3

That particular join is deliberately unflattering — a short index name against a

full security description. It is a worked example of the *measurement*, not a

claim that anyone ships that join. Point it at your own data to get a figure

that means something about you.

The number is a floor, not an estimate

You cannot compute recall without labels. The entity-resolution literature calls the metric pair completeness, and it assumes an oracle you do not have in production.

So shadowjoin reports a lower bound: matches the shadow matcher found that exact matching missed. The shadow matcher has unknown recall of its own, so the true loss is *at least* this large and may be larger. Every figure ships with sample pairs so a human can verify them by hand, and when ground truth is available on both sides, the report carries a precision figure too.

This is deliberately the weaker claim. It is also the one that survives being questioned.

Why not just ask an LLM to check?

For a one-off look at a small table, do that — it is faster and this tool is redundant. It stops working when:

  • You need the same number twice. An agent writes different SQL every run, so you cannot tell whether the pipeline changed or the query did.
  • You need rules nobody thought of. Asked "is this join lossy," an agent tries lower() and trim(). It does not systematically try NFKD folding, diacritics, leading zeros, corporate suffixes, token reordering or listing boilerplate. The exhaustive rule set *is* the product.
  • You need it in CI. --max-loss exits non-zero. "Ask Claude" has no exit code.
  • Exploratory SQL on production is expensive. This does hash joins on precomputed keys, under a statement timeout, in a read-only transaction.

Install

npm install shadowjoin      # or run it with npx, no install

Zero runtime dependencies. pg and @modelcontextprotocol/sdk are optional peers, pulled in only if you use the Postgres adapter or the MCP server.

Use it

CLI
# CSV or JSON, no database involved

npx shadowjoin scan --left a.csv --left-key name --right b.json --right-key title

with ground truth on both sides, so recoveries are verified

npx shadowjoin scan \ --left a.csv --left-key name --left-truth customer_id \ --right b.csv --right-key title --right-truth customer_id

straight at Postgres

npx shadowjoin scan \ --left 'postgres://ro@host/db' --left-table orders --left-key customer_name \ --right 'postgres://ro@host/db' --right-table customers --right-key name

in CI: fail the build if the floor climbs above 2%

npx shadowjoin scan --left a.csv --left-key name --right b.csv --right-key name --max-loss 2

MySQL and SQLite work the same way

npx shadowjoin scan \ --left 'mysql://ro@host/db' --left-table accounts --left-key company_name \ --right ./reference.sqlite --right-table vendors --right-key name

npx shadowjoin rules # list the normalization rules

Sources: CSV, JSON, Postgres, MySQL and SQLite. SQLite uses Node's built-in node:sqlite (Node 22.5+), so it needs nothing installed; Postgres and MySQL need pg or mysql2, which are optional peers.

Anything else works through the library in three lines, because the core takes two arrays rather than a connection:

import { scan } from "shadowjoin";

const [rows] = await anyDriver.query("SELECT id, company_name FROM accounts"); const left = rows.map((r) => ({ id: String(r.id), key: r.company_name })); scan(left, right);

Library
import { scan, normalize, rulesByIds, toSql } from "shadowjoin";

const report = scan(leftRows, rightRows); // rows are { id, key, truth? } console.log(report.lowerBoundLossPct, report.stack);

// adopt the recommended rules in your own pipeline const rules = rulesByIds(report.stack.map((s) => s.rule)); const key = (value) => normalize(value, rules); toSql("company_name", rules); // the same thing as Postgres SQL

Claude Code plugin (easiest)

One command installs the skill and the MCP server together, and prompts for your config path:

claude plugin marketplace add harsh-chandak/shadowjoin

claude plugin install shadowjoin@harsh-chandak

Also listed in the official MCP registry as io.github.harsh-chandak/shadowjoin.

MCP server

Lets an agent measure a join, look at real examples, propose a fix, and then prove the fix worked — a loop it cannot fake, because the measurement is not something it writes.

{

"mcpServers": { "shadowjoin": { "command": "npx", "args": ["-y", "-p", "shadowjoin", "-p", "@modelcontextprotocol/sdk", "shadowjoin-mcp"], "env": { "SHADOWJOIN_CONFIG": "/abs/path/to/shadowjoin.config.json" } } } }

{

"sources": { "prod": { "type": "postgres", "connectionString": "postgres://shadowjoin_ro@host/db" }, "crm": { "type": "csv", "path": "./crm_export.csv" } } }

Tools: scan_join, explain_misses, suggest_normalization, compare_runs.

Two things this MCP server deliberately does not have:

  1. No tool that executes arbitrary SQL. An agent can name a configured source, a table and a column. That is the entire surface.
  2. No tool that accepts a connection string. Credentials live in your config file and never enter a tool call, because tool calls end up in transcripts.

Pointing it at a real database

shadowjoin opens a READ ONLY transaction with statement_timeout, lock_timeout and idle_in_transaction_session_timeout set, and it refuses to run if the role it connected with can write to the table it is about to read.

Give it a role that makes trust unnecessary:

CREATE ROLE shadowjoin_ro LOGIN PASSWORD 'xxx';

GRANT CONNECT ON DATABASE yourdb TO shadowjoin_ro; GRANT USAGE ON SCHEMA public TO shadowjoin_ro; GRANT SELECT ON public.orders, public.customers TO shadowjoin_ro;

Point it at a replica where you can.

It makes no outbound network connection except to the source you give it. No telemetry, not even opt-out. Check the imports — there are three dependencies and none of them is an HTTP client.

Limits

Read these before quoting a number from it.

  • The figure is a floor. The shadow matcher's own recall is unknown. True loss is at least this, possibly more.
  • Recoveries can be wrong. In the bundled example, 1 of 428 was contradicted by ground truth and 8 were ambiguous — mostly share classes, where stripping "Class A" merges genuinely different securities. Ambiguous matches need a tie-breaker, not a normalization rule. Always read samplePairs.
  • Per-rule counts overlap and will not sum to the total. Each is measured independently against the exact baseline, deliberately,

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

问 PopNx