A zero-dependency Go MCP server for MySQL supporting CRUD, schema inspection, and optional read-only mode.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Go MCP Mysql.
nameIf provided, list tables with the specified name, same as SQL `SHOW TABLES LIKE '%name%'`. Otherwise, list all tables.
queryThe SQL query to create the table.
Zero burden, ready-to-use Model Context Protocol (MCP) server for interacting with MySQL and automation. No Node.js or Python environment needed. This server provides tools to do CRUD operations on MySQL databases and tables, and a read-only mode to prevent surprise write operations. You can also make the MCP server check the query plan by using a EXPLAIN statement before executing the query by adding a --with-explain-check flag.
Please note that this is a work in progress and may not yet be ready for production use.
Get the latest release and put it in your $PATH or somewhere you can easily access.
Or if you have Go installed, you can build it from source:
Please refer to MySQL DSN for more details.
Note: For those who put the binary outside of your $PATH, you need to replace go-mcp-mysql with the full path to the binary: e.g.: if you put the binary in the Downloads folder, you may use the following path:
--read-only flag to enable read-only mode. In this mode, only tools beginning with list, read_ and desc_ are available. Make sure to refresh/restart the MCP server after adding this flag.EXPLAIN ? statement to check whether the generated query plan matches the expected pattern. Add a --with-explain-check flag to disable this behavior.list_database
list_table
name: If provided, list tables with the specified name, same as SQL SHOW TABLES LIKE '%name%'. Otherwise, list all tables.create_table
query: The SQL query to create the table.alter_table
query: The SQL query to alter the table.desc_table
name: The name of the table to describe.read_query
query: The SQL query to execute.write_query
query: The SQL query to execute.update_query
query: The SQL query to execute.delete_query
query: The SQL query to execute.MIT
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/zhwt-go-mcp-mysql)<a href="https://allmcps.com/mcp/zhwt-go-mcp-mysql"><img src="https://allmcps.com/api/badge/zhwt-go-mcp-mysql?style=directory" alt="Go MCP Mysql on AllMCPs" /></a>