Back to Home
FreePeak icon

db-mcp-server

Verified Safe

by FreePeak

Overview

Provides AI assistants with structured access to multiple database systems (MySQL, PostgreSQL, SQLite, TimescaleDB) through the Model Context Protocol (MCP).

Installation

Run Command
docker run -p 9092:9092 -v $(pwd)/config.json:/app/my-config.json -e TRANSPORT_MODE=sse -e CONFIG_PATH=/app/my-config.json freepeak/db-mcp-server

Environment Variables

  • DB_CONFIG
  • CONFIG_PATH
  • TRANSPORT_MODE
  • SERVER_PORT
  • SERVER_HOST
  • LOG_LEVEL
  • LOG_DIR
  • MCP_DISABLE_LOGGING
  • DISABLE_LOGGING
  • DB_TYPE
  • DB_HOST
  • DB_PORT
  • DB_USER
  • DB_PASSWORD
  • DB_NAME

Security Notes

The server uses parameterized queries to mitigate SQL injection risks. Example configuration files, such as `config.sqlite-example.json` and `config.timescaledb-test.json`, contain hardcoded default or placeholder credentials. While these are for example/test environments and users are expected to replace them, it highlights a common security pitfall if not properly managed in production. The server binds to `0.0.0.0` in some Docker configurations, which means it listens on all network interfaces, requiring a controlled network environment.

Similar Servers

Stats

Interest Score74
Security Score8
Cost ClassMedium
Avg Tokens3000
Stars337
Forks55
Last Update2026-01-16

Tags

multi-databaseAI assistantsMCPSQLTimescaleDB