universal-db-mcp
v1.1.2Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.
Values you need
| Variable | What it is | |
|---|---|---|
POSTGRES_URI | optional secret | PostgreSQL connection string (read-only user recommended) |
SQLITE_PATH | optional | Path to a SQLite database file |
MYSQL_URI | optional secret | MySQL connection string (read-only user recommended) |
DUCKDB_PATH | optional | Path to a DuckDB file, or :memory: |
ALLOW_DESTRUCTIVE | optional | Set to true to allow INSERT/UPDATE/DELETE/DDL (default: false) Default: false |
MAX_RESULT_ROWS | optional | Maximum rows returned per query (default: 1000) Default: 1000 |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add universal-db-mcp -- uvx universal-db-mcp==1.1.2Add to
claude_desktop_config.json{
"mcpServers": {
"universal-db-mcp": {
"args": [
"universal-db-mcp==1.1.2"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"universal-db-mcp": {
"args": [
"universal-db-mcp==1.1.2"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"universal-db-mcp": {
"args": [
"universal-db-mcp==1.1.2"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.universal-db-mcp]
command = "uvx"
args = ["universal-db-mcp==1.1.2"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: query, schema, explain, health, query_history, snapshot_schema, schema_diff, list_databases.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json