#7979th of 86 in MCP servers for developers

mysql_mcp_server

MCP server that lets AI clients query and explore MySQL databases

Stars
1.4k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Python
Stars, last 30 weeks+226
3 Apr 2026: 1,179 stars10 Apr 2026: 1,192 stars17 Apr 2026: 1,204 stars24 Apr 2026: 1,213 stars1 May 2026: 1,222 stars8 May 2026: 1,229 stars15 May 2026: 1,233 stars22 May 2026: 1,239 stars29 May 2026: 1,251 stars5 Jun 2026: 1,265 stars12 Jun 2026: 1,278 stars19 Jun 2026: 1,290 stars26 Jun 2026: 1,297 stars3 Jul 2026: 1,306 stars10 Jul 2026: 1,316 stars17 Jul 2026: 1,320 stars24 Jul 2026: 1,331 stars31 Jul 2026: 1,338 stars7 Aug 2026: 1,344 stars14 Aug 2026: 1,351 stars21 Aug 2026: 1,355 stars28 Aug 2026: 1,363 stars4 Sept 2026: 1,372 stars11 Sept 2026: 1,378 stars18 Sept 2026: 1,384 stars25 Sept 2026: 1,386 stars2 Oct 2026: 1,391 stars9 Oct 2026: 1,396 stars16 Oct 2026: 1,398 stars23 Oct 2026: 1,402 stars30 Oct 2026: 1,405 stars

1,179 on 3 Apr 20261,405 on 30 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Python MCP server exposing a MySQL database through tools for running SQL, reading schema metadata and sampling table rows. It runs over stdio or SSE/HTTP, supports SSL and SSH tunneling, and offers a multi-database mode when MYSQL_DATABASE is unset. Two MCP prompts, explore_database and analyze_table, wrap the schema and sampling tools.

Who it is for: Developers connecting Claude or other MCP clients to MySQL databases

Strengths

  • Three tools: execute_sql, get_schema_info, get_table_sample (sample capped at 20 rows)
  • Built-in SSH tunneling and SSL modes (DISABLED to VERIFY_IDENTITY) for remote databases
  • Identifier whitelist on schema and sample tools; passwords and SSH keys masked in logs
  • Installs from PyPI and runs via uvx; stdio and SSE transports

Weaknesses

  • execute_sql permits INSERT, UPDATE and DELETE; no read-only mode is documented
  • SSE transport has no authentication and binds 0.0.0.0 by default
  • Single SQL statements only; multi-statement queries like USE db; SELECT fail
  • Claude hosts do not find .env; credentials must go in the MCP config env block

What it needs

  • no GPU
  • Docker
  • Needs MySQL server, uv (for uvx), SSH jump host (optional)
  • port 8000

Quick answers

Is mysql_mcp_server open source?

Yes. Its code is on GitHub under the MIT license.

Can you run mysql_mcp_server with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in MCP servers for developers

See all 86
Also in MCP servers for developers
RankProjectScore
1codegraphLocal code knowledge graph that coding agents query over MCP76.1k starsMIT96 out of 100
2gitnexusCode knowledge graph exposed to coding agents through MCP tools Live demo ↗ (opens in a new tab)48.2k starscustom license96 out of 100
3serenaMCP server giving coding agents symbol-level code search, editing and refactoring31k starscustom license91 out of 100
#4n8n-mcpMCP server exposing n8n node docs, templates and workflow management to AI assistants Live demo ↗ (opens in a new tab)23.2k starsMIT90 out of 100
#5context7MCP server and CLI that feed current library docs to coding agents64k starsMIT89 out of 100