A Model Context Protocol (MCP) server connecting Claude Code and other MCP clients to MySQL/MariaDB databases. Version 0.11.1 (2025) is stable, with active development on GitHub. It provides 39 tools across schema introspection, querying, profiling, ERD generation, stored programmability, diagnostics, and cross-database diffing, plus 2 resources and 4 prompts. Key differentiators vs alternatives: built-in SSH tunnel with host fingerprint pinning, SSL/TLS support, read-only-by-default with per-connection write control, client-side blocking of LOAD DATA LOCAL INFILE, secrets via env/file indirection, MCP signal cancellation mapping to KILL QUERY, and a CLI for managing connections. Ships TypeScript types, requires Node >=20, and supports both local stdio and remote Streamable HTTP transport with bearer auth.
npm install querybridge-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of querybridge-mcp server with a single MySQL connection in read-only mode, using environment variables for credentials.
Upgrade Node.js to v20 or later.
Migrate to secrets indirection: password: { env: 'MYSQL_PASSWORD' }.Set ssh.fingerprint to 'ignore' (not recommended) or update the stored fingerprint.
Remove mysql2 from your dependencies; querybridge-mcp uses its own bundled version.
Set readOnly: false for that connection, or grant the 'SESSION_VARIABLES_ADMIN' privilege.
npm install querybridge-mcp --save; ensure your project uses ESM (type: 'module' in package.json) or use dynamic import() if locked into CJS.
Verify MySQL is running: mysql -u root -p -h 127.0.0.1. For SSH tunnels, check the tunnel is established and the local port matches the one in config.
Use: import { Server } from 'querybridge-mcp' (not: import Server from 'querybridge-mcp').Set readOnly: false in config for that connection, or GRANT SESSION_VARIABLES_ADMIN ON *.* TO 'user'@'host';
Update the 'fingerprint' field in the SSH config to the new host key, or set to 'ignore' (insecure).