MySQL MCP
by github.com/gistrec · v1.1.1 · updated Nov 4, 2026
MCP server for one MySQL database: schema, read-only queries and guarded writes.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
MYSQL_HOSTDatabase host.
MYSQL_PORTDatabase port.
MYSQL_USERrequiredMySQL user. Use one with the least privileges the task needs, never root.
MYSQL_PASSsecretPassword for that user. Treat it as a secret; MYSQL_PASS_FILE reads it from a file instead.
MYSQL_DBrequiredThe one database this server is bound to. No tool can leave it.
MYSQL_SSLRequire a TLS connection to the server.
MYSQL_SSL_CAPath to the CA bundle verifying the server certificate; implies MYSQL_SSL.
ALLOW_INSERT_OPERATIONAllow INSERT statements through the execute tool.
ALLOW_UPDATE_OPERATIONAllow UPDATE statements through the execute tool.
ALLOW_DELETE_OPERATIONAllow DELETE statements through the execute tool.
MYSQL_MAX_ROWSRow cap for one read; the result is marked truncated when it is hit.
MYSQL_TIMEOUT_MSStatement timeout in milliseconds; the connection is dropped on expiry.
More from github.com/gistrec
More MCP servers
SMS en Masse
github.com/git-acet
Envoyez des SMS et gérez vos campagnes directement depuis vos agents IA.
Sendpookie
github.com/git-akki
Create and send cinematic digital gifts for birthdays and anniversaries via Claude.
duke-book
github.com/gitHubDujianfeng
Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP.
Amanchain
github.com/gitajhd
AmanChain: quantum-resistant x402 payments. Remote MCP, 50 paid services. USDC on Base or AMAN.
Amanchain Mcp
github.com/gitajhd
59 pay-per-call AI services as MCP tools with automatic x402 USDC-on-Base payment.
AppCrane
github.com/gitayg
Deploy and manage apps on your own AppCrane instance, the self-hosted PaaS for AI-built apps.