Skip to content
InfratoApp
InfratoApp / Resources / MCP servers / mcp-server-mysql

mcp-server-mysql

mcp-server-mysql is an MCP server, listed under databases. It reaches mysql. Its repository has 2,173 GitHub stars and is licensed under MIT; we last read it on 2026-10-22.

This server implements the Model Context Protocol to provide read-only access to MySQL databases, allowing language models to inspect schemas and execute read-only queries.

Install

MCP servers are packaged differently from each other -- some run via npx, some as a Docker image, some as a plain script you clone and run. mcp-server-mysql’s own README did not state one plainly enough for this page to quote it rather than guess, so it will not guess. The repository below states it.

What it reaches, and what it needs

Reaches
mysql
Credential
○ none found

Maintenance

Stars
2173
State
listed
Licence
MIT
From the repository

A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

What mcp-server-mysql can do

1 tool documented in its README. An AI client calls these by name.

mysql_query
Execute SQL queries. Read-only by default. Write operations enabled per flag.

Read from the README; names are kept only if the README contains them.

mcp-server-mysql compared with similar servers

mcp-server-mysql compared with the closest alternatives, by services reached, credentials, stars, last update and licence
ServerReachesNeedsStarsLast updateLicence
mcp-server-mysql (this page)mysqlNone listed2,1732026-07-27MIT
dbhubmysql, postgres, sqlite(1 shared)None listed3,7022026-10-21MIT
mysql_mcp_servermysql(1 shared)MYSQL_PASSWORD1,4022026-08-02MIT
servermysql(1 shared)MYSQL_ROOT_PASSWORD8742025-08-09MIT
mcp-alchemymysql, postgresql, sqlite(1 shared)None listed4222026-10-15MPL-2.0
mysql-mcp-servermysql(1 shared)MYSQL_PASSWORD732026-09-22MIT

Ranked by services in common with mcp-server-mysql, then by stars. Figures are from each repository when we last read it.

Common questions about mcp-server-mysql

What does mcp-server-mysql do?
This server implements the Model Context Protocol to provide read-only access to MySQL databases, allowing language models to inspect schemas and execute read-only queries.
How do I install mcp-server-mysql?
Its README did not state an install command plainly enough for us to quote one, so we do not guess. The repository has the instructions: https://github.com/benborla/mcp-server-mysql
What does mcp-server-mysql connect to, and what does it need?
It reaches mysql.
Is mcp-server-mysql official and is it maintained?
We found nothing naming it as a vendor’s official server. Its repository has 2,173 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-07-27.
What licence does mcp-server-mysql use?
The repository declares the MIT licence.

More MCP servers for databases

All databases entries →

Learn this on Infrato