The DB Gateway acts as a self-hosted intermediary, empowering MCP-compatible AI tools like Claude Code, Cursor, and Windsurf to interact directly with your PostgreSQL and MySQL databases. It eliminates the need for manual copy-pasting of query results by allowing AI to explore schemas, inspect tables, and execute SELECT queries automatically. Critically, it enforces read-only access at the gateway level, preventing any insert, update, delete, or drop operations, while keeping all database credentials securely encrypted and localized on your machine.
主要功能
011 GitHub stars
02Self-hosted and locally run for enhanced privacy
03Includes a web UI for easy database configuration and connection testing
04Securely encrypts and stores database credentials locally using AES-256-GCM
05Supports both PostgreSQL and MySQL databases
06Enforces read-only database access for AI agents at the gateway level
使用案例
01Allowing AI to explore database schemas, inspect table structures, and understand relationships
02Providing AI with direct access to run SELECT queries on connected databases without manual intervention
03Enabling AI coding agents to query databases for insights and answer data-related questions