MySQL Legacy MCP Server
Inspect and query MySQL 5.0–5.6; opt-in INSERT/UPDATE/DELETE/DDL. Live-verified 5.0–8.0.
MySQL Legacy MCP scores 63 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 11 tools. Filed under Databases. GitHub shows 0 stars. Package registries report about 51 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
84/100 for listing completeness. Lost points: 6 of 11 tools barely described, short summary.
How quality is graded
Where the 63 comes from
22 + 15 + 2 + 10 + 4 + 10 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rufflet-mysql-legacy-mcp": { "command": "npx", "args": [ "-y", "mysql-legacy-mcp@0.2.1" ], "env": { "MYSQL_LEGACY_HOST": "", "MYSQL_LEGACY_USER": "", "MYSQL_LEGACY_PASSWORD": "YOUR_MYSQL_LEGACY_PASSWORD", "MYSQL_LEGACY_PORT": "3306", "MYSQL_LEGACY_DATABASE": "", "MYSQL_LEGACY_HIDE_SYSTEM_DATABASES": "true", "MYSQL_LEGACY_QUERY_TIMEOUT": "10000", "MYSQL_LEGACY_MAX_ROWS": "200", "MYSQL_LEGACY_MAX_RESULT_BYTES": "262144", "MYSQL_LEGACY_CONNECT_TIMEOUT": "10000", "MYSQL_LEGACY_POOL_SIZE": "5", "MYSQL_LEGACY_ALLOW_INSERT": "false", "MYSQL_LEGACY_ALLOW_UPDATE": "false", "MYSQL_LEGACY_ALLOW_DELETE": "false", "MYSQL_LEGACY_ALLOW_DDL": "false", "MYSQL_LEGACY_DISABLE_READ_ONLY_TRANSACTIONS": "false" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MYSQL_LEGACY_HOST | Required | Database host or local tunnel endpoint |
MYSQL_LEGACY_USER | Required | Dedicated database reader account |
MYSQL_LEGACY_PASSWORDSecret | Required | Nonempty database account password |
MYSQL_LEGACY_PORT | Optional | TCP port, 1–65535 |
MYSQL_LEGACY_DATABASE | Optional | Optional default database |
MYSQL_LEGACY_HIDE_SYSTEM_DATABASES | Optional | Hide mysql and information_schema from listings |
MYSQL_LEGACY_QUERY_TIMEOUT | Optional | Driver query timeout, 100–60000 milliseconds |
MYSQL_LEGACY_MAX_ROWS | Optional | SELECT response row limit, 1–1000 |
MYSQL_LEGACY_MAX_RESULT_BYTES | Optional | SELECT row-data JSON byte limit, 1024–1048576 |
MYSQL_LEGACY_CONNECT_TIMEOUT | Optional | Connection-establishment timeout, 100–60000 milliseconds |
MYSQL_LEGACY_POOL_SIZE | Optional | Pooled connection limit, 1–50 |
MYSQL_LEGACY_ALLOW_INSERT | Optional | Enable the mysql_legacy_insert tool |
MYSQL_LEGACY_ALLOW_UPDATE | Optional | Enable the mysql_legacy_update tool (WHERE clause always required) |
MYSQL_LEGACY_ALLOW_DELETE | Optional | Enable the mysql_legacy_delete tool (WHERE clause always required) |
MYSQL_LEGACY_ALLOW_DDL | Optional | Enable the mysql_legacy_ddl tool (table-level statements only) |
MYSQL_LEGACY_DISABLE_READ_ONLY_TRANSACTIONS | Optional | Disable the read-only transaction wrap around mysql_legacy_select on MySQL 5.6.5+ |
Tools11Tool docs quality grade D
All capabilitiesmysql_legacy_ddltoolRun one table-level CREATE/ALTER/DROP/TRUNCATE/RENAME statement (opt-in, MYSQLLEGACYALLOWDDL)
Run one DELETE statement with a required WHERE clause (opt-in, MYSQLLEGACYALLOWDELETE)
Show columns
Run one INSERT statement (opt-in, MYSQLLEGACYALLOWINSERT)
List databases
Show indexes
List tables and views
Return VERSION()
Run one parsed SELECT statement
Show table DDL
Run one UPDATE statement with a required WHERE clause (opt-in, MYSQLLEGACYALLOWUPDATE)
About
MySQL Legacy MCP
MCP server for legacy MySQL 5.0–5.6 databases through stdio. The package is on npm as mysql-legacy-mcp and in the official MCP Registry as io.github.Rufflet/mysql-legacy-mcp.
It uses MySQL 5.1-compatible SQL and SHOW metadata queries. Live MCP tests cover MySQL 5.0.51a, 5.1.73, 5.5.62, and 5.6.51. It is deliberately small: read-only by default, with INSERT/UPDATE/DELETE/DDL as opt-in tools disabled unless explicitly enabled; no TLS configuration, and no custom authentication or charset options.
Is this for you?
- You need an AI agent to inspect a MySQL 5.0, 5.1, 5.5, or 5.6 database.
- Your current MySQL MCP server assumes MySQL 5.7+, JSON functions, or newer
information_schemafields. - You need schema inspection and SELECT queries, with write operations off by default and opt-in per statement type.
If you are seeing ER_NOT_SUPPORTED_AUTH_MODE, HANDSHAKE_INSECURE_AUTH, Old password authentication is not supported, legacy TLS errors, or garbled cp1251 / latin1 text, read Troubleshooting first. Those symptoms are not all solved by this package.
Requirements
- Node.js 18.14.1 or later
- npm
- A dedicated MySQL account with only the required read and metadata privileges
Where it is listed
Installation is always local stdio via npm (npx -y mysql-legacy-mcp). Directory pages do not make that faster; they are discovery indexes. The official MCP Registry is the machine-readable source (io.github.Rufflet/mysql-legacy-mcp) that aggregators ingest, including env-var metadata from server.json. Clients that speak that registry can pre-fill configuration from it.
Maintainer submission status for other directories is in docs/RELEASE_CHECKLIST.md.
Quick install
Claude Code
claude mcp add --transport stdio mysql-legacy \
--env MYSQL_LEGACY_HOST=127.0.0.1 \
--env MYSQL_LEGACY_USER=legacy_reader \
--env MYSQL_LEGACY_PASSWORD=replace-with-a-secret \
--env MYSQL_LEGACY_DATABASE=legacy_app \
-- npx -y mysql-legacy-mcp
Codex
codex mcp add mysql-legacy \
--env MYSQL_LEGACY_HOST=127.0.0.1 \
--env MYSQL_LEGACY_USER=legacy_reader \
--env MYSQL_LEGACY_PASSWORD=replace-with-a-secret \
--env MYSQL_LEGACY_DATABASE=legacy_app \
-- npx -y mysql-legacy-mcp
Cursor and other clients
{
"mcpServers": {
"mysql-legacy": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mysql-legacy-mcp"],
"env": {
"MYSQL_LEGACY_HOST": "127.0.0.1",
"MYSQL_LEGACY_USER": "legacy_reader",
"MYSQL_LEGACY_PASSWORD": "replace-with-a-secret",
"MYSQL_LEGACY_DATABASE": "legacy_app"
}
}
}
}
Use the schema required by your client. Full copy-paste instructions for Claude Desktop, Codex, VS Code, Windsurf, Gemini, Trae, Qoder, and more are in the Installation guide.
Compatibility
| MySQL | Status |
|---|---|
| 5.0 | Verified: 5.0.51a |
| 5.1 | Verified: 5.1.73 |
| 5.5 | Verified: 5.5.62 |
| 5.6 | Verified: 5.6.51 |
| 5.7 | Verified reference only: 5.7.44 |
| 8.0 | Not a target; default caching_sha2_password is unsupported |
Each tested target passed all 11 tools — the 7 read-only tools plus the 4 opt-in write tools, with MYSQL_LEGACY_ALLOW_* flags checked both left at their default false and explicitly enabled — through a real MCP stdio session. On MySQL 5.6.5 and later, this also exercised the actual START TRANSACTION READ ONLY path used by mysql_legacy_select; below that version it exercised the silent plain-query fallback. Exact sources, test conditions, and the MySQL 8.0 boundary are recorded in the compatibility audit. This does not cover pre-4.1 old_password, custom connection charsets, TLS, or your server's exact patch level.
Compared with modern MySQL MCP servers
| Server | Stated MySQL baseline | Focus |
|---|---|---|
mysql-legacy-mcp | Verified live: 5.0–5.6 | Legacy schema inspection and SELECT by default; opt-in INSERT/UPDATE/DELETE/DDL, with UPDATE/DELETE always requiring a WHERE clause |
@benborla29/mcp-server-mysql | 5.7+; 8.0+ recommended | Modern MySQL features such as TLS, SSH tunnels, and optional writes |
This is a compatibility distinction, not a benchmark: choose the modern server for its modern-database features.
Features
- Read-only
SELECTtool with parser checks and result-size limits, wrapped in a read-only transaction on MySQL 5.6.5+ SHOW-based database, table, column, CREATE TABLE, and index inspection- Opt-in INSERT/UPDATE/DELETE/DDL tools, each disabled by default and gated by its own
MYSQL_LEGACY_ALLOW_*flag; UPDATE and DELETE always require a WHERE clause - A small pooled set of MySQL connections (
MYSQL_LEGACY_POOL_SIZE); no reliance on CTEs, JSON functions, or modern metadata columns
Tools
| Tool | Purpose |
|---|---|
mysql_legacy_ping | Return VERSION() |
mysql_legacy_select | Run one parsed SELECT statement |
mysql_legacy_insert | Run one INSERT statement (opt-in, MYSQL_LEGACY_ALLOW_INSERT) |
mysql_legacy_update | Run one UPDATE statement with a required WHERE clause (opt-in, MYSQL_LEGACY_ALLOW_UPDATE) |
mysql_legacy_delete | Run one DELETE statement with a required WHERE clause (opt-in, MYSQL_LEGACY_ALLOW_DELETE) |
mysql_legacy_ddl | Run one table-level CREATE/ALTER/DROP/TRUNCATE/RENAME statement (opt-in, MYSQL_LEGACY_ALLOW_DDL) |
mysql_legacy_list_databases | List databases |
mysql_legacy_list_tables | List tables and views |
mysql_legacy_describe_table | Show columns |
mysql_legacy_show_create_table | Show table DDL |
mysql_legacy_list_indexes | Show indexes |
Documentation
- Installation guide — client-specific setup
- Configuration — environment variables, privileges, and security limits
- Troubleshooting — authentication, TLS, encoding, and startup errors
- Compatibility audit — reproducible version evidence
- Roadmap — deliberately deferred work and why
Why this exists
This project came from a QA/fullstack workflow that needed AI-assisted inspection of a production MySQL 5.1 database. It is a focused utility for exploring legacy schemas and preparing migrations.
Contributing
See CONTRIBUTING.md for how to propose changes, run checks locally, and what evidence a compatibility claim needs. Quick start:
npm ci
npm run check
npm run smoke:static
For authorized database testing, see the smoke-test instructions in the compatibility audit.
License
MIT.
Frequently asked questions
What is MySQL Legacy MCP Server?
Inspect and query MySQL 5.0–5.6; opt-in INSERT/UPDATE/DELETE/DDL. Live-verified 5.0–8.0.
How do I install MySQL Legacy MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. MySQL Legacy MCP Server runs locally from the npm package mysql-legacy-mcp with the command npx -y mysql-legacy-mcp@0.2.1.
Is MySQL Legacy MCP Server free and open source?
Yes. MySQL Legacy MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does MySQL Legacy MCP Server support remote (HTTP) connections?
No remote endpoint is listed for MySQL Legacy MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does MySQL Legacy MCP Server provide?
MySQL Legacy MCP Server provides 11 tools, including mysql_legacy_ddl, mysql_legacy_delete, mysql_legacy_describe_table, and mysql_legacy_insert. See the full tool list for descriptions and parameters.
How is MySQL Legacy MCP Server's trust score calculated?
MySQL Legacy MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.