llm-safe-sql

hyuga611/llm-safe-sql
★ 0 stars TypeScript Database Updated 4d ago
Let an LLM propose UPDATE/DELETE, run it for real inside a transaction, measure the actual before/after diff, and always roll back - so a human approves measured facts, not the model's claim. MySQL + PostgreSQL, MCP server, no runtime dependencies.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "llm-safe-sql": {
      "command": "npx",
      "args": [
        "-y",
        "hyuga611/llm-safe-sql"
      ]
    }
  }
}

README Excerpt

*[日本語は下にあります](#日本語)* **Let a language model propose an `UPDATE` or `DELETE`. Run it for real inside a transaction, measure the actual before/after values, and always roll back. Show a human the measurement. Only then, on their word, do it for real.** The confirmation is not a prediction and not a summary the model wrote. It is

Tools (6)

INSERTapplyConnectionbigintconnectionreadConnectionstoreConnection

Topics

ai-safetydatabasedry-runguardrailshuman-in-the-loopllmllm-agentmcpmcp-servermysqlpostgresqlrollbacksqltypescript
📊
Working with market or time-series data?
The Polymarket Historical Dataset — 18.5M+ price snapshots across 18,600+ prediction markets (CSV + SQLite). Built for backtesting & ML.
View dataset →