MySQL (security-first) for Cursor
io.github.kurok1/mcp-server-mysql
Security-first MySQL MCP server with AST validation, table whitelist, schema resources, and audit.
client:Cursor
transport:stdio
runtime:oci
Install MySQL (security-first) in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mcp-server-mysql": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kurok1/mcp-server-mysql:2.1.0"
],
"env": {
"MYSQL_MCP_PASSWORD": "<MYSQL_MCP_PASSWORD>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs