Show HN: Dbcli – Database CLI Built for AI Agents Hi everyone, I’d like to share a tool I built, called dbcli. It’s a database CLI designed specifically for AI agents, enabling them to understand and interact with any database using a single command. Whether you're developing AI systems that require database access or need a fast and efficient way to query and profile your databases, dbcli is optimized for speed and simplicity. Key Features: Instant Database Context: Use dbcli snap to get schema, data profiling, and relationships in one call—no need for multiple tool invocations. Optimized for AI Agents: Designed to minimize overhead for AI systems. Get database insights and query results without wasting tokens or setup time. Lightweight: No server setup, no SDK installation—just pip install dbcli and you’re ready to go. Multi-database Support: Supports SQLite, PostgreSQL, MySQL, MariaDB, DuckDB, ClickHouse, SQL Server, and more. Simple Queries and Writes: Run SQL queries, write data, and execute SQL files with ease. Data Profiling: Get real-time stats on column distributions, ranges, and cardinality to better understand your data. Integration: Easy integration with AI agents like Claude, LangChain, and others. Why dbcli over MCP? Zero context cost: Unlike MCP, which can consume hundreds of tokens just to fetch schema data, dbcli provides everything in a single command with no token overhead. Faster Setup: Minimal installation and no external configuration needed—just install with pip install dbcli. Works for Any Agent: dbcli works with any agent that has shell access—no need for special protocol support. Installation: pip install dbcli Optional database drivers: pip install "dbcli[postgres]"pip install "dbcli[mysql]"pip install "dbcli[all]" Check out the project on GitHub: https://github.com/JustVugg/dbcli Looking forward to your feedback and any suggestions for improvements! |