DB MCP Server

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

Local serverstdio

What is the DB MCP Server?

DB MCP Server is an MCP integration. Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

Packages and local setup

The published pypi package is db-mcp-server, version 1.2.1. Its declared MCP transport is stdio.

The package declares DB_TYPE (required): Database type; DB_DATABASE (required): 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_PASSWORD: Database password (MySQL/PostgreSQL, optional); DB_URL: 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_PASSWORD: SSH password (if no key provided).

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository. This profile uses version 1.2.1 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related databases MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
DB_TYPEDatabase typeYes
DB_DATABASEDatabase nameYes
DB_MODEAccess modeOptional
DB_HOSTDatabase host (MySQL/PostgreSQL)Optional
DB_PORTDatabase port (MySQL: 3306, PostgreSQL: 5432)Optional
DB_USERDatabase user (MySQL default: root, PostgreSQL default: postgres)Optional
DB_PASSWORDDatabase password (MySQL/PostgreSQL, optional)Optional
DB_URLMongoDB connection URL (required for MongoDB, e.g. mongodb://...)Optional
SSH_HOSTSSH bastion host for tunneling (MySQL/PostgreSQL only)Optional
SSH_PORTSSH portOptional
SSH_USERSSH username (default: current OS user)Optional
SSH_KEYPath to SSH private key (e.g. ~/.ssh/id_rsa)Optional
SSH_PASSWORDSSH password (if no key provided)Optional