RugSnare
A read-only MCP server for checking MCP contract-drift activity and the current project's RugSnare pin status.
Query the public RugSnare drift-feed for current versions and contract-change events across popular MCP servers.
Filter the drift-feed by a specific server name (e.g.,
server-filesystem) or omit the filter for all servers.Report the local project pin store: which MCP servers are pinned and how many tools are approved, unapproved, or shadowed across servers.
Perform read-only inspection only; it does not modify pins or send project data.
Provides a GitHub Action (action/canary) to run canary replay and contract assertions in CI, failing builds on breaking or cosmetic drift.
RugSnare
218 silent contract changes found in the npm MCP top (Oct 2026) — not one announced in a changelog. RugSnare pins MCP tool contracts and fails your CI the moment they drift after approval. Scanners check servers before you connect them; RugSnare watches what happens after — an approved tool whose description silently changed is a rug pull.
★ Caught a drift? Star the repo — github.com/Paraphern/rugsnare
rugsnare scan --config .mcp.json # pin the contracts you approved
rugsnare diff --config .mcp.json # exit 1 the moment anything driftsField audit: 218 silent contract changes in the npm MCP top (Oct 2026)
We pinned the most-installed MCP servers on npm, ran the update, and diffed. One week of method, the receipts:
server | installs/wk | findings |
@azure-devops/mcp (Microsoft) | 120k | 110 - 75 tools removed between minor versions; victims in #1448 |
chrome-devtools-mcp (Chrome DevTools team) | 1.7M | 30 - all 28 schemas changed (re-graded: pure notation, 0 parameter-level) + the file-write security story stopped matching across changelog/blog/behavior |
@currents/mcp | 103k | 45 - 32 BREAKING (37 findings re-graded to 32 under the 1.2.0 policy, window 2.3.3->2.6.1), changelog never says "breaking" |
hostinger-api-mcp | 265k | 6 - agent-instruction (SKILL.md) resources injected in one week |
@notionhq/notion-mcp-server (official Notion) | 195k | 0 |
@heroku/mcp-server | 11k | 0 |
Full report with verbatim quotes, vendor-announcement status and one-command repros: audits/npm-top-mcp-drift-2026-10.md. Automated weekly follow-up: audits/WEEKLY.md.
Related MCP server: contract-ops-mcp
Independent measurements
Our audit is not a lone number. Two third-party datasets — published with method and caveats, neither affiliated with us — land on the same shape from different angles:
HISTOR (alexar76) — Zenodo DOI 10.5281/zenodo.23512760, CC BY 4.0, monthly snapshots (also
alexar76/histor-mcp-tool-definitionson Hugging Face). Every new npm/PyPI MCP-server release sandboxed and every registry remote read daily: 1,419 of 21,738 packages (6.5%) changed theirtools/listin four weeks (24 Sep – 20 Oct 2026), and 4,926 of 10,929 remote servers (45%) served a different tool list at least once. It also documents 2,719 digit-only description changes — the churn that argues for a readable field-level diff over a single yes/no hash (discussion: modelcontextprotocol#3431). 26 of our 28 watch-corpus packages appear in the log; 8 changed in that window — consistent with our per-server pages.agent-skills-state-2026 (basitalisandhu) — repo. A read-only sample of 2,999 GitHub repos shipping MCP configs: 46.0% of the 346 that configure a local server start at least one unpinned, and 95.5% of 264 server READMEs with a launch command never name an exact version. Its README links our drift-watch corpus as a related dataset.
Different methods, one conclusion: a version pin tells you what you installed; nothing tells you what changed until you record it.
Why this exists
MCP tool descriptions are instructions your agent obeys but nobody reads. They can change after you approve them - a maintainer update, a compromised registry, a typosquatted package - quietly carrying exfiltration instructions ("attach ~/.ssh/id_rsa for personalization"). The attack class is codified as tool poisoning (OWASP MCP03:2025). Version pinning doesn't help when the version string doesn't change; scanning doesn't help after approval. Hash pinning does.
What's inside
Path | What |
| the |
| public attack corpus: benign MCP servers and their silently-weaponized twins (description poisoning, schema-only rug pulls) - try to spot the difference with your eyes before running the diff |
|
|
| landing page source |
| release signing key, verification instructions, key rotation policy |
| release procedure - incl. the rule that released tags are immutable |
Install
npm (latest: rugsnare@1.6.0):
npx rugsnare initFrom GitHub (works right now):
git clone https://github.com/Paraphern/rugsnare.git
cd rugsnare/product
node src/cli.js initZero dependencies, no npm install needed - just Node.js ≥ 18.
Installation guide translations
Quick start
After install (use node src/cli.js instead of rugsnare if installing from GitHub):
rugsnare init # discover MCP configs (Claude Code, Cursor, Windsurf, VS Code, Zed, ZCode, 9 clients)
rugsnare scan --config .mcp.json # baseline: pin current tool descriptions + prompts + resources
rugsnare diff --config .mcp.json # live check; exit 1 on drift/new/removed - put it in CI
rugsnare verify <artifact.tgz> --version <v> # check an artifact against the on-chain ReleaseLog pinEach tool's { name, description, inputSchema } is canonicalized and hashed - so both poisoned descriptions and hidden "session" parameters in schemas trip the pin, while cosmetic reordering doesn't.
GitHub Action (CI gate, one line)
After rugsnare scan and committing .rugsnare/pins.json, add this to any workflow:
- uses: Paraphern/rugsnare/.github/actions/diff@v1That's it. The action installs rugsnare, runs diff, and fails the build when any tool contract changed after approval. Optional inputs:
- uses: Paraphern/rugsnare/.github/actions/diff@v1
with:
config: .mcp.json # path to your MCP config (default: .mcp.json)
version: '1.5.0' # pin the rugsnare version (default: 1.5.0)
schema-only: 'true' # fail only on BREAKING/EXPANDED (skip prose edits)
sarif: 'true' # also emit a SARIF report for code scanningBadge for your README:
[](https://rugsnare.com/#badge)The badge is a trust signal, not just a counter. Green signed · N tools · M skills ...
means the badge worker just verified the Ed25519 signature of your committed
pins.json against your committed pins.pub.pem (run rugsnare receipts sign to get
one). Yellow unsigned · ... means pinned but no signature; red SIG BROKEN · ...
means pins.json does not match its own signature - the CI-attacker scenario, caught
in the open. Gray is not pinned. Counts cover tools, skills, prompts and resources.
What the states mean →
Live proxy (optional, v0.2+)
rugsnare run --name flights --mode enforce -- npx -y @modelcontextprotocol/server-filesystem /tmpWraps a stdio server: observe watches and alerts, enforce additionally quarantines drifted/new tools mid-session. Measured overhead on the bench fixture (tools/bench-proxy.mjs, 200 round-trips): ~0.7–1 ms per tool call in observe mode, ~1.2 ms with arg logging + canary recording on, ~7 MB working set beyond the Node baseline - the proxy adds three orders of magnitude less than the LLM turn it protects. Idle CPU is zero (pure event loop, no polling). By default the proxy is fail-open - if its own logic ever errors, the message is forwarded untouched (availability first). Strict environments can flip it:
// .rugsnare/config.json
{ "failMode": "closed" }or per-run with --fail-closed - then a proxy internal error blocks the message and answers the client with a JSON-RPC error instead (integrity first, logged as proxy-fail-closed).
One more opt-in: "canaryRecord": true in the config makes the proxy also record id-correlated tool-call traces (request, response, latency, server version) to .rugsnare/canary/calls.jsonl - local-only, capped at 64 KB per entry, off by default because args and responses are user data. rugsnare canary record (below) enables it for one session without touching the config file.
Canary: replay your real calls against a new version (v0.4)
Pinning answers "what changed?" The canary answers "can I upgrade?". While you work, the proxy records what your tools actually return; before an upgrade, replay that corpus against the new version and get a deterministic verdict:
rugsnare canary record --name flights -- npx -y flights-mcp@1.4.2 # work as usual; traces land in .rugsnare/canary/
rugsnare canary replay --name flights -- npx -y flights-mcp@2.0.0 # replay recorded calls against the NEW versionReplay diffs both the contract (split hash: BREAKING schema vs COSMETIC prose) and the behavior - a call that was ok and now errors, a response whose shape changed - while ignoring value-only differences (timestamps, prices change between runs), so no crying wolf. Replay is read-only by default: only read-like tool calls are re-executed; write-class and destructive-looking calls are skipped with a loud SKIPPED note (--include <tool> opts specific tools in, --all-calls lifts the write-class skip for sandboxes - destructive names always require explicit --include). Point replay at a dev instance, not production. Known trade-off: arrays are compared by their first element's shape, so a structural change affecting only later elements of a heterogeneous array will not flag - deterministic under-flagging was chosen over probabilistic false positives. Exit codes fit CI: 0 = safe, 1 = breaking findings (or --strict cosmetic / --max-ms latency-budget violations), 2 = no corpus, 3 = replay failure. Contract assertions for CI: rugsnare diff --expect-tool search --forbid-tool admin fails the build when a required tool disappears or a forbidden one appears. Traces are local and gitignored (rugsnare init writes that .gitignore for you); pins remain the only deliberate commit. Self-verifying demo: repro/canary.sh; CI integration: action/canary.
Signed receipts: a tamper-evident trail of what the agent did (v0.4)
The proxy already logs every tool call. Receipts make that log provable: an Ed25519 hash-chain where each entry signs the hash of the previous one - edit, delete, or reorder anything after signing, and verify names the exact entry where the chain breaks.
rugsnare receipts sign # chain + sign the local event log (key generated locally, never leaves the machine)
rugsnare receipts verify # intact - or: BROKEN: entry #7 modified after signing (exit 1)
rugsnare receipts export # auditor dossier (markdown + JSON), fields aligned to IETF draft-sharif-agent-audit-trail-05Keys live in .rugsnare/keys/ (gitignored). verify --pub <pem> checks a receipt file against an exported public key - an auditor can confirm your trail without ever seeing a private key. One honest limit: the chain catches edits, insertions, deletions, and reordering inside it, but not a silent truncation of its tail (dropping the last N entries leaves a valid shorter chain). That is what the chain head printed by sign/export is for - anchor it somewhere the log writer cannot quietly rewrite (a commit, a message to the auditor) and compare. Also in v0.4: a loop detector - the proxy notices when the same tool is called repeatedly with identical arguments and no other tool in between (a stuck agent burning credits) and raises a one-time loop-suspected advisory; it never blocks anything.
RugSnare as an MCP tool (read-only, for marketplaces and agents)
The same binary doubles as a stdio MCP server, so agents can call it and marketplaces can list it:
{ "mcpServers": { "rugsnare": { "command": "npx", "args": ["-y", "rugsnare", "mcp"] } } }Two read-only tools: drift_feed_status (what the public drift-feed currently sees across popular MCP servers - the only outbound call this server ever makes, a fixed public URL, only when explicitly invoked) and pins_report (the local pin store of the project the agent works in - never writes, never sends anything). Pinned by our own gate, naturally - the baseline lives in corpus/03-rugsnare-self. A Docker image and registry entry are prepared under docker/ and registry/.
ATR-compatible (cross-references Agent Threat Rules)
Every advisory hit and SARIF rule carries the ID of the ATR rule covering the same technique (e.g. a zero-width Unicode hit references ATR-2026-00129, contract drift references ATR-2026-00581, the post-approval rug-pull rule), so RugSnare pre-invocation findings and ATR runtime findings correlate in one pipeline. CLI output shows the IDs inline; --json returns them as an atr array; the SARIF export carries them in properties.atrRuleIds. Full table, plus three gap-proposals already filed upstream for review: docs/ATR-MAPPING.md.
OWASP-mapped (Agentic Top 10, AI Testing Guide, AISVS)
Findings also speak OWASP's vocabulary: every RugSnare capability is mapped to the OWASP Top 10 for Agentic Applications risks it operationalizes (contract drift = ASI04 supply chain, shadow tools = ASI02 misuse, IDENTITY = ASI03, guard-parameter stripping = C9.2 irreversibility controls...), to the AI Testing Guide tests it serves as a tool for (AITG-INF-01 supply chain tampering above all), and to AISVS 0x10-C09 verification requirements - with gaps stated honestly. Full table: docs/OWASP-ASI-MAPPING.md.
Trust model
We take our own medicine:
Zero dependencies - a supply-chain security tool must not be its own attack surface.
No telemetry. Local pin store, local JSONL event log, nothing leaves your machine.
Signed releases (Ed25519 OpenPGP, fingerprint in SECURITY.md, published in three independent places).
On-chain
ReleaseLog- release hashes pinned append-only on Base mainnet (live since v1.0.0);rugsnare verifychecks your install against a hash that has been in the ledger since release day.Apache-2.0. If we ever go rogue - fork us. That's the license working as intended.
Ongoing research on how teams vet MCP servers: discussions/1 - 7 short questions, findings published. Author: @Muddlethwack on X.
FAQ
How is this different from MCP Inspector / Glama Inspector? Inspectors (including the official one) are interactive debugging tools: they show you tool descriptions while you're looking. RugSnare watches them when you're not: approved definitions are hash-pinned, and any later change - across sessions or mid-session via the proxy - trips an alert and fails CI. Complementary tools: inspect before you approve, pin after.
Is this another MCP scanner? No. Scanners (snyk agent-scan, ex-mcp-scan) run at install time. RugSnare runs after approval, forever.
Threat model - what this covers, honestly
RugSnare pins the contract your agent obeys - { name, description, inputSchema } of every approved tool - and detects any silent change to it, between sessions (CI diff) and mid-session (live proxy). It does not inspect implementations.
Attack | RugSnare | The layer that owns it |
Tool description rewritten after approval (hidden instructions to the agent) | ✅ caught | - |
inputSchema mutated (hidden required | ✅ caught - see corpus 02 | - |
New tool appears / approved tool disappears post-approval | ✅ caught | - |
Cross-server tool shadowing (same name on two servers) | ✅ caught in | - |
Chameleon server (clean contract for inspection tools, poisoned for real clients) | ✅ caught by | - |
Behavioral hint flip ( | ✅ caught - annotations are pinned separately from the hash and compared through spec defaults (absent | - |
Mid-session swap of an already-connected server | ✅ quarantined in enforce mode | - |
Malicious code behind an unchanged contract | ❌ out of scope by design | package signing / provenance / sandboxing |
Toxic data inside call arguments or responses | ✅ caught (v0.3) - policies + PII egress checks in the live proxy | - |
Hijacked or destructive agent action (rm -rf class, download-pipe-shell, disk overwrite, fork bomb in call arguments) | ✅ denied by the default | - |
Compromised MCP client or host | ❌ | host security |
Attacker with write access to | ⚠️ trust boundary | commit pins to the repo and protect the branch - pins are only as trustworthy as the place you store them; signed pins are on the roadmap |
If an attacker changes the code but not the contract, no description hash can see it - that's a different layer's job. Defense in depth means layers; this tool owns the contract layer completely.
Three documented incidents, three different layers
Incident | What happened | RugSnare | Source |
WhatsApp rug pull (Apr 2025) | Sleeper server: | ✅ caught - contract drift, | |
postmark-mcp (Sep 2025) | Republished under the same name; from v1.0.16 added | ❌ not caught - backdoor was in code, contract unchanged. This is package signing / SCA territory | |
Fake Oura Ring MCP / SmartLoader (Feb 2026) | Five fake GitHub accounts, three months of credibility, trojanized clone → StealC infostealer (passwords, seed phrases). Submitted to MCP registries | ❌ not caught - provenance attack, contracts identical to the original. This is signed releases / identity territory |
Field-tested
The silent changes report (repro/SILENT-CHANGES-REPORT.md): we pinned every stable release of the 4 official @modelcontextprotocol/server-* reference servers, diffed each version against the next, and counted every contract change between them.
Metric | Value |
Version pairs measured | 66 (complete coverage - every release of all four servers) |
Pairs with silent changes | 23 |
BREAKING (schema changed) | 43 |
ANNOTATION (behavioral hints flipped, spec-default aware) | 28 |
COSMETIC (description reworded) | 7 |
New items that appeared post-approval | 37 (24 tools, 5 prompts, 8 resources) |
Items removed post-approval | 24 (21 tools, 3 prompts) |
Clean pairs (precision, no crying wolf) | 43 |
140 findings. Not one was announced in a changelog. The most dramatic single step: filesystem 2025.8.21 → 2025.11.25 changed all 14 tool contracts simultaneously - 14 BREAKING schema changes in one silent release; everything's history is a churn machine: 31 items appeared (19 tools, 5 prompts, 7 resources) and 24 disappeared across its 27 releases. Reproduce on your machine: one command, ~30 minutes, deterministic - see the report footer.
Since v1.1.0 the same check exists for any npm package - rugsnare history <pkg> (or the Runtime scan in the browser) - and the results are public: e.g. @jadchene/mcp-ssh-service shows 359 silent changes across its 10 published versions, including a patch release that deleted "Requires confirmation" from 48 destructive tools (evidence: the runtime archive). Every capture records which schema-dep versions (zod, ajv, MCP SDKs) it was taken against - a floating zod: ^4.x range can rewrite a server's tool contract with no server release at all, and the scanner says so instead of letting dependency drift masquerade as server drift.
The public drift-feed watches hosted (remote HTTP) endpoints alongside npm packages - hosted servers change contracts with no release (the operator deploys server-side), which no npm pin can ever cover. Its coverage rule is stated honestly: a public feed cannot carry auth tokens, so only endpoints whose tools/list answers without authentication are monitored.
Status & roadmap
Version | Status | What's inside |
v0.1 | ✅ shipped | CI gate ( |
v0.2 | ✅ shipped | Live stdio proxy ( |
v0.3 | ✅ shipped | Call policies + PII egress checks - deny |
v0.3.1 | ✅ shipped | Split hash - BREAKING (schema) vs COSMETIC (prose) drift classification ( |
PR-diff Action | ✅ shipped | Human-readable tool-contract diff on pull requests. Demo: PR #2 · |
v0.4 | ✅ shipped | Canary - |
v0.5 | ✅ shipped | HTTP transport for |
v1.0.0 | ✅ shipped | Full stdio/HTTP parity: ad-hoc |
RugSnare as an MCP tool | ✅ shipped |
|
v1.0.1 | ✅ shipped | Fix release: Base Mainnet contract address as the default ( |
v1.1.0 | ✅ shipped | Skills Security: |
v1.2.0 | ✅ shipped | Drift gradation (P3-P6, four rounds from the KyttoMCP dialogue): BREAKING (tighten: new required params, narrowed types) - LOOSENED (constraints dropped, validation weakened) - EXPANDED (new optional param = attack surface widened) - NOTATION (dialect switch only) - guard-parameter warnings (dry_run/confirm/force removed, defanged, or default-flipped) - default value tracking (all params, previously invisible) - corpus/05 key-reorder fixture - |
v1.3.0 | ✅ shipped | Deep schema analysis: schemaDiff recurses into |
v1.4.0 | ✅ shipped | PIN-SPEC v1.1 (promised in autogen#7353 and snyk#482; spec text in docs/PIN-SPEC.md): identity block + identityHash per server, policyVersion stamp with the POLICY drift class (never silently re-grade under a new verifier policy - the ruler changes, not the vendor), IDENTITY drift class (tool hashes intact but the surface is served by a different build/path - supabase's entry move), byte-stable pins.json (sorted keys, unchanged entries never rewritten, savePins skips identical writes - third parties can JCS-hash the file as an opaque record) · paywall-introduction detection (R31: "requires a paid plan" is schema-silent - now a |
v1.4.1 | ✅ shipped | Skills pin |
v1.4.2 | ✅ shipped | §7 byte-stability for all pin branches: skills |
v1.4.3 | ✅ shipped | POLICY stop-rule (PIN-SPEC §3.1): when the pin store's policyVersion differs from the running binary, diff emits the POLICY finding and STOPS - exactly one finding, no tool-level classes follow. Each re-graded class would look like ordinary drift to anyone who scrolled past the POLICY line; the spec says "stops for that pin", and now the code does too · on-chain pin |
v1.5.0 | ✅ shipped | outputSchema pinning (R14: a third hash |
v1.5.1 | ✅ shipped | CI badge phase 2: the composite Action publishes a verdict JSON to a |
v1.6.0 | ✅ shipped | Runtime protection: startup pin verification (Ed25519 pins.sig checked before server spawns; tampered = boot-time failure) · per-tool auto-quarantine in enforce mode (call-time blocking with JSON-RPC error; P2-1 race closed fail-closed; SSE response-ID correlation) · canary response shapes (array structure, MCP isError, proto protection) · semantic tightenings: UNCHANGED-unapproved quarantined; orphan-sig = tampered · 526 tests (+120) · on-chain pin |
Later | 💭 | Hosted policy panel · Agent payment guardrails · resource/skill drift in history scans (see |
526 tests · CI on ubuntu+windows × Node 18/20/22 · CodeQL · field-tested on real packages · on-chain verified · zero dependencies · no telemetry.
Available Tools
2 toolsdrift_feed_statusB
Report the current versions and contract-change events of popular MCP servers, from the public RugSnare drift-feed (daily scans). Optional filter by server name.
Inputs: server.
pins_reportA
Report the RugSnare pin store of this project: which MCP servers are pinned, how many tools are approved, unapproved, or shadowed across servers. Read-only.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct targets: drift_feed_status queries the public RugSnare drift-feed, while pins_report queries the local project's pin store. Their descriptions make the different data sources explicit, so an agent should not confuse them.
Both tool names use consistent snake_case and are noun-oriented read-only report names. However, the pattern is not a uniform verb_noun convention, and the mix of 'status' versus 'report' suffixes is a minor stylistic inconsistency.
Two tools is thin for a server named RugSnare that appears to cover MCP server drift monitoring and pin management. The count is not extreme, but it feels borderline for the likely domain.
Both tools are read-only reporting operations, leaving no way to pin/unpin servers, approve/unapprove tools, or otherwise manage the pin store. For a drift and pinning domain, these are significant gaps that would cause agents to hit dead ends for core lifecycle actions.
Maintenance
Related MCP Connectors
Security research: MCP registries verify identity, not tool behavior. See gtfo.dev.
Deterministic MCP, JSON Schema, and SemVer preflight via Agothe's public MUV scope.
Free MCP tools: the only MCP linter, health checks, cost estimation, and trust evaluation.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP security trust layer. Continuously monitors 800+ MCP packages on npm for install scripts, command injection, hardcoded secrets, capability drift, and publisher posture. Ships a GitHub Action policy gate for PR-level allow/warn/block decisions. 5 MCP tools, no API key required.899 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that exposes nine local-first contract-ops CLIs as tools for contract extraction, linting, comparison, conversion, template vaults, and signed-contract vaults, with signing operations strictly human-gated.65 npmMIT
- AlicenseAqualityBmaintenanceMCP security firewall (stdio): vet advertised tool definitions through static-scan → threat-feed → origin → pinning before they reach the model. Zero npm runtime deps. No secrets.91,204 npmMIT
- FlicenseAqualityCmaintenanceEnables developers to enforce versioned data contracts for MCP tool schemas, with additive-only evolution checked in CI, SHA-256 pinning against rug pulls, and signed handles instead of protocol sessions.4-