D

DB Bridge

Provides secure SQL query execution across MySQL, PostgreSQL, and SQLite databases with granular per...

7 views
0 installs
Updated Oct 27, 2025
Not audited
Provides secure SQL query execution across MySQL, PostgreSQL, and SQLite databases with granular permission controls, transaction-based operations, and configurable write access for production environments.
  1. Select Your Database Type
    Decide whether you want to connect to MySQL, PostgreSQL, or SQLite.

  2. Obtain Your Database Credentials

    • For MySQL or PostgreSQL:
      • Host (DB_HOST): The address where your database is running (e.g., 127.0.0.1 or a cloud endpoint for RDS/Cloud SQL/Azure).
      • Port (DB_PORT): The port number (MySQL: 3306, PostgreSQL: 5432).
      • User (DB_USER): The database username (e.g., root, postgres).
      • Password (DB_PASS): The database password for your user account.
      • Database name (DB_NAME): The database/schema you want to use. (Leave empty for multi-DB mode.)
    • For SQLite:
      • SQLite DB Path (SQLITE_DB): The file path to your SQLite database, or use :memory: for an in-memory database.
  3. (Optional) Configure SSL/TLS If Using Cloud Databases

  4. (Optional) Set Operation Permissions

    • For read-only setup, use: DB_READ_ONLY_MODE=true
    • To allow/deny operations globally:
      • ALLOW_INSERT_OPERATION, ALLOW_UPDATE_OPERATION, ALLOW_DELETE_OPERATION, ALLOW_DDL_OPERATION (true or false)
    • For schema-specific control, set:
      • SCHEMA_INSERT_PERMISSIONS, SCHEMA_UPDATE_PERMISSIONS, SCHEMA_DELETE_PERMISSIONS, SCHEMA_DDL_PERMISSIONS
      • Format: schema1:true,schema2:false
  5. (Optional) Set Multi-DB Mode

    • For MySQL/PostgreSQL, leave DB_NAME blank to access multiple databases.
    • Multi-DB mode is readonly by default. To enable writes: MULTI_DB_WRITE_MODE=true
  6. (Optional) Configure as Remote MCP

    • Enable HTTP server: IS_REMOTE_MCP=true
    • Set an authentication key: REMOTE_SECRET_KEY=your-secret-key-here
    • Choose port: PORT=3000 (or desired port)
  7. Fill in the FastMCP Connection Interface

    • Use the "Install Now" button.
    • Enter the environment variable values as described above (name and value for each required key).

Summary Table (for MySQL/PostgreSQL):

Variable Example Value Required?
DB_TYPE mysql / postgresql / sqlite Yes
DB_HOST 127.0.0.1 / db.example.com Yes (not SQLite)
DB_PORT 3306 / 5432 Yes (not SQLite)
DB_USER root / postgres Yes (not SQLite)
DB_PASS your_db_password Yes (not SQLite)
DB_NAME your_db_name (Leave empty for multi-DB)
SQLITE_DB :memory: or /path/to/file.db (Only for SQLite)
DB_SSL true / false Optional/cloud
DB_SSL_CA, CERT, KEY /path/to/*.pem Only for SSL/TLS

Fill these values in the FastMCP connection setup interface to connect your DB via mcp-db-bridge.

Quick Start

View on GitHub

More for Database

View All →

More for Cloud Platforms

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.