Universal Database MCP
A security-first, Python-native MCP server for database access from AI agents. It supports PostgreSQL, SQLite, MySQL, and DuckDB, applying 8 layers of injection prevention and treating LLM output as untrusted input to ensure safe query execution.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Query local SQLite databases with zero infrastructure
- Perform analytics on DuckDB files or parquet files
- Execute safe SQL queries in PostgreSQL with read-only enforcement
- Run in-memory DuckDB for throwaway analysis
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
universal-db-mcp 1.1.2
{
"version": "1.1.2",
"transport": "stdio",
"identifier": "universal-db-mcp",
"registryType": "pypi",
"environmentVariables": [
{
"name": "POSTGRES_URI",
"description": "PostgreSQL connection string (read-only user recommended)"
},
{
"name": "SQLITE_PATH",
"description": "Path to a SQLite database file"
},
{
"name": "MYSQL_URI",
"description": "MySQL connection string (read-only user recommended)"
},
{
"name": "DUCKDB_PATH",
"description": "Path to a DuckDB file, or :memory:"
},
{
"name": "ALLOW_DESTRUCTIVE",
"default": "false",
"description": "Set to true to allow INSERT/UPDATE/DELETE/DDL (default: false)"
},
{
"name": "MAX_RESULT_ROWS",
"default": "1000",
"description": "Maximum rows returned per query (default: 1000)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"universal-database-mcp": {
"command": "uvx",
"args": [
"universal-db-mcp==1.1.2"
],
"env": {
"POSTGRES_URI": "<YOUR_POSTGRES_URI>",
"SQLITE_PATH": "<YOUR_SQLITE_PATH>",
"MYSQL_URI": "<YOUR_MYSQL_URI>",
"DUCKDB_PATH": "<YOUR_DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "<YOUR_ALLOW_DESTRUCTIVE>",
"MAX_RESULT_ROWS": "<YOUR_MAX_RESULT_ROWS>"
}
}
}
}Cline
{
"mcpServers": {
"universal-database-mcp": {
"command": "uvx",
"args": [
"universal-db-mcp==1.1.2"
],
"env": {
"POSTGRES_URI": "<YOUR_POSTGRES_URI>",
"SQLITE_PATH": "<YOUR_SQLITE_PATH>",
"MYSQL_URI": "<YOUR_MYSQL_URI>",
"DUCKDB_PATH": "<YOUR_DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "<YOUR_ALLOW_DESTRUCTIVE>",
"MAX_RESULT_ROWS": "<YOUR_MAX_RESULT_ROWS>"
}
}
}
}VS Code
{
"servers": {
"universal-database-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"universal-db-mcp==1.1.2"
],
"env": {
"POSTGRES_URI": "<YOUR_POSTGRES_URI>",
"SQLITE_PATH": "<YOUR_SQLITE_PATH>",
"MYSQL_URI": "<YOUR_MYSQL_URI>",
"DUCKDB_PATH": "<YOUR_DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "<YOUR_ALLOW_DESTRUCTIVE>",
"MAX_RESULT_ROWS": "<YOUR_MAX_RESULT_ROWS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"universal-database-mcp": {
"command": "uvx",
"args": [
"universal-db-mcp==1.1.2"
],
"env": {
"POSTGRES_URI": "<YOUR_POSTGRES_URI>",
"SQLITE_PATH": "<YOUR_SQLITE_PATH>",
"MYSQL_URI": "<YOUR_MYSQL_URI>",
"DUCKDB_PATH": "<YOUR_DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "<YOUR_ALLOW_DESTRUCTIVE>",
"MAX_RESULT_ROWS": "<YOUR_MAX_RESULT_ROWS>"
}
}
}
}Let your agent find its tools
Find servers like Universal Database MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.