Zhwt/go-mcp-mysql
Free易于使用、零依赖的 MySQL MCP 服务器 (Go),具有可配置的只读模式和模式检查。
About Zhwt/go-mcp-mysql
go-mcp-mysql is a zero-dependency, ready-to-use Model Context Protocol (MCP) server written in Go for interacting with MySQL databases. It eliminates the need for Node.js or Python environments, providing a lightweight binary that can be easily deployed. The server supports full CRUD operations on MySQL databases and tables, with a configurable read-only mode to prevent accidental write operations. It also includes an optional EXPLAIN-check feature that validates query plans before execution, enhancing safety. Tools are organized into schema tools (list_database, list_table, create_table, alter_table, desc_table) and data tools (read_query, write_query). Configuration can be done via command-line arguments or a DSN string. Note: this project is a work in progress and may not yet be production-ready.
Key Features
Pros & Cons
- No runtime dependencies – works with just a Go binary
- Easy setup – configure via CLI arguments or DSN
- Read-only mode adds safety for production use
- EXPLAIN-check helps prevent dangerous queries
- Open source and free to use
- Project is a work in progress and may not be production-ready
- Limited to MySQL – no support for other databases
- No built-in authentication or user management beyond MySQL credentials