MCP DB Connect is a Model Context Protocol server for readonly-first access to Oracle Database, Microsoft SQL Server, and MongoDB. Version 0.1.16 supports multiple named connections in a single YAML config, with features like multi-statement blocking, schema allow/denylists, sensitive field masking, and JSONL audit logs. It offers an interactive setup wizard that generates config files for Claude Code, Codex CLI, Gemini CLI, and Kimi CLI. The package requires Node.js >=20.10 and uses ESM exclusively. Key differentiators: Oracle Thin mode by default (no Instant Client needed), safe defaults (readonly, row limits, timeouts), and AI client auto-configuration.
npm install mcp-db-connectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run the setup wizard and use the package programmatically with environment variables for credentials.
Use import syntax or dynamic import(). If using Jest, add transformIgnorePatterns or set experiments.outputModule.
Use `npx mcp-db-connect setup` instead of `npx mcp-db-connect init`.
To use Thick mode, set oracledb.thick=true in your config and follow oracledb installation docs for Instant Client.
If you need to write data, set readonly: false in the connection config (not recommended).
Upgrade Node.js to v20.10 or later (recommended: v22 LTS).
Change to import: import mcpDbConnect from 'mcp-db-connect'
Set oracledb.thick=true in config and install Oracle Instant Client.
If you trust the query, set readonly: false for that connection.