Best for
- Developers and teams that need to inspect or operate MySQL through an MCP client.
- Use cases that require managing multiple MySQL connections.
The README describes connection management, SQL execution, and database inspection tools, and provides a StreamableHTTP configuration example. The manifest was not cached, and the source metadata lists the license as unknown; the README claims Apache 2.0, so the license status needs verification.
Strongest · Setup experience 11/20 Weakest · Maintenance 4/20
Static review · not runReviewed 2026-11-30
Read the FMRS scoring method →Runtime:Node.js 18+
PORT
Optional; sets the HTTP server port. The documentation uses 3001 by default.
NODE_ENV
Optional; sets the Node.js runtime environment. The production example uses production.
Requires Node.js 18+, MySQL 5.7+ or 8.0+, and an MCP client. Clone the repository, install npm dependencies, build, and start the server; the README example uses http://localhost:3001/mcp. Replace the example database credentials with actual values and add the configuration to the MCP client config file. Alternatively, omit preconfigured headers and let the AI add connections with add_connection.
{
"mcpServers": {
"mysql-mcp": {
"type": "streamableHttp",
"url": "http://localhost:3001/mcp",
"timeout": 600,
"headers": {
"X-MySQL-Host": "localhost",
"X-MySQL-Port": "3306",
"X-MySQL-User": "root",
"X-MySQL-Password": "your_password",
"X-MySQL-Database": "your_database"
}
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"mysql-mcp": {
"type": "streamableHttp",
"url": "http://localhost:3001/mcp",
"timeout": 600,
"headers": {
"X-MySQL-Host": "localhost",
"X-MySQL-Port": "3306",
"X-MySQL-User": "root",
"X-MySQL-Password": "your_password",
"X-MySQL-Database": "your_database"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.mysql-mcp]
url = "http://localhost:3001/mcp"
http_headers = { X-MySQL-Host = "localhost", X-MySQL-Port = "3306", X-MySQL-User = "root", X-MySQL-Password = "your_password", X-MySQL-Database = "your_database" }
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add --transport http mysql-mcp http://localhost:3001/mcp --header 'X-MySQL-Host: localhost' --header 'X-MySQL-Port: 3306' --header 'X-MySQL-User: root' --header 'X-MySQL-Password: your_password' --header 'X-MySQL-Database: your_database'
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm show_tables and execute_query appear in the client's tool list. Call show_tables; a returned table list confirms the server is connected and can access the database.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
MySQL MCP Server is an MCP server using StreamableHTTP. It lets AI assistants inspect database structure, execute SQL, and manage multiple database connections. The README describes use with MCP clients including Claude Desktop and Cursor.
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Let LLMs interact directly with your Directus data.
Read-only DB access for safe analysis
Connect AI clients to Couchbase clusters.
Source revision e585363a7194 Data synced 2026-12-05 Read the FMRS scoring method Markdown