The server provides two tools: - `connect_database`: Connects to a specific MySQL database - `database` parameter: Name of the database to connect to
If you already use Mysqldb, the mysqldb mcp server is the piece that lets your assistant work with it directly. The server provides two tools: - connect_database: Connects to a specific MySQL database - database parameter: Name of the database to connect to (string) - Returns a confirmation message when connection is successful.
The server ships on npm as @smithery/cli, 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.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
connect_database — Connects to a specific MySQL databaseexecute_query — Executes MySQL queriesTools — The server provides two tools: - connect_database: Connects to a specific MySQL database - database parameter: Name of the database to connect toInstallation — The Installation tool exposed by this serverDebugging — Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCPConfiguration is passed through the environment: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_READONLY, UV_PUBLISH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
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. Mysqldb's toolset — connect_database, execute_query, Tools and 2 more — is a fair guide to whether it matches your workflow. It is maintained by burakdirin; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Mysqldb's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| connect_database | Connects to a specific MySQL database |
| execute_query | Executes MySQL queries |
| Tools | The server provides two tools: - connect_database: Connects to a specific MySQL database - database parameter: Name of the database to connect to (string) - Returns a confirmation message when connection is successful |
| Installation | The Installation tool exposed by this server. |
| Debugging | Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). |
{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/Users/burakdirin/Projects/mysqldb-mcp-server",
"run",
"mysqldb-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "[optional]",
"MYSQL_READONLY": "true"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | 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 |
| MYSQL_READONLY | Configuration value read at startup. | Optional |
| UV_PUBLISH_TOKEN | Credential the server authenticates with. | Yes |
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.