sql-whisperer
Verified Safeby consigcody94
Overview
Provides a multi-database server for natural language to SQL translation, deep schema introspection, and query optimization via the Model Context Protocol (MCP).
Installation
sql-whispererEnvironment Variables
- DB_TYPE
- DB_CONNECTION_STRING
- DB_HOST
- DB_PORT
- DB_NAME
- DB_USER
- DB_PASSWORD
- DB_SSL
- DB_FILENAME
- DB_POOL_MIN
- DB_POOL_MAX
- DB_IDLE_TIMEOUT
- DB_CONNECTION_TIMEOUT
Security Notes
The server employs robust query validation, explicitly checking for dangerous operations (e.g., DROP TABLE, TRUNCATE, DELETE without WHERE) and common SQL injection patterns. All database clients use parameterized queries, which is a critical defense against injection. The natural language query functionality is indicated as a placeholder, implying the LLM generates SQL that then goes through the server's validation. No 'eval' or direct arbitrary code execution is present. Configuration encourages the use of environment variables for secrets, reducing the risk of hardcoded credentials.
Similar Servers
mcp-server-neon
The Neon MCP Server allows users to interact with and manage their Neon Postgres databases using natural language commands, acting as a bridge between AI agents/LLMs and the Neon API and database operations.
MCP-PostgreSQL-Ops
The MCP server provides professional operations, monitoring, and management capabilities for PostgreSQL databases using natural language queries.
DBchat
Transforms a database into an intelligent conversational partner, enabling natural language queries, instant answers, and data visualizations via MCP clients.
postgres-mcp
A PostgreSQL database management and optimization expert system, offering interactive workflows for query analysis, index tuning, health monitoring, backup strategies, and advanced functionalities like vector search and geospatial data management. It helps users understand and improve their PostgreSQL database performance and health.