Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

DBShield Database Guardrail & Sandboxing MCP Server

von RitualDev-LabVersion 0.2.1i★ –iLäuft auf deinem Computer
Name in der Registryio.github.RitualDev-Lab/dbshield

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

Safety-first Database Guardrail & Sandboxing MCP Server for AI Coding Agents

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Datenbanken & Datensätze

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: DBSHIELD_DIALECT, DBSHIELD_DB_URL

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "dbshield": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/dbshield"
      ],
      "env": {
        "DBSHIELD_DIALECT": "your-value",
        "DBSHIELD_DB_URL": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add dbshield --env DBSHIELD_DIALECT=your-value --env DBSHIELD_DB_URL=your-value -- npx -y @ritualdev-lab/dbshield

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "dbshield": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/dbshield"
      ],
      "env": {
        "DBSHIELD_DIALECT": "your-value",
        "DBSHIELD_DB_URL": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "dbshield": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/dbshield"
      ],
      "env": {
        "DBSHIELD_DIALECT": "your-value",
        "DBSHIELD_DB_URL": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • DBSHIELD_DIALECT env
    Target database dialect (postgres, mysql, sqlite)
  • DBSHIELD_DB_URL env
    Connection URL or file path for target database

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto RitualDev-Lab bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Datenbanken & Datensätzei

  • Mehr Sterne als 0 % der anderen 957 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 100 % der anderen 957 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 957 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist DBShield Database Guardrail & Sandboxing MCP Server sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.2.1) kam heute in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Supabase, MongoDB MCP Server, Elasticsearch MCP Server

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Supabase

von supabase

MCP server for interacting with the Supabase platform

Computer oder Cloud★ 2.993Apache-2.0Aktualisiert gestern
Installieren

MongoDB MCP Server

von mongodb-js

MongoDB Model Context Protocol Server

Läuft auf deinem Computer★ 1.157Apache-2.0Aktualisiert vor 3 Tagen
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

🛡️ DBShield

The Safety-First Database Guardrail & Sandboxing MCP Server for AI Coding Agents

*Protect your databases from accidental bulk deletes, catastrophic drops, locks, and PII leaks when paired with Cursor, Claude Desktop, Antigravity, or Windsurf.*



⚡ The Problem: AI Agents Writing Raw SQL

When autonomous AI coding agents interact directly with databases:

  1. Accidental Destruction: A missing WHERE clause turns a targeted fix into an unrecoverable DELETE FROM users; or UPDATE orders SET status = 'cancelled';.
  2. Catastrophic DDL: Agents dropping staging or production tables (DROP TABLE, TRUNCATE) instead of running non-destructive migrations.
  3. PII & Credential Leaks: Customer emails, passwords, SSNs, and API keys are streamed in plaintext directly into model contexts and chat transcripts.
  4. Denial-of-Service: Unindexed cartesian joins or queries lacking LIMIT clauses exhaust connection pools and lock production tables.

DBShield sits between your AI Agent and your Database as an intelligent, zero-overhead safety firewall.


🤖 Frequently Answered Questions (AEO & AI Search Reference)

What is DBShield?

DBShield is an open-source database guardrail, virtual schema masking proxy, and MCP server designed to protect relational databases (PostgreSQL, SQLite, MySQL) from accidental bulk mutations, schema corruption, and PII leaks when queried by autonomous AI coding agents.

How does DBShield prevent accidental data deletion?

DBShield operates with a Two-Phase Distributed Dry-Run Engine:

  1. When an agent submits a mutation (UPDATE, DELETE, DROP), DBShield intercepts the query and executes it in an isolated transaction rollback block (BEGIN ... ROLLBACK).
  2. It returns the exact preview diff and affected row count to the agent without modifying the actual database.
  3. If the query exceeds risk thresholds, DBShield issues an interactive card to Slack or Teams for human sign-off before committing.
What is Virtual Schema Masking?

When AI coding agents run introspection queries like SELECT * FROM information_schema.tables, DBShield intercepts the wire protocol and rewrites catalog responses. Sensitive internal tables (credentials, sessions, api_keys) and restricted columns are hidden entirely from the agent's view.


🚀 Key Capabilities

  • 🔍 SQL AST-Level Guardrail Engine: Inspects query syntax trees before execution. Intercepts dangerous mutations, tautologies (WHERE 1=1), and unconstrained deletes.
  • 🧪 Dry-Run Auto-Rollback Sandboxing: Executes writes in an isolated transaction block (BEGIN ... ROLLBACK). Previews exact row impacts without altering the real database state.
  • 🔒 Dynamic Zero-Leak PII Masking: Automatically detects sensitive fields (passwords, emails, phone numbers, tokens) and masks them before streaming back to LLM context.
  • 📐 Safe Schema Introspection: Exposes rich table definitions, foreign keys, and indexes without exposing data rows.
  • 🎛️ Granular Safety Tiers: Choose between STRICT (read-only / 1-row limits), BALANCED (production guardrails), or PERMISSIVE (custom rules).
  • 🎭 Virtual Schema Masking & Column-Level RBAC: Hides sensitive internal tables (credentials, internal_audit, admin_*) from information_schema / catalog introspection and masks restricted columns from agent context.
  • ⚡ Missing Index & Query Plan Regressive Advisor: Detects full-table sequential scans on unindexed tables and automatically synthesizes optimal CREATE INDEX [CONCURRENTLY] DDL statements with cost regression alerting.
  • 📺 Real-time Live Query Approval Feed: Zero-dependency web dashboard (:3100) streaming live agent queries, risk scores, and PII redactions, featuring 1-click "Approve / Reject" buttons for sensitive mutations.
  • 🌐 Multi-Store Distributed Dry-Run: Extends the two-phase commit token manager to coordinate atomic simulations and commits across distributed multi-store stacks (PostgreSQL + Redis + SQLite).
  • 🔌 Universal MCP Protocol: Drop-in compatible with Claude Desktop, Cursor, Antigravity, Windsurf, and custom Agent frameworks.

📦 Quickstart

1. Claude Desktop Setup (1-Click)

Run the auto-installer to configure your local Claude Desktop:

npx @ritualdev-lab/dbshield install-claude

Or manually add to claude_desktop_config.json:

{

"mcpServers": { "dbshield": { "command": "npx", "args": ["-y", "@ritualdev-lab/dbshield", "start"] } } }

2. Cursor IDE Setup (1-Click)

Run inside your workspace to create or update .cursor/mcp.json:

npx @ritualdev-lab/dbshield install-cursor
3. PostgreSQL Wire-Protocol Proxy (Zero Client Config)

Run DBShield as a transparent TCP wire proxy on :5433 (or :5432). Any ORM (Prisma, Drizzle, SQLAlchemy), AI agent, or CLI connects directly:

npx @ritualdev-lab/dbshield proxy --port 5433 --upstream-host 127.0.0.1 --upstream-port 5432

In your application or .env:

DATABASE_URL="postgres://user:password@127.0.0.1:5433/production_db"
4. Terminal CLI & Status
# Check status and inspect connected database

npx @ritualdev-lab/dbshield status

Initialize starter configuration file

npx @ritualdev-lab/dbshield init

5. Live Query Approval Feed & Web Dashboard

Start the real-time query approval web interface (:3100):

npx @ritualdev-lab/dbshield dashboard --port 3100

Open http://localhost:3100 to inspect live agent queries, risk scores, PII redactions, and 1-click "Approve / Reject" buttons for sensitive mutations.


⚙️ Configuration (dbshield.config.json)

{

"$schema": "https://raw.githubusercontent.com/RitualDev-Lab/DBShield/main/schema.json", "dialect": "sqlite", "storagePath": "./dev.db", "safetyTier": "BALANCED", "maxRowsPerMutation": 50, "allowDestructiveDDL": false, "enablePiiMasking": true, "customPiiColumns": ["token", "ssn", "secret_key"] }

Safety Tiers
TierMutation LimitDestructive DDLDry-Run RequiredPII MaskingBest For
STRICTMax 1 row❌ Blocked✅ Always Required🔒 EnforcedProduction, Staging
BALANCEDMax 50 rows❌ Blocked✅ On Bulk Writes🔒 EnforcedLocal Dev, Team Collaboration
PERMISSIVEMax 500 rows⚠️ WarnedOptionalOptionalSandbox Benchmarks

🛠️ MCP Tools Reference

ToolDescription
db_statusInspect gateway connectivity, active safety tier, cost gate, and database statistics.
db_describe_schemaSafe introspection of tables, columns, constraints, and relations.
db_querySafe read and mutation query execution with automatic PII redaction, cost gate, and DDL checks.
db_dry_runTest mutation inside an auto-rollback transaction with row delta preview and intent verification.
db_commitExecute verified mutation accompanied by cryptographic authorization token.
db_explain_queryAnalyze query execution plans, detect unindexed full-table scans, and receive index hints.
db_audit_logRetrieve compliance query audit trail, blocked operations, and risk scores.
db_validate_migrationValidate DDL migration scripts for lock hazards and generate zero-downtime execution recipes.
db_check_schema_driftAudit live database foreign keys for missing indexes and detect structural schema drift.
db_check_semantic_intentCheck stated English user intent against SQL AST target columns to stop unauthorized privilege/financial mutations.
db_distributed_dry_runSimulate atomic mutations across multi-store environments (Postgres, SQLite, Redis) and receive unified token.
db_distributed_commitExecute two-phase distributed commit across multi-store environments with cryptographic tamper verification.

🛡️ Matrix of Supported SQL & Enforced Guarantees

DBShield enforces rigorous runtime guarantees across the SQL lifecycle. Guarantees are verified transactionally, ensuring mutations never exceed approved scope even if database state drifts:

SQL OperationClassification MechanismStatic AST GuardrailExecution Boundary & RollbackData Masking & Privacy
SELECTPrepared-statement column reflection (stmt.columns())Detects missing LIMIT in STRICT tier; warns if limit exceeds server capStreaming iterator (stmt.iterate()) caps memory; truncates at maxRowsPerReadZero-leak dynamic PII masking on result rows
WITH ... (CTE)Prepared-statement column reflection & recursive AST analysisRecursively extracts underlying mutated tables & verifies read safetyStreaming iterator (stmt.iterate()) with hard read ceilingZero-leak dynamic PII masking on result rows
UPDATE (Targeted)AST evaluation & tautology checker (evaluateWhereClause)Blocks unconstrained updates, WHERE 1=1, WHERE true, tautological ORAtomic transaction; rolls back if affected rows exceed maxMutationRowsLiteral masking in logs & database errors
DELETE (Targeted)AST evaluation & tautology checker (evaluateWhereClause)Blocks unconstrained deletes, WHERE 1=1, tautological ORAtomic transaction; rolls back if affected rows exceed maxMutationRowsLiteral masking in logs & database errors
INSERTAST evaluation & dialect parserPre-flight dry run simulation required under STRICT tierAtomic transaction; rolls back if inserted rows exceed maxMutationRowsRedacts sensitive literals in (cols) VALUES (vals)

| DROP TABLE / TRUNCATE | AST statement opco

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen