Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
io.github.stucchi/db
https://github.com/stucchi/db-mcp-server
STDIO
2 required env vars
Hosted endpoint — paste into any MCP client.
Configuration this server reads at startup.
Database type
Database name
Access mode
Database host (MySQL/PostgreSQL)
Database port (MySQL: 3306, PostgreSQL: 5432)
Database user (MySQL default: root, PostgreSQL default: postgres)
Database password (MySQL/PostgreSQL, optional)
MongoDB connection URL (required for MongoDB, e.g. mongodb://...)
SSH bastion host for tunneling (MySQL/PostgreSQL only)
SSH port
SSH username (default: current OS user)
Path to SSH private key (e.g. ~/.ssh/id_rsa)
SSH password (if no key provided)
Where to find authoritative docs and source for DB MCP Server.
Open MCP Agent Studio and connect this server to Claude, GPT, Gemini, DeepSeek and more — no install required.
Open Agent Studio