Catalog
Universal Db MCP
Officialby Fashad-Ahmed · Python
Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.
Secure database access for PostgreSQL, SQLite, MySQL, and DuckDB with injection protection.
Topics
ai-agentsclaudedatabaseduckdbmcpmodel-context-protocolmysqlpostgresqlsqlsqlite
README not available yet.
Install
Configuration
Environment variables
POSTGRES_URIsecretPostgreSQL connection string (read-only user recommended)
SQLITE_PATHPath to a SQLite database file
MYSQL_URIsecretMySQL connection string (read-only user recommended)
DUCKDB_PATHPath to a DuckDB file, or :memory:
ALLOW_DESTRUCTIVEdefault falseSet to true to allow INSERT/UPDATE/DELETE/DDL (default: false)
MAX_RESULT_ROWSdefault 1000Maximum rows returned per query (default: 1000)
claude_desktop_config.json
{
"mcpServers": {
"universal-db-mcp": {
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<YOUR_POSTGRES_URI>",
"SQLITE_PATH": "<YOUR_SQLITE_PATH>",
"MYSQL_URI": "<YOUR_MYSQL_URI>",
"DUCKDB_PATH": "<YOUR_DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "false",
"MAX_RESULT_ROWS": "1000"
}
}
}
}