Database
Enable AI assistants to interact with SQL databases including SQLite, PostgreSQL, and MySQL safely and efficiently.
db-mcp-server acts as a robust gateway for AI assistants to securely manage and query SQL databases. Built in Rust, it provides comprehensive support for SQLite, PostgreSQL, and MySQL, offering critical safety features like read-only default settings, SQL injection protection through parameterized queries, and AST-based guards against dangerous operations. It supports full ACID transaction management and offers flexible transport modes (stdio for CLI, HTTP with SSE for web) to seamlessly integrate database capabilities into AI-driven workflows.
Características Principales
01Multi-database support (SQLite, PostgreSQL, MySQL)
02Parameterized queries for SQL injection protection
03Read-only by default with explicit write flag
04Full ACID transaction management across multiple MCP calls
054 GitHub stars
06AST-based protection against dangerous SQL operations (DROP, TRUNCATE, unqualified DELETE/UPDATE)
Casos de Uso
01Connecting AI assistants to various SQL databases (SQLite, PostgreSQL, MySQL)
02Managing and querying multiple databases through a single AI interface
03Integrating secure and controlled database access into AI CLI tools like Claude Code and Codex