 > This project is a Java conversion of a Python
MySQL MCP server exists for a simple reason — assistants are far more useful when they can act on MySQL directly instead of describing what you should do. > This project is a Java conversion of a Python codebase from > a.
This project was created as a learning exercise to explore MCP (Model Context Protocol) concepts.
The server ships on PyPI as mysql-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
You will need 5 environment variables: MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by youngsu5582; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MySQL's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
{
"mcpServers": {
"server-mysql-youngsu5582": {
"command": "uvx",
"args": ["mysql-mcp-server"],
"env": {
"MYSQL_HOST": "your-value",
"MYSQL_PORT": "your-value",
"MYSQL_USER": "your-value",
"MYSQL_PASSWORD": "your-value",
"MYSQL_DATABASE": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | Optional |
| MYSQL_PORT | Configuration value read at startup. | Optional |
| MYSQL_USER | Configuration value read at startup. | Optional |
| MYSQL_PASSWORD | Configuration value read at startup. | Optional |
| MYSQL_DATABASE | Configuration value read at startup. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.