LabscoMCP early access ↗
michael7736MCP SERVER

MySQL MCP Server by michael7736

Run SQL against a MySQL database from the conversation - reads and writes, with results back as JSON.

Relational SQL DatabasesCommunity

LABSCO SUMMARY

A database an assistant can change, not only read.

The tool set is small - a SELECT-only query tool, one tool each for CREATE TABLE, INSERT, UPDATE and DELETE, and execute_sql for any other statement, ALTER and DROP included - and most of it writes. That makes it useful for scaffolding a schema while prototyping, and it makes the privileges on the connecting user the thing worth deciding first.

What it is

A MySQL server with a small surface: read with SELECT, create tables, insert, update and delete rows, and run any other statement. Results come back as JSON, and each transaction is logged under its own ID.

What you get

  • A SELECT run against the database, with the rows back as JSON
  • A table created from a CREATE TABLE statement
  • Rows inserted, updated and deleted, and any other statement, ALTER and DROP included, run through execute_sql
  • Results returned as JSON, with transaction logging on each call

Requirements

A reachable MySQL server and its connection settings - host, port, user, password and database name - as environment variables. It writes as well as reads, so the grants on the MySQL user are what bound it.

Setup effort

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