ajan-sql

JSON →
library 0.3.0 ·javascript
verified Jun 5, 2026

ajan-sql is an MCP (Model Context Protocol) server that provides safe, read-only SQL access to PostgreSQL, MySQL, and SQLite databases for AI agents. Version 0.3.0 (as of this entry) enforces strict guardrails: only SELECT queries allowed, no INSERT/UPDATE/DELETE, no DDL, no multi-statement, no comments, result limit of 100 rows, and a 5-second timeout. It offers tools like list_tables, describe_table, run_readonly_query, and explain_query. Its key differentiator is that safety rules are enforced at the server level and cannot be bypassed, making it ideal for AI copilots and automation. Human approval flows are delegated to the MCP host. The package ships TypeScript types and can be run via npx or global install.