DB MCP Server
Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "<db_type>",
"DB_DATABASE": "<db_database>",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PORT": "<db_port>",
"DB_USER": "<db_user>",
"DB_PASSWORD": "<your-db_password>",
"DB_URL": "<your-db_url>",
"SSH_HOST": "<ssh_host>",
"SSH_PORT": "22",
"SSH_USER": "<ssh_user>",
"SSH_KEY": "<ssh_key>",
"SSH_PASSWORD": "<your-ssh_password>"
}
}
}
}DB_TYPEDatabase type
DB_DATABASEDatabase name
DB_MODEAccess mode
DB_HOSTDatabase host (MySQL/PostgreSQL)
DB_PORTDatabase port (MySQL: 3306, PostgreSQL: 5432)
DB_USERDatabase user (MySQL default: root, PostgreSQL default: postgres)
DB_PASSWORDDatabase password (MySQL/PostgreSQL, optional)
DB_URLMongoDB connection URL (required for MongoDB, e.g. mongodb://...)
SSH_HOSTSSH bastion host for tunneling (MySQL/PostgreSQL only)
SSH_PORTSSH port
SSH_USERSSH username (default: current OS user)
SSH_KEYPath to SSH private key (e.g. ~/.ssh/id_rsa)
SSH_PASSWORDSSH password (if no key provided)
Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…