MCP server for MySQL, PostgreSQL, MongoDB, and SQLite databases, allowing one instance per database without the need for Docker.
From the registry: Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
Please install the `db` MCP server into my current AI client (that's you).
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["db-mcp-server"]
- required environment variables:
- `DB_TYPE`: Database type: mysql, postgresql, mongodb, or sqlite (example: `postgresql`)
- optional environment variables:
- `DB_DATABASE`: Database name (required for MySQL/PostgreSQL/MongoDB) (example: `myapp`)
- `DB_HOST`: Database host (MySQL/PostgreSQL) (example: `localhost`)
- `DB_PORT`: Database port (example: `5432`)
- `DB_USER`: Database user (example: `postgres`)
- `DB_PASSWORD`: Database password (example: `<db_password>`)
- `DB_URL`: Connection URL (MongoDB) (example: `mongodb://...`)
- `DB_PATH`: Path to SQLite .db file (example: `/path/to/database.db`)
- `DB_MODE`: read-only or read-write (example: `read-only`)
- `SSH_HOST`: SSH bastion host to activate tunneling (example: `bastion.example.com`)
- `SSH_PORT`: SSH port (example: `22`)
- `SSH_USER`: SSH username (example: `deploy`)
- `SSH_KEY`: Path to SSH private key (example: `~/.ssh/id_rsa`)
- `SSH_PASSWORD`: SSH password if no key (example: `<ssh_password>`)
Note: One instance per database. Supports MySQL, PostgreSQL, MongoDB, SQLite, with optional SSH tunneling.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.DB_TYPErequiredDatabase type (mysql, postgresql, mongodb, sqlite)DB_DATABASErequiredDatabase nameDB_PASSWORDrequiredPassword for the databaseDB_URLrequiredConnection URL for MongoDBDB_PATHrequiredPath to the SQLite database fileMCP server for interacting with the Supabase platform