Skip to main content
Glama
mcp-rugpull-sentinel

mcp-rugpull-sentinel

by Yoggurin

MCP Rug-Pull Sentinel (mcp-rugpull-sentinel)

Anti-Tool-Poisoning & Anti-Rug-Pull Security Suite for Model Context Protocol (MCP) Servers.

Protects AI agents (Claude, Cursor, VS Code, Antigravity, Windsurf) from delayed tools/list mutations and hidden prompt-injection attacks using:

  1. GitHub Marketplace Action (action.yml): Audits mcp_config.json / .mcp.json, pins deterministic SHA-256 hashes in mcp-lock.json, and blocks CI/PR merges on hidden prompt injections or schema drift.

  2. Cloudflare Workers Hourly Watchdog (0 * * * *): Monitors remote MCP endpoints every hour, stores baselines in Cloudflare D1 (migrations/0001_init.sql) or KV (SENTINEL_KV), analyzes diffs with Gemini AI, and sends immediate Slack/Discord/HTTP webhook alerts.

  3. Interactive MCP Apps UI (ui://sentinel/diff-inspector.html): Implements io.modelcontextprotocol/ui (text/html;profile=mcp-app) plus a standalone /mcp-app.html inspector and /mcp Streamable HTTP endpoint.

  4. Paddle Billing SaaS (29 €/mes Pro & 59 €/mes Team): HMAC-SHA256 verified /api/webhooks/paddle and Paddle.js v2 checkout integration.

Quickstart: GitHub Action

- uses: Yoggurin/mcp-rugpull-sentinel@v1
  with:
    config-path: .mcp.json
    lockfile-path: mcp-lock.json
    mode: verify
    fail-on-severity: high
    fail-on-drift: 'true'
    gemini-api-key: ${{ secrets.GEMINI_API_KEY }}

Inputs

Input

Description

Required

Default

config-path

Path to mcp_config.json or .mcp.json (auto-discovered if omitted)

false

''

lockfile-path

Path to deterministic mcp-lock.json

false

mcp-lock.json

mode

Execution mode: verify (CI/PR gate), update (generate mcp-lock.json), or scan (no lockfile)

false

verify

fail-on-severity

Minimum finding severity that fails the workflow: low, medium, high, critical, none

false

high

fail-on-drift

Fail CI/PR when any tool hash differs from mcp-lock.json (true/false)

false

'true'

gemini-api-key

Optional Gemini API key for AI forensic diff analysis

false

''

alert-webhook-url

Optional Slack, Discord, or HTTP webhook URL for immediate drift alerts

false

''

Outputs

Output

Description

passed

true if no policy violations were detected

drift_detected

true if any tool mutated, was added, or was removed compared to mcp-lock.json

injection_detected

true if prompt injection or tool poisoning indicators were found

max_severity

Highest severity observed (none, low, medium, high, critical)

drifts_count

Number of drifted tools

findings_count

Number of prompt injection findings

Generate or update mcp-lock.json locally:

node dist/action/index.cjs --config .mcp.json --lockfile mcp-lock.json --mode update

Related MCP server: mcp-heimdall

Development, Build & Live Verification

npm install
npm run build
npm run test:live

npm run test:live boots a real local mutating MCP server (tests/mock-mutating-mcp-server.ts) and webhook receiver, verifies GitHub Action update / verify / CI block on rug-pull mutation, tests the Worker hourly watchdog + D1 SQL adapter + MCP Apps /mcp + Paddle HMAC-SHA256 webhook, and optionally checks DEPLOYED_WORKER_URL.

Cloudflare Deployment

# Default (KV + Cron + Assets)
npx wrangler deploy

# Optional D1 SQL backend (requires D1:Edit token scope)
./scripts/setup-d1.ps1

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Scans MCP servers for prompt injection, supply chain attacks, excessive permissions, and code execution risks. Includes an offline blacklist that catches known-compromised packages like LiteLLM 1.82.7/1.82.8 and Trivy with zero latency.
      19
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Security scanner for MCP servers — vet an MCP before you wire it into an agent. Detects prompt-injection, credential exfiltration (via taint analysis), RCE, and supply-chain risks, and catches cross-server exfil chains no single server reveals. Zero-dependency local CLI, SARIF output, CI-gateable, no account.
      62 npm
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Security scanner and MCP server that catches dangerous patterns in MCP servers and AI agent projects, such as leaked secrets, shell execution, and prompt-injection text. Runs as both a CLI and MCP server with CI-friendly severity gates.
      2
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Security scanner and runtime proxy for MCP servers. Catches tool poisoning, prompt injection, and rug-pull attacks (silent tool description changes) before they reach your AI agent. Includes a static scanner and a runtime stdio proxy.
      68 npm
      MIT