Dbcli – Database CLI Built for AI Agents
One-shot database profiling beats five MCP tool calls; zero token overhead for agents.
Lightweight, agent-optimized database CLI with one-shot schema introspection, column profiling, and ERD generation.
One-shot schema dump with column stats beats MCP overhead, but SQL introspection tools already exist.
AI engineers, LLM application developers, agents needing database shell access
pgAdmin · DBeaver · Dataedo
The main idea is to make database introspection and querying simple and efficient when an agent has shell access. With a single command (dbcli snap), you can retrieve schema details, table relationships, and basic data profiling (column stats, ranges, cardinality) without stitching together multiple queries or tools. This helps reduce token usage and unnecessary round-trips in agent workflows.
Dbcli supports multiple databases, including PostgreSQL, MySQL, MariaDB, SQLite, DuckDB, ClickHouse, SQL Server, and others via optional drivers. It allows running queries, executing SQL files, and writing data directly from the CLI. There’s no server process or external service required — just install locally with:
pip install -e .
The goal is to provide a simple, agent-agnostic alternative to heavier protocol-based approaches, working with any system capable of executing shell commands.
I’d really appreciate feedback, especially from those building AI agents or tools that require structured database access.
Github repo: https://github.com/JustVugg/dbcli
One-shot database profiling beats five MCP tool calls; zero token overhead for agents.
Click-to-expand DB schema instead of joins, but DBeaver, DataGrip, and SQuirrel do this already.
MCP server lets Claude Code query databases when existing tools don't integrate.
AST analysis blocks injection attacks before they hit your production database.
LSM + LLM summarization for agent logs; clever architecture, but zero adopters yet.
Mature database subsetting tool with 10+ years of polish—but Liquibase and export-tools crowd the space.