DB Connect MCP Server
by phatngoitio.github.phatngoit/mcp-db-connectv0.1.21
MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install DB Connect MCP server
Install in Claude Code
claude mcp add db-connect -e MCP_DB_CONFIG='<mcp-db-config>' -- npx -y mcp-db-connect startInstall in Cursor
{
"mcpServers": {
"db-connect": {
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "<mcp-db-config>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"db-connect": {
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "<mcp-db-config>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"db-connect": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "<mcp-db-config>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"db-connect": {
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "<mcp-db-config>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MCP_DB_CONFIG | — | yes | Full mcp-db-connect config (security + connections) as YAML or JSON. When set, file-based config discovery is skipped entirely. |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-05 · 2mo ago · GitHub
Latest release
2026-08-05 · 2mo ago · GitHub · v0.1.21
Package published
no data · npm/PyPI
Registry entry updated
2026-08-05 · 2mo ago · official registry · v0.1.21
FAQ
›How do I install the DB Connect MCP server in Claude Code?
Run: claude mcp add db-connect -e MCP_DB_CONFIG='<mcp-db-config>' -- npx -y mcp-db-connect start. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does DB Connect require an API key?
Yes. It expects MCP_DB_CONFIG, of which 1 is a secret.
›Can I use DB Connect as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is DB Connect in the official MCP registry?
Yes, as io.github.phatngoit/mcp-db-connect.
Alternatives to DB Connect
Other database MCP servers.