← Back to browse

universal-db-mcp

Indexed by io.github.Fashad-Ahmed

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsPOSTGRES_URI SQLITE_PATH MYSQL_URI DUCKDB_PATH ALLOW_DESTRUCTIVE MAX_RESULT_ROWS
Claude Code
claude mcp add --env POSTGRES_URI= --env SQLITE_PATH= --env MYSQL_URI= --env DUCKDB_PATH= --env ALLOW_DESTRUCTIVE= --env MAX_RESULT_ROWS= universal-db-mcp -- uvx universal-db-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"universal-db-mcp","command":"uvx","args":["universal-db-mcp"],"env":{"POSTGRES_URI":"","SQLITE_PATH":"","MYSQL_URI":"","DUCKDB_PATH":"","ALLOW_DESTRUCTIVE":"","MAX_RESULT_ROWS":""}}'
JSON
{
  "mcpServers": {
    "universal-db-mcp": {
      "command": "uvx",
      "args": [
        "universal-db-mcp"
      ],
      "env": {
        "POSTGRES_URI": "",
        "SQLITE_PATH": "",
        "MYSQL_URI": "",
        "DUCKDB_PATH": "",
        "ALLOW_DESTRUCTIVE": "",
        "MAX_RESULT_ROWS": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.