Connects Claude to MySQL, PostgreSQL, MongoDB, and SQLite databases with optional SSH tunneling for secure remote access. Each server instance handles one database and exposes read-only operations by default (query, describe, list tables/collections) with optional read-write mode for INSERT, UPDATE, and DELETE. The SSH tunnel support is especially handy for production databases behind bastion hosts. SQLite over SSH downloads the database file via SFTP and syncs changes back on shutdown. MongoDB gets aggregation pipelines with safety guards against write stages in read-only mode. Install with uvx and configure through environment variables. Run multiple instances to work with different databases simultaneously.
claude mcp add --transport stdio io.github.stucchi-db uvx db