Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 13, 2026·2 min de lecture

go-mcp-mysql — MySQL MCP Server (Go Binary)

go-mcp-mysql is a Go-based MySQL MCP server you can install as one binary; supports DSN or flags and offers `--read-only` mode to reduce accidental writes.

MCP Hub
MCP Hub · Community
Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Needs Confirmation · 62/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Mcp
Installation
Go|Binary
Confiance
Confiance : Established
Point d'entrée
go install -v github.com/Zhwt/go-mcp-mysql@latest
Commande CLI universelle
npx tokrepo install 3bcd69f7-83f2-5ddb-b1ea-a205c43be4c9
Introduction

go-mcp-mysql is a Go-based MySQL MCP server you can install as one binary; supports DSN or flags and offers --read-only mode to reduce accidental writes.

Best for: agents that need database introspection + safe querying in MySQL

Works with: MySQL, MCP clients (Cursor/Claude Desktop), Go toolchain optional

Setup time: 3-10 minutes

Key facts (verified)

  • GitHub: 53 stars · 14 forks · pushed 2026-01-21.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-verified entrypoint: go install -v github.com/Zhwt/go-mcp-mysql@latest.

Main

  • Prefer --read-only when you first wire this into an agent, then explicitly enable writes only after you trust the prompt and tool boundaries.

  • Use the DSN method when you already have standardized MySQL DSNs across environments; use flag mode for quick local testing.

  • Treat explain checks as a safety net: the README documents an EXPLAIN-based plan check and a flag to disable it when needed.

Source-backed notes

  • README provides install options: download a release binary or run go install -v github.com/Zhwt/go-mcp-mysql@latest.
  • README shows MCP client config examples for both flag-based connection and DSN-based connection.
  • README documents optional flags including --read-only and --with-explain-check behavior notes.

FAQ

  • Do I need Node.js or Python?: No — README explicitly says no Node.js/Python environment is required.
  • Can I force read-only behavior?: Yes — --read-only limits tools to safer operations per README.
  • How do I configure credentials?: Use either flags (--host, --user, --pass, etc.) or a MySQL DSN string as shown in README.
🙏

Source et remerciements

Source: https://github.com/Zhwt/go-mcp-mysql > License: MIT > GitHub stars: 53 · forks: 14

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires