MySQL
🗄️ Data & Files
Connect to MySQL databases, run queries, inspect schemas, and manage tables. Full read/write support for MySQL and MariaDB.
Tools (5)
Client configuration
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@f4ww4z/mcp-mysql-server@0.1.0"
],
"env": {
"MYSQL_HOST": "your-mysql-host-here",
"MYSQL_USER": "your-mysql-user-here",
"MYSQL_PASSWORD": "your-mysql-password-here",
"MYSQL_DATABASE": "your-mysql-database-here"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@f4ww4z/mcp-mysql-server@0.1.0"
],
"env": {
"MYSQL_HOST": "your-mysql-host-here",
"MYSQL_USER": "your-mysql-user-here",
"MYSQL_PASSWORD": "your-mysql-password-here",
"MYSQL_DATABASE": "your-mysql-database-here"
},
"type": "stdio"
}
}
}Replace the placeholders before connecting. Authorize in your client when prompted.
The Cursor JSON also works in Claude Desktop's local MCP configuration. Install the required runtime and local software first.