description How to set up a secure MySQL MCP server for Cursor using QueryBear. Drop into .cursor/mcp.json. Step-by-step with read-only user and example queries. This guide walks through connecting ...
from mysql.connector import MySQLConnection, Error # Connect to the database db_connection = MySQLConnection(user='root', password='password', host='localhost ...