Berth
Berth gives your AI tools direct, safe access to PostgreSQL, SQLite, and MySQL databases. Inspect schemas, run queries, explain plans, track active queries, and manage backups — all through natural language with built-in safety rails. Read-only by default, write mode opt-in, destructive operations require confirmation. Named after where a ship rests in port — where your data lives.
What's included
- PostgreSQL, SQLite, and MySQL support
- Schema inspection — tables, columns, relationships, indexes
- Query execution with formatted results
- EXPLAIN ANALYZE for query optimization
- Active query monitoring
- Backup and restore operations
- Three safety modes — read-only (default), write, admin
- Destructive operation detection and confirmation
- Cross-platform — macOS and Linux
Requirements
- Python 3.12+
- Any MCP-compatible AI client (Claude Code, Cursor, Windsurf, etc.)
- A database to connect to (PostgreSQL, SQLite, or MySQL)
$0
Free & open source
Get it free Format Python package (PyPI)
Included 12 tools
License MIT — open source
Updates GitHub releases + PyPI