mysql for Cursor
io.github.hughhan1/mysql
MySQL statements and transactions over MCP
client:Cursor
transport:stdio
runtime:oci
Install mysql in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mysql": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hughhan1/mysql@sha256:858da81df0d25bba99f485ae663208f2255b2278be711924f9b08032398e7093"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"CLOUD_SQL_INSTANCE": "<CLOUD_SQL_INSTANCE>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs