DB MCP Server
About
Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
DB_TYPE DB_DATABASE DB_MODE DB_HOST DB_PORT DB_USER DB_PASSWORD DB_URL SSH_HOST SSH_PORT SSH_USER SSH_KEY SSH_PASSWORDClaude Code
claude mcp add --env DB_TYPE= --env DB_DATABASE= --env DB_MODE= --env DB_HOST= --env DB_PORT= --env DB_USER= --env DB_PASSWORD= --env DB_URL= --env SSH_HOST= --env SSH_PORT= --env SSH_USER= --env SSH_KEY= --env SSH_PASSWORD= db -- uvx db-mcp-server
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"db","command":"uvx","args":["db-mcp-server"],"env":{"DB_TYPE":"","DB_DATABASE":"","DB_MODE":"","DB_HOST":"","DB_PORT":"","DB_USER":"","DB_PASSWORD":"","DB_URL":"","SSH_HOST":"","SSH_PORT":"","SSH_USER":"","SSH_KEY":"","SSH_PASSWORD":""}}'
JSON
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "",
"DB_DATABASE": "",
"DB_MODE": "",
"DB_HOST": "",
"DB_PORT": "",
"DB_USER": "",
"DB_PASSWORD": "",
"DB_URL": "",
"SSH_HOST": "",
"SSH_PORT": "",
"SSH_USER": "",
"SSH_KEY": "",
"SSH_PASSWORD": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.