Database Queries
v1.5.0Database Queries is an AI agent skill in the Data & Files category. Query SQL and NoSQL databases, inspect schemas, run migrations, and generate reports from live data.
npx agentmag add database-queriesAbout
The Database Queries skill connects your agent directly to databases. It supports PostgreSQL, MySQL, MongoDB, SQLite, and Redis — with schema inspection, query generation, read/write operations, and result formatting.
Safety-first: configurable read-only mode, query timeouts, row limits, and transaction rollback. Your agent can answer questions from live data, generate reports, and even help with schema design and migrations.
Capabilities
- Natural language to SQL/MongoDB query generation
- Schema inspection and documentation
- Read and write operations with transaction support
- Result formatting as tables, JSON, or narratives
- Configurable read-only mode and row limits
- Support for PostgreSQL, MySQL, MongoDB, SQLite, Redis
Compatible agents
Add Database Queries to your agent
One command to install. Works with all major coding agents.
Related AI agent resources
Useful Tools
Building an agent skill? Submit your AI agent skill for free or get featured placement.