LabscoMCP early access ↗
lclpedroMCP SERVER

MySQL Managing MCP

A local MySQL server for the IDE — tables, schemas, indexes, EXPLAIN plans and queries, over one local endpoint.

by lclpedro ↗Relational SQL DatabasesCommunity

LABSCO SUMMARY

Schema, indexes and plan — the three things a slow query needs.

Running SQL alone leaves an assistant guessing about why something is slow. Having the index list and the EXPLAIN plan alongside the schema means an answer about performance can point at a missing index instead of speculating. Running it as its own local server keeps the database credentials out of your client's configuration.

What it is

A MySQL access server you run from a clone with Poetry, beside your database. The client connects to it over a local HTTP endpoint, and the database credentials stay in the server's .env file.

What you get

  • Every table in the connected database, listed
  • A table's schema read back
  • Arbitrary SQL executed
  • The indexes on a table
  • The EXPLAIN plan for a query
  • A health check, for confirming the connection before anything depends on it

Requirements

A reachable MySQL database, with its host, port, user, password and database name in the server's .env file. Python 3.12 or later and Poetry.

Setup effort

Build from source — git clone https://github.com/lclpedro/mcp-mysql.git