universal db mcp for Cursor
io.github.fashad-ahmed/universal-db-mcp
Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.
client:Cursor
transport:stdio
runtime:pypi
Install universal db mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"universal-db-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"universal-db-mcp"
],
"env": {
"POSTGRES_URI": "<POSTGRES_URI>",
"SQLITE_PATH": "<SQLITE_PATH>",
"MYSQL_URI": "<MYSQL_URI>",
"DUCKDB_PATH": "<DUCKDB_PATH>",
"ALLOW_DESTRUCTIVE": "<ALLOW_DESTRUCTIVE>",
"MAX_RESULT_ROWS": "<MAX_RESULT_ROWS>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs