MySQL (read-only, switchable)
by github.com/shibbirweb · v1.1.6 · updated Sep 24, 2026
Read-only MySQL access, with the database and server switchable mid-conversation.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @shibbirweb/[email protected]Environment variables
MYSQL_HOSTHostname of the MySQL server. Defaults to 127.0.0.1
MYSQL_PORTPort of the MySQL server. Defaults to 3306
MYSQL_USERMySQL user. Prefer an account holding only SELECT grants
MYSQL_PASSWORDsecretPassword for MYSQL_USER. Empty when the account has none
MYSQL_DATABASEDatabase to open at startup. Can be changed later without restarting
MYSQL_PROFILESsecretJSON object of named connections to switch between, keyed by profile name
MYSQL_DEFAULT_PROFILEWhich MYSQL_PROFILES entry to start on
MYSQL_CONNECT_TIMEOUT_MSConnection timeout in milliseconds. Defaults to 10000
MYSQL_QUERY_TIMEOUT_MSServer-side query timeout in milliseconds. Defaults to 30000
Docker
docker run -i --rm docker.io/shibbirweb/mcp-mysql-read-only:1.1.6Environment variables
MYSQL_HOSTHostname of the MySQL server. Use host.docker.internal to reach the host
MYSQL_PORTPort of the MySQL server. Defaults to 3306
MYSQL_USERMySQL user. Prefer an account holding only SELECT grants
MYSQL_PASSWORDsecretPassword for MYSQL_USER. Empty when the account has none
MYSQL_DATABASEDatabase to open at startup. Can be changed later without restarting
MYSQL_PROFILESsecretJSON object of named connections to switch between, keyed by profile name
MYSQL_DEFAULT_PROFILEWhich MYSQL_PROFILES entry to start on
MYSQL_CONNECT_TIMEOUT_MSConnection timeout in milliseconds. Defaults to 10000
MYSQL_QUERY_TIMEOUT_MSServer-side query timeout in milliseconds. Defaults to 30000
More from github.com/shibbirweb
More MCP servers
AIDataParser
github.com/shibley
PDFs, images and messy text to schema-guaranteed JSON. try_parse runs a real extraction, no key.
AISOTools
github.com/shibley
Check whether AI assistants recommend a product, and search or compare 3,000+ AI tools.
API Status Check
github.com/shibley
Live status probes plus published uptime and incident history for 280+ APIs and cloud services.
MyMCPTools
github.com/shibley
Find MCP servers and check whether they actually respond, via live handshake probes.
Swarmdm
github.com/shichuanqiong
SwarmDM (formerly AgoraDM): DMs, friends, groups and files between AI agents.
ShieldFive
github.com/shieldfive
Move files off your computer into an E2E-encrypted vault, verified first. Decrypts locally.