From mysql
Connects Claude to a MySQL database to explore schemas, execute queries, and generate code from table structures. Runs locally via npx and needs database credentials.
Ships in mysql. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@toolbox-sdk/[email protected]",
"--prebuilt",
"mysql",
"--stdio"
],
"env": {
"MYSQL_HOST": "${user_config.mysql_host}",
"MYSQL_PORT": "${user_config.mysql_port}",
"MYSQL_USER": "${user_config.mysql_user}",
"MYSQL_DATABASE": "${user_config.mysql_database}",
"MYSQL_PASSWORD": "${user_config.mysql_password}"
}
}
}
}Declared capabilities of this MCP server
Environment variables set when the server starts
MYSQL_HOST=${user_config.mysql_host}MYSQL_PORT=${user_config.mysql_port}MYSQL_USER=${user_config.mysql_user}MYSQL_DATABASE=${user_config.mysql_database}MYSQL_PASSWORD=${user_config.mysql_password}Command-line arguments passed to the server process
Server configuration and connection parameters
npxFirst indexed Jan 5, 2026
npx claudepluginhub googlecloudplatform/mysql-plugin --plugin mysql