Universal MCP Server

Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.

Local serverstdioPython

What is the Universal MCP Server?

Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.

What the server does

Most database MCP servers give AI agents raw SQL access and hope for the best. This server assumes the LLM is untrusted input and applies 8 layers of injection prevention before any query reaches your database — including blocking UNION attacks, stacked statements, time-based injection, and comment bypasses.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
queryExecute SQL — read-only by default, all 8 security layers apply
schemaInspect tables and columns — no config needed
explainGet query execution plan without running the query
healthCheck connection status, DB version, and pool metrics
list_databasesShow all configured databases and connection state
query_historyInspect the last 100 executed queries
snapshot_schemaCapture current schema for drift detection
schema_diffCompare current schema against the last snapshot

How to install the Universal MCP Server

{
  "mcpServers": {
    "universal-db": {
      "command": "uvx",
      "args": ["universal-db-mcp"],
      "env": {
        "SQLITE_PATH": "your-value",
        "ALLOW_DESTRUCTIVE": "your-value",
        "DUCKDB_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SQLITE_PATHFilesystem location the server is allowed to use.Optional
ALLOW_DESTRUCTIVEConfiguration value read at startup.Optional
DUCKDB_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Universal to query.”
  • “Use Universal to schema.”
  • “Use Universal to explain.”

Frequently asked questions

Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.