What this kind of tool is for
- Query, inspect, or seed a database without writing a one-off script.
- Let your agent look up schema details before it writes migration code.
- Move a small dataset between tools without leaving the terminal.
How to compare servers like this
- Engine match:
- Confirm it speaks your exact database and version, not just the family.
- Access scope:
- Read-only connections are the safe default — start there before granting writes.
- Safety rails:
- Check whether destructive statements need an explicit confirmation before they run.
- Maintenance signal:
- Database drivers change; a recently updated tool is less likely to break mid-query.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the DB MCP Server MCP server?
Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
How to install DB MCP Server
Copy-paste configuration for popular MCP clients.
DB_TYPErequiredDatabase type
DB_DATABASErequiredDatabase name
DB_MODEAccess mode
DB_HOSTDatabase host (MySQL/PostgreSQL)
DB_PORTDatabase port (MySQL: 3306, PostgreSQL: 5432)
DB_USERDatabase user (MySQL default: root, PostgreSQL default: postgres)
DB_PASSWORDsecretDatabase password (MySQL/PostgreSQL, optional)
DB_URLsecretMongoDB connection URL (required for MongoDB, e.g. mongodb://...)
SSH_HOSTSSH bastion host for tunneling (MySQL/PostgreSQL only)
SSH_PORTSSH port
SSH_USERSSH username (default: current OS user)
SSH_KEYPath to SSH private key (e.g. ~/.ssh/id_rsa)
SSH_PASSWORDsecretSSH password (if no key provided)
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "<YOUR_DB_TYPE>",
"DB_DATABASE": "<YOUR_DB_DATABASE>",
"DB_MODE": "<YOUR_DB_MODE>",
"DB_HOST": "<YOUR_DB_HOST>",
"DB_PORT": "<YOUR_DB_PORT>",
"DB_USER": "<YOUR_DB_USER>",
"DB_PASSWORD": "<YOUR_DB_PASSWORD>",
"DB_URL": "<YOUR_DB_URL>",
"SSH_HOST": "<YOUR_SSH_HOST>",
"SSH_PORT": "<YOUR_SSH_PORT>",
"SSH_USER": "<YOUR_SSH_USER>",
"SSH_KEY": "<YOUR_SSH_KEY>",
"SSH_PASSWORD": "<YOUR_SSH_PASSWORD>"
}
}
}
}Related MCP servers

Domain Check
Check domain availability across 500+ TLDs. Single and bulk checks with UI.

Google Analytics 4
Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

Italy OpenData
Italian open data: municipalities, provinces, regions, postal codes, coordinates.

MCP Advisor
Browse, search, and discover MCP servers from your AI assistant

Nexi XPay
MCP server for Nexi XPay Back Office APIs: orders, transactions, warnings.

Telnyx
MCP server for the Telnyx API — billing, phone numbers, and messaging