This MCP server provides a comprehensive interface for managing databases using natural language, supporting PostgreSQL, MySQL, and SQLite with features like connection groups, automatic rollback, and schema introspection.
From the registry: MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.
$ npm install -g postgres mysql2 sql.jsPlease install the `database-mcp` MCP server into my current AI client (that's you).
Optional prerequisites:
- Install database drivers — Install only the driver(s) you need globally: postgres (PostgreSQL), mysql2 (MySQL), or sql.js (SQLite). Run: `npm install -g postgres mysql2 sql.js`
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","@cocaxcode/database-mcp@latest"]
- optional environment variables:
- `DATABASE_MCP_DIR`: Global storage directory (example: `~/.database-mcp/`)
- `DATABASE_MCP_MAX_ROLLBACKS`: Max rollback snapshots per project (example: `1000`)
- `DATABASE_MCP_MAX_HISTORY`: Max history entries per project (example: `5000`)
Note: Supports PostgreSQL, MySQL, SQLite. Credentials stored locally.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.MCP server for interacting with the Supabase platform