Skip to content

MCP Go MySQL

MySQL and MariaDB integration for Claude Desktop via the Model Context Protocol. Ten tools for queries, writes, analysis, and database management.

10 Tools

Queries, table inspection, writes, execution plan analysis, and server information.

Verb Classifier

Whitelist of allowed SQL verbs. Privilege management, filesystem access, and stacked statements are rejected before they reach the driver.

Row-count Gate

Writes affecting more than MAX_SAFE_ROWS rows require confirm_key. Catches the “ups, I forgot the WHERE” case without false positives.

Honest Errors

Driver errors pass through verbatim so the LLM can self-correct. No sanitization theatre.

Data Analysis

Query and explore data through natural language requests to Claude.

Database Management

Inspect tables, indexes, and views. Understand schema structure.

Query Optimization

Analyze execution plans with EXPLAIN to identify performance issues.

Reporting

Run aggregations and export structured results from your database.

AspectStatus
Versionv3.0.0
Known vulnerabilities0
Go version1.26.2
LicenseMIT
  1. Download and install the MCP server
  2. Configure your MySQL credentials in Claude Desktop
  3. Start interacting with your database using natural language

View the configuration guide →

Introduction

Overview of MCP Go MySQL, how it works, and database compatibility.

Configuration

Setup guide for Windows, macOS, and Linux.

Tools

Reference for all 10 available database tools.

Security

Security controls, audit logging, rate limiting, and error sanitization.