Back to Home
trupti79916 icon

mcp-multiple-db-toolbox

by trupti79916

Overview

The MCP server acts as a unified gateway to connect to and interact with multiple database types (PostgreSQL, MongoDB, Redis, SAP HANA) via dynamically generated tools.

Installation

Run Command
python main.py

Environment Variables

  • PROD_POSTGRES_USER
  • PROD_POSTGRES_PASSWORD
  • MONGODB_ATLAS_URI
  • MONGODB_ATLAS_DB
  • HANA_HOST
  • HANA_PORT
  • HANA_USER
  • HANA_PASSWORD
  • HANA_SCHEMA
  • ANALYTICS_POSTGRES_USER
  • ANALYTICS_POSTGRES_PASSWORD

Security Notes

The MongoDB connector sets `tlsAllowInvalidCertificates=True`. While the code comment suggests this is for development, it is a critical security vulnerability for production deployments as it disables TLS certificate validation, making the connection susceptible to man-in-the-middle attacks. This makes the system unsafe for sensitive data in production. Other database connectors use parameterized queries (PostgreSQL, HANA), which is good for SQL injection prevention. Credentials are handled via environment variables, which is a good practice.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens300
Stars0
Forks0
Last Update2025-11-26

Tags

Multi-databaseMCPDatabase GatewayTool GenerationPython