Introduction

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.
curl -fsSL https://db.miu.sh/install.sh | shmiudb connections add --name app --db-type sqlite --path ./app.dbmiudb query run --connection app --sql 'select 1 as one' -o pretty
New here? Getting started takes five minutes.
What it does
Section titled “What it does”| Need | How | Page |
|---|---|---|
| Save and share connections | connections add, import; secrets in the keyring | Connections and queries |
| Query safely | Bounded rows, cursor pages, per-call --session | Connections and queries |
| Cloud warehouses | Snowflake OAuth or key pair, BigQuery ADC | Authentication |
| See a schema | schema tree, interactive offline ERD | ERD diagrams |
| Give an agent tools | miudb mcp serve, read-only by default | MCP server |
| Audit what ran | JSONL activity log, no result rows | Activity log |
Adapters: SQLite, PostgreSQL, MySQL, Snowflake, BigQuery. SSH tunnels for
Postgres and MySQL. A Neovim client lives in ui/miu-db.nvim.
For agents
Section titled “For agents”- Every command prints the stable
miudb.cli/v1JSON envelope on stdout. See Agent CLI contract. - Every docs page is also raw Markdown: append
.mdto its URL, for example/onboarding.md. - Indexes:
/llms.txt,/llms-full.txt. - Skill:
/skill.md.
MIT. Source: github.com/vanducng/miu-db.