Local-first AI DBA for PostgreSQL
The DBA that lives in your terminal.
Migrant indexes your databases, understands every environment, and answers in plain English. All from your machine.
curl -fsSL https://raw.githubusercontent.com/migrant-db/migrant/main/install.sh | bashHow it works
From connection string to answers in minutes.
- 01
Connect
Point Migrant at any PostgreSQL database with /connect. Credentials go straight to your OS keychain.
- 02
Index
Every table, view, function, trigger, enum and sequence is embedded and stored in local SQLite.
- 03
Ask
Talk in plain English. Migrant retrieves the relevant schema and answers, or runs read-only SQL after you confirm.
Features
Everything a DBA knows. None of the waiting.
Migrant reads your schema like a senior engineer would, then keeps up as it changes.
Plain-English answers
Ask how your data fits together. Get grounded answers drawn from the real catalog, not a guess.
Every environment
Production, staging, development. Migrant knows which database a question is about.
Semantic schema search
Find the right object by meaning. Retrieval keeps prompts small as schemas grow.
Read-only SQL, with consent
The agent proposes queries and waits for your confirmation before anything runs.
Always current
Schema fingerprints detect change and trigger a re-index automatically.
Optimization advice
Spot missing indexes, slow query shapes and routing opportunities.
Drift & comparison
See how environments diverge and what a migration would touch.
Policy audit
Understand row level security policies and the objects they depend on.
MCP for your AI IDE
Bring Migrant into Cursor, Claude Code and friends as a database-aware tool.
Local-first
Your database never leaves your machine.
Bring your own model key. Schema context goes to the provider you choose, and nowhere else.
Keychain credentials
Connection strings live in your OS keychain, never in a config file.
Local index
Embeddings and chats are stored in SQLite on your machine.
Direct connections
Migrant talks to your database from your laptop. No Migrant server in between.
Bring your own model
- Anthropic
- OpenAI
- xAI
- Mistral
- DeepSeek
- OpenRouter
Install
One command. Then ask away.
Works on macOS and Linux. Pick whichever package manager you already use.
curl -fsSL https://raw.githubusercontent.com/migrant-db/migrant/main/install.sh | bash