Universal DB MCP Server
by fashad-ahmedio.github.Fashad-Ahmed/universal-db-mcpv1.1.2
Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Universal DB MCP server
Install in Claude Code
claude mcp add universal-db -e POSTGRES_URI='<postgres-uri>' -e MYSQL_URI='<mysql-uri>' -- uvx universal-db-mcpInstall in Cursor
{
"mcpServers": {
"universal-db": {
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<postgres-uri>",
"MYSQL_URI": "<mysql-uri>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"universal-db": {
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<postgres-uri>",
"MYSQL_URI": "<mysql-uri>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"universal-db": {
"type": "stdio",
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<postgres-uri>",
"MYSQL_URI": "<mysql-uri>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"universal-db": {
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<postgres-uri>",
"MYSQL_URI": "<mysql-uri>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| POSTGRES_URI | — | yes | PostgreSQL connection string (read-only user recommended) |
| SQLITE_PATH | — | — | Path to a SQLite database file |
| MYSQL_URI | — | yes | MySQL connection string (read-only user recommended) |
| DUCKDB_PATH | — | — | Path to a DuckDB file, or :memory: |
| ALLOW_DESTRUCTIVE | — | — | Set to true to allow INSERT/UPDATE/DELETE/DDL (default: false) |
| MAX_RESULT_ROWS | — | — | Maximum rows returned per query (default: 1000) |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-11 · 4mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-11 · 4mo ago · official registry · v1.1.2
FAQ
›How do I install the Universal DB MCP server in Claude Code?
Run: claude mcp add universal-db -e POSTGRES_URI='<postgres-uri>' -e MYSQL_URI='<mysql-uri>' -- uvx universal-db-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Universal DB require an API key?
Yes. It expects POSTGRES_URI, MYSQL_URI, of which 2 are secrets.
›Can I use Universal DB as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Universal DB in the official MCP registry?
Yes, as io.github.Fashad-Ahmed/universal-db-mcp.
Alternatives to Universal DB
Other database MCP servers.