MySQL Query MCP Server v1.2.2 is a read-only MCP server for AI assistants (Cursor IDE, Windsurf, Claude Desktop) to execute MySQL queries and explore database structures via the Model Context Protocol. It supports SELECT, SHOW, DESCRIBE queries with SSL, timeouts, and predefined environments (local, development, staging, production). Released under MIT, it is actively maintained with a focus on AI-tool integration and security (read-only enforcement). Ships TypeScript types. Requires Node >=22.13.0.
npm install mysql-query-mcp-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Starts the MySQL MCP server programmatically with READ-ONLY local database access, awaiting AI assistant connections.
Upgrade Node.js to >=22.13.0 via nvm or official installer.
Ensure your queries are read-only. If you need write access, this server is intentionally restrictive.
Use one of the predefined environment variable prefixes (LOCAL_, DEVELOPMENT_, STAGING_, PRODUCTION_).
Set MCP_MYSQL_REJECT_UNAUTHORIZED=true in production and ensure your DB server has a valid SSL certificate.
Set LOCAL_DB_HOST in your MCP configuration or environment variables.
Install globally: npm install -g mysql-query-mcp-server, or run with npx.
Only use SELECT, SHOW, or DESCRIBE queries.
Check database server availability, port, and SSL settings. Increase MYSQL_TIMEOUT if applicable.
No dependency data recorded yet.