MySQL MCP Server for Cursor
io.github.ranjian/mcp-mysql
Read-only MySQL MCP server with multi-connection profiles and safe SELECT queries.
client:Cursor
transport:stdio
runtime:pypi
Install MySQL MCP Server in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mcp-mysql": {
"type": "stdio",
"command": "uvx",
"args": [
"jj-mcp-mysql"
],
"env": {
"MCP_DB_PROFILES_FILE": "<MCP_DB_PROFILES_FILE>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs