#2525th of 26 in MCP servers
mcp-server-mysql
MCP server that lets LLMs inspect and query MySQL databases
- Stars
- 2.2k
- License
- MIT
- Last commit
- Jul 2026
- Last release
- Jun 2026
- Language
- JavaScript
1,562 on 25 Apr 20262,224 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Exposes a MySQL database to MCP clients such as Claude Code and Claude Desktop through a single `mysql_query` tool and a `mysql://tables` resource for schema metadata. Queries are read-only unless INSERT, UPDATE or DELETE are enabled with env flags. It also supports SSH tunnels, multi-database mode, per-schema permissions, PII redaction and an HTTP remote mode with bearer auth.
Who it is for: Developers connecting Claude or other MCP clients to MySQL
Strengths
- Read-only by default; INSERT, UPDATE and DELETE each need a separate env flag
- Per-schema read/write permissions and multi-database mode
- Built-in SSH tunnel, SSL/TLS with optional mTLS, and PII masking of results
- Runs via npx with no install; also offers HTTP transport with bearer token
Weaknesses
- Only one query tool, so all access goes through raw SQL
- MySQL only; no other database engines
- Requires Node.js 20+ and a MySQL user with suitable privileges
- Quick-install examples use the root user and a plaintext password in env
What it needs
- no GPU
- Docker
- Needs Node.js 20+, MySQL 5.7+ (8.0+ recommended)
- Models: Claude Code, Claude Desktop, Any MCP client
What changed
- v2.0.9 ↗ (opens in a new tab)Security fix
“PII Redaction — New ENABLEPIIREDACTION flag scrubs emails, phone numbers, SSNs, credit cards, and IPv4 addresses from query results before they reach the LLM. Includes column-name heuristics, regex v…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in MCP servers
See all 26| Rank | Project | Score |
|---|---|---|
| 1 | serversReference MCP servers for files, git, fetch, memory and time | 94 out of 100 |
| 2 | apify-mcp-serverOfficial MCP server exposing Apify Store Actors as tools for web scraping | 89 out of 100 |
| 3 | ha-mcpMCP server that lets AI assistants configure and control Home Assistant | 88 out of 100 |
| #4 | xiaohongshu-mcpMCP server that lets AI clients post, search and comment on Xiaohongshu | 87 out of 100 |
| #5 | mcp-atlassianMCP server exposing Jira and Confluence tools to AI assistants | 80 out of 100 |