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
Maintenance
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
| Server | Reaches | Needs | Stars | Last update | Licence |
|---|---|---|---|---|---|
| mcp-server-mysql (this page) | mysql | None listed | 2,173 | 2026-07-27 | MIT |
| dbhub | mysql, postgres, sqlite(1 shared) | None listed | 3,702 | 2026-10-21 | MIT |
| mysql_mcp_server | mysql(1 shared) | MYSQL_PASSWORD | 1,402 | 2026-08-02 | MIT |
| server | mysql(1 shared) | MYSQL_ROOT_PASSWORD | 874 | 2025-08-09 | MIT |
| mcp-alchemy | mysql, postgresql, sqlite(1 shared) | None listed | 422 | 2026-10-15 | MPL-2.0 |
| mysql-mcp-server | mysql(1 shared) | MYSQL_PASSWORD | 73 | 2026-09-22 | MIT |
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
- CodeGraphContext4,354 stars
- dbhub3,702 stars
- mysql_mcp_server1,402 stars
- server874 stars
- supabase-mcp-server833 stars
- atlas-mcp-server478 stars