Database
Provides a safe, read-only interface for querying PostgreSQL databases from the command line or via AI agents.
DatabaseMcp offers a robust solution for securely interacting with PostgreSQL databases, acting as both a command-line interface and an MCP (Model Context Protocol) server. It's specifically designed with AI agents and CLI users in mind, ensuring all database connections are strictly read-only at the session level to prevent accidental modifications to production data. This tool allows users to safely query schemas, execute SQL, and manage connections, making it an ideal choice for development, diagnostics, and AI-driven data exploration without risk.
主要功能
01Enforced read-only database connections at the session level
02Dual functionality as a CLI tool and MCP server for AI agents
03Secure storage of encrypted database connection strings
04Automatic statement timeouts and query row limits for safety
05Comprehensive database schema retrieval and SQL query execution
060 GitHub stars
使用案例
01Allowing AI agents to safely query database schemas and data without write access
02Enabling CLI users to perform read-only diagnostics and data exploration on PostgreSQL databases
03Integrating secure, controlled database access into AI development workflows like Claude Code or Cursor