Skip to content

Introduction

miu-db

Release

miu-db gives you and your coding agent one way into every database you use. The miudb binary keeps saved connections, secrets, SSH tunnels, query paging, schema inspection, and ERDs in one local Go core, and prints stable JSON on stdout.

Terminal window
curl -fsSL https://db.miu.sh/install.sh | sh
miudb connections add --name app --db-type sqlite --path ./app.db
miudb query run --connection app --sql 'select 1 as one' -o pretty

miudb demo: add a connection, smoke test, query, schema, ERD, and the activity log

New here? Getting started takes five minutes.

NeedHowPage
Save and share connectionsconnections add, import; secrets in the keyringConnections and queries
Query safelyBounded rows, cursor pages, per-call --sessionConnections and queries
Cloud warehousesSnowflake OAuth or key pair, BigQuery ADCAuthentication
See a schemaschema tree, interactive offline ERDERD diagrams
Give an agent toolsmiudb mcp serve, read-only by defaultMCP server
Audit what ranJSONL activity log, no result rowsActivity log

Adapters: SQLite, PostgreSQL, MySQL, Snowflake, BigQuery. SSH tunnels for Postgres and MySQL. A Neovim client lives in ui/miu-db.nvim.

MIT. Source: github.com/vanducng/miu-db.