Install MySQL Legacy in Claude Code
claude mcp add mysql-legacy -e MYSQL_LEGACY_HOST=... -e MYSQL_LEGACY_USER=... -e MYSQL_LEGACY_PASSWORD=... -- npx -y mysql-legacy-mcp{
"mcpServers": {
"mysql-legacy": {
"command": "npx",
"args": [
"-y",
"mysql-legacy-mcp"
],
"env": {
"MYSQL_LEGACY_HOST": "...",
"MYSQL_LEGACY_USER": "...",
"MYSQL_LEGACY_PASSWORD": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the MySQL Legacy MCP server do?
Access legacy MySQL 5.0 to 5.6 databases: schema inspection and SELECT by default, with opt-in INSERT, UPDATE, DELETE and DDL.
Is the MySQL Legacy MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does MySQL Legacy run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add MySQL Legacy to Claude Code?
Run: claude mcp add mysql-legacy -e MYSQL_LEGACY_HOST=... -e MYSQL_LEGACY_USER=... -e MYSQL_LEGACY_PASSWORD=... -- npx -y mysql-legacy-mcp
More databases MCP servers
View allUrdb
GetMystAdmin/urdb-mcp
Search URDB's product integrity database for integrity scores, enshittification events and change tracking across consumer products.
Local YDB
astandrik/local-ydb-toolkit
Operate Docker-based local-ydb deployments locally or over SSH: bootstrap, diagnostics, auth hardening, storage workflows, dump/restore and upgrades.
Acmi
madezmedia/acmi
Persistent agent memory via ACMI — Profile/Signals/Timeline. 16 tools on Upstash Redis.
DataLink
pilat/mcp-datalink
Secure access to PostgreSQL, MySQL and SQLite databases with parameterized queries and schema inspection.
AgentTeam
RichardLemmon/AgentTeam
13 specialized AI agents collaborating via SQLite. 44 MCP tools. One-command install.
Nlqueries
nlqueries/nlqueries
Self-hosted natural-language-to-SQL engine with validation for PostgreSQL, MySQL, Snowflake, BigQuery and DuckDB, plus document QA and semantic caching.