MySQL MCP Server

Author:@kevinwatt
View on GitHub

Overview

MySQL MCP Server is a tool that connects Large Language Models (LLMs) to MySQL databases, enabling secure data access and management.

To get started, install the server using npm and set up your MySQL connection details within the Dive Desktop application.

Its key features include executing SELECT queries, listing tables, and viewing schemas for read tasks. For writes, it supports INSERT, UPDATE, and DELETE operations with transactions and parameterized queries for safety.

Security measures feature a read-only mode, enforced limits on query length and result size, performance monitoring, and automatic transaction management.

Common use cases are allowing LLMs to query databases safely and perform controlled data modifications, often integrated with platforms like Dive Desktop for better database workflows.

It is compatible with MySQL versions that work with Node.js 18+ and the MCP protocol. Usage is subject to configurable limits on query length and result size to maintain performance and security.