# dbmcp-mysql
[](https://crates.io/crates/dbmcp-mysql)
[](https://docs.rs/dbmcp-mysql)
[](https://github.com/haymon-ai/dbmcp/actions/workflows/ci.yml)
[](https://github.com/haymon-ai/dbmcp/blob/master/LICENSE)
MySQL / MariaDB backend for [dbmcp](https://dbmcp.haymon.ai) — the single-binary MCP server that lets your AI assistant talk to SQL databases.
## What you get
- `MysqlHandler` ready to plug into any `rmcp::ServerHandler`-compatible MCP transport
- Full MCP tool surface: `listDatabases`, `listTables` (with `detailed: true`), `listViews`, `listTriggers`, `listFunctions`, `listProcedures`, `readQuery`, `writeQuery`, `explainQuery`, `createDatabase`, `dropDatabase`, `dropTable`
- Read-only by default — write tools hidden unless explicitly disabled
- `MULTI_STATEMENTS` cleared at connect time
- Parameterised queries everywhere — user values never touch SQL strings
- Optional PII redaction on every `readQuery` payload
- MariaDB compatible — same handler
See the main crate: **[dbmcp](https://dbmcp.haymon.ai)** · [Website](https://dbmcp.haymon.ai) · [Docs](https://dbmcp.haymon.ai/docs/)