MCP ServerSTDIOOfficialv1.2.1

DB MCP Server MCP Server

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

io.github.stucchi/db

Hosted URL

https://github.com/stucchi/db-mcp-server

Transport

STDIO

Auth

2 required env vars

Connect to DB MCP Server

Hosted endpoint — paste into any MCP client.

https://github.com/stucchi/db-mcp-server

Environment variables

Configuration this server reads at startup.

  • DB_TYPERequired

    Database type

  • DB_DATABASERequired

    Database name

  • DB_MODE

    Access mode

  • DB_HOST

    Database host (MySQL/PostgreSQL)

  • DB_PORT

    Database port (MySQL: 3306, PostgreSQL: 5432)

  • DB_USER

    Database user (MySQL default: root, PostgreSQL default: postgres)

  • DB_PASSWORDSecret

    Database password (MySQL/PostgreSQL, optional)

  • DB_URLSecret

    MongoDB connection URL (required for MongoDB, e.g. mongodb://...)

  • SSH_HOST

    SSH bastion host for tunneling (MySQL/PostgreSQL only)

  • SSH_PORT

    SSH port

  • SSH_USER

    SSH username (default: current OS user)

  • SSH_KEY

    Path to SSH private key (e.g. ~/.ssh/id_rsa)

  • SSH_PASSWORDSecret

    SSH password (if no key provided)

Resources

Where to find authoritative docs and source for DB MCP Server.

Try DB MCP Server with 30+ AI models

Open MCP Agent Studio and connect this server to Claude, GPT, Gemini, DeepSeek and more — no install required.

Open Agent Studio

Related servers

More on MCP Playground