Best for
- Developers and data teams that need AI-assisted MySQL schema inspection or querying
- Workflows that prefer read-only database access by default
- Deployments requiring SSH, SSL/TLS, or PII-redaction capabilities
This server is suited to using MCP with Claude and other clients to inspect MySQL schemas and query data. It defaults to read-only access and offers SSH tunneling, multi-database mode, PII redaction, and SSL/TLS support. Write operations require explicit environment flags, so database privileges and credentials should be configured carefully.
An MCP server that gives Claude and other large language models access to MySQL databases for schema inspection and SQL queries. Access is read-only by default, with optional write operations controlled by environment flags.
Requires Node.js v20+, MySQL 5.7+ (8.0+ recommended), and a MySQL user with appropriate privileges. Start the server with npx and configure MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, and MYSQL_DB. Claude Desktop can use the JSON configuration shown in the README. Write operations are disabled by default; when needed, enable them individually with ALLOW_INSERT_OPERATION=true, ALLOW_UPDATE_OPERATION=true, or ALLOW_DELETE_OPERATION=true.
{"mcpServers":{"mcp_server_mysql":{"command":"npx","args":["-y","@benborla29/mcp-server-mysql"],"env":{"MYSQL_HOST":"127.0.0.1","MYSQL_PORT":"3306","MYSQL_USER":"root","MYSQL_PASS":"your_password","MYSQL_DB":"your_database"}}}}