db-mcp-server
Verified Safeby FreePeak
Overview
Provides AI assistants with structured access to multiple databases, enabling them to execute SQL queries, manage transactions, explore schemas, and analyze performance through a unified interface.
Installation
docker run -p 9092:9092 -v $(pwd)/config.json:/app/config.json -e TRANSPORT_MODE=sse -e CONFIG_PATH=/app/config.json freepeak/db-mcp-server:latestEnvironment Variables
- DB_TYPE
- DB_HOST
- DB_PORT
- DB_USER
- DB_PASSWORD
- DB_NAME
- DB_CONFIG
- CONFIG_PATH
- TRANSPORT_MODE
- SERVER_PORT
- LOG_LEVEL
- TZ
- MCP_DISABLE_LOGGING
- DISABLE_LOGGING
Security Notes
Hardcoded database credentials (passwords for test users) are present in Docker Compose files (`docker-compose.yml`, `docker-compose.timescaledb-test.yml`), `config.json`, and `README.md`. While explicit for testing, this is a critical vulnerability for production deployments. The `config.timescaledb-test.json` sets CORS `allowed_origins` to `"*"`, which is unsafe for production. However, the Go source code correctly uses parameterized queries to mitigate SQL injection risks. The `wait-for-it.sh` script employs safe methods for checking service availability.
Similar Servers
genai-toolbox
MCP Toolbox for Databases is an open-source server enabling AI agents to interact with various databases through defined tools, simplifying development, improving performance, and enhancing security for Gen AI applications.
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
tiger-docs-mcp-server
An MCP server and Claude plugin providing AI assistants with advanced PostgreSQL knowledge through semantic documentation search and curated best practice skills.
mcp-mysql-server
Provides an MCP-compliant interface for AI models to securely interact with a MySQL database for CRUD operations, schema inspection, and performance analysis.