MCP DB Connect MCP server
io.github.phatngoit/mcp-db-connect·v0.1.21·1 starsMCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.
1 stars90 downloads/wk
Reviews
Write oneNobody has reviewed MCP DB Connect yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
MCP DB Connect tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan43 source files scanned; 43 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 49 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How MCP DB Connect compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 47% of 802 Databases servers
- GitHub stars
- 1
- more than 45% of 601 Databases servers
- Downloads a week
- 90
- more than 57% of 324 Databases servers with a package
Install MCP DB Connect in Claude Code, Cursor or VS Code
Runs npx -y mcp-db-connect on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-db-connect -- npx -y mcp-db-connect
What the publisher says
From the MCP DB Connect repository's README, as published. We do not edit it. Read it on GitHub
MCP DB Connect
Universal MCP server for readonly-first access to Oracle Database, Microsoft SQL Server, PostgreSQL, MySQL/MariaDB, SQLite, MongoDB, and Qdrant vector search.
This project is designed for AI tools that support the Model Context Protocol. Projects can install it, provide a YAML config, and expose safe database tools to their AI client.
Oracle connections use the Node.js oracledb Thin mode by default, so Oracle Instant Client is not required for most databases. Some Oracle databases use NCHAR character sets that Thin mode cannot handle; those databases require Oracle Thick mode with Oracle Client libraries.
By default, commands run from a project directory automatically use:
- mcp-db.local.yml, then mcp-db.yml, then mcp-db.yaml
- .env
Features
- Oracle, MSSQL, PostgreSQL, MySQL/MariaDB, SQLite, MongoDB, and Qdrant connectors
- Multiple named connections in one config file
- Readonly by default
- SQL multi-statement blocking
- MongoDB $out and $merge blocking in readonly mode
- Row limits and query timeouts
- Markdown table output for query results
- Schema/table allowlist and denylist
- Sensitive field masking
- JSONL audit logs
- Interactive setup wizard for AI clients and database connections
- CLI for setup, init, validation, connection testing, and stdio/HTTP server startup
Install
1. Install the package
Node / TypeScript projects (local install):
npm install --save-dev mcp-db-connect.NET, Python, or other non-Node projects (global install):
npm install -g mcp-db-connect2. Run the setup wizard
npx mcp-db-connect setupThe wizard asks which AI clients and databases to configure, then asks for one connection string per database (the same string your DB host, hosting provider, or existing app config already gives you) and writes all config files automatically.
3. Test your connections
npx mcp-db-connect test-connectionsThat's it — your AI client is now connected to your databases.
What the wizard creates
mcp-db.local.yml # database connection config
.env # local secrets
.gitignore # keeps secrets and local config out of git
.mcp.json # Claude Code MCP config (if selected)
.codex/config.toml # Codex CLI config (if selected)
.gemini/settings.json # Gemini CLI config (if selected)
.kimi/mcp.json # Kimi CLI config (if selected)Other setup options
Skip the wizard with explicit flags:
npx mcp-db-connect setup --ai claude,codex --db mssql,mongodbOverwrite existing config entries:
npx mcp-db-connect setup --forceStart an HTTP MCP endpoint instead of stdio:
npx mcp-db-connect serve-http --host 127.0.0.1 --port 3000
npx mcp-db-connect serve-http --api-key-env MCP_DB_HTTP_API_KEYAI Client Examples
All examples assume the AI CLI is started from your application project root.
Claude Code CLI
Recommended automatic setup:
mcp-db-connect setup --ai claude --db mssqlThe generated .mcp.json uses npx so it works whether the package is installed globally or locally.
Global install (npm install -g mcp-db-connect)
mcp-db-connect is in PATH and can be used directly:
claude mcp add --transport stdio db-connect --scope local -- mcp-db-connect start --project . --config ./mcp-db.local.yml --env ./.env.mcp.json:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
MCP DB Connect: common questions
- Is MCP DB Connect MCP server safe?
- Mostly: it is graded B (78/100). Read the MCP DB Connect safety report
- How do I install MCP DB Connect?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does MCP DB Connect need an API key?
- Yes. The registry entry asks for
MCP_DB_CONFIG. - Is MCP DB Connect maintained?
- The last commit was 89 days ago (2026-08-05). The latest release is v0.1.21.
- What can I use instead of MCP DB Connect?
- Servers from other publishers that do the same job: DBHub MCP server, Faucet MCP server and NeoSQL MCP server.
- How does MCP DB Connect compare with other Databases MCP servers?
- safety score 78/100 (higher than 47% of 802 Databases servers); github stars 1 (more than 45% of 601 Databases servers); downloads a week 90 (more than 57% of 324 Databases servers with a package). Full comparison.
Alternatives to MCP DB Connect
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA
NeoSQL MCPSchemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.not reviewedGrowingA- DB ExplorerRead-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advicenot reviewedGrowingB
- AppwriteBuild and deploy backends: auth, Postgres/MySQL/vector databases, storage, functions, hosting, CDNnot reviewedEstablishedA