Zhwt/go-mcp-mysql

View on GitHub ↗

Zero burden, ready-to-use Model Context Protocol (MCP) server for interacting with MySQL and automation. No Node.js or Python environment needed.

65 ★18 forksGoUpdated 7mo ago

What you need to know

MySQL MCP server written in Go that provides CRUD operations, a read-only mode, and an EXPLAIN flag for SQL analysis, with no Node.js or Python runtime required.

Install

go install
Download a prebuilt release binary

Usage

  • Register the compiled binary as an MCP server in your client
  • Set MySQL connection details via environment variables

Key features

  • CRUD operations on MySQL databases
  • Read-only mode for safety
  • EXPLAIN support for query plan inspection
  • Single binary, no runtime dependencies

Best for

Developers who want a lightweight, self-contained Go-based MySQL MCP server without Node or Python runtimes.

Caveats

  • Requires Go toolchain or a release binary to run
Clients: Claude Desktop · Any MCP-compatible client

Reviewed 2026-08-11

Topics

mcpmcp-servermodel-context-protocolmysql
Stars
65★
Forks
18
Language
Go
License
MIT
Created
2025-03-10
Last push
2026-01-21