Main
Prefer
--read-onlywhen you first wire this into an agent, then explicitly enable writes only after you trust the prompt and tool boundaries.Use the DSN method when you already have standardized MySQL DSNs across environments; use flag mode for quick local testing.
Treat explain checks as a safety net: the README documents an
EXPLAIN-based plan check and a flag to disable it when needed.
Source-backed notes
- README provides install options: download a release binary or run
go install -v github.com/Zhwt/go-mcp-mysql@latest. - README shows MCP client config examples for both flag-based connection and DSN-based connection.
- README documents optional flags including
--read-onlyand--with-explain-checkbehavior notes.
FAQ
- Do I need Node.js or Python?: No — README explicitly says no Node.js/Python environment is required.
- Can I force read-only behavior?: Yes —
--read-onlylimits tools to safer operations per README. - How do I configure credentials?: Use either flags (
--host,--user,--pass, etc.) or a MySQL DSN string as shown in README.