go-mcp-mysql
Zero burden, ready-to-use Model Context Protocol (MCP) server for interacting with MySQL and automation. No Node.js or Python environment needed.
Overview
go-mcp-mysql is a ready-to-use Model Context Protocol (MCP) server designed for seamless interaction with MySQL databases and automation, eliminating the need for a Node.js or Python environment.
To use go-mcp-mysql, download the latest release or build it from source using Go. You can run the server using command line arguments or a Data Source Name (DSN) with custom options.
- Zero burden setup for MySQL interaction. - Supports CRUD operations on MySQL databases. - Read-only mode to prevent unintended write operations. - Ability to check query plans using the EXPLAIN statement before execution.
- Automating database interactions without complex setups.
- Performing safe read-only operations on MySQL databases.
- Executing and managing SQL queries efficiently.
Add to your AI client
Use these steps to connect go-mcp-mysql in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"go-mcp-mysql-zhwt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"go-mcp-mysql-zhwt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"go-mcp-mysql-zhwt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"go-mcp-mysql-zhwt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"go-mcp-mysql-zhwt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"go-mcp-mysql-zhwt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-go-mcp-mysql-zhwt"
]
}
}
}FAQ
Is go-mcp-mysql production-ready?
No, it is still a work in progress and may not be ready for production use.
Can I run go-mcp-mysql without Node.js or Python?
Yes, it is designed to work independently of those environments.
What license does go-mcp-mysql use?
It is licensed under the MIT license.