Best for
- Developers and data teams that need AI-assisted MySQL schema inspection or querying
- Workflows that prefer read-only database access by default
- Deployments requiring SSH, SSL/TLS, or PII-redaction capabilities
This server is suited to using MCP with Claude and other clients to inspect MySQL schemas and query data. It defaults to read-only access and offers SSH tunneling, multi-database mode, PII redaction, and SSL/TLS support. Write operations require explicit environment flags, so database privileges and credentials should be configured carefully.
Strongest · Setup experience 12/20 Weakest · Reliability 8/20
Static review · not runListed 2026-07-29
Read the FMRS scoring method →Runtime:Node.js 20+ · Hosted (no local runtime)
MYSQL_HOST
MySQL server address, e.g. 127.0.0.1, per your database environment.
MYSQL_USER
MySQL username with read privileges on the target database.
MYSQL_PASS
Password for that MySQL user, from your database account settings.
MYSQL_DB
Name of the database to connect to; it must already exist.
MYSQL_PORT
MySQL port, defaults to 3306.
ALLOW_INSERT_OPERATION
Set true to enable INSERT writes; disabled by default.
ALLOW_UPDATE_OPERATION
Set true to enable UPDATE writes; disabled by default.
ALLOW_DELETE_OPERATION
Set true to enable DELETE writes; disabled by default.
Requires Node.js v20+, MySQL 5.7+ (8.0+ recommended), and a MySQL user with appropriate privileges. Start the server with npx and configure MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, and MYSQL_DB. Claude Desktop can use the JSON configuration shown in the README. Write operations are disabled by default; when needed, enable them individually with ALLOW_INSERT_OPERATION=true, ALLOW_UPDATE_OPERATION=true, or ALLOW_DELETE_OPERATION=true.
{"mcpServers":{"mcp_server_mysql":{"command":"npx","args":["-y","@benborla29/mcp-server-mysql"],"env":{"MYSQL_HOST":"127.0.0.1","MYSQL_PORT":"3306","MYSQL_USER":"root","MYSQL_PASS":"your_password","MYSQL_DB":"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": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "your_password",
"MYSQL_DB": "your_database"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add mcp_server_mysql -e MYSQL_HOST=127.0.0.1 -e MYSQL_PORT=3306 -e MYSQL_USER=root -e MYSQL_PASS=your_password -e MYSQL_DB=your_database -- npx -y @benborla29/mcp-server-mysql
Run it in a terminal; replace any <…> placeholders with your own values first.
The mysql_query tool should appear in the client's tool list; alternatively ask "what tables are in my database" — a returned schema proves the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
An MCP server that gives Claude and other large language models access to MySQL databases for schema inspection and SQL queries. Access is read-only by default, with optional write operations controlled by environment flags.
Connect ClickHouse to your AI assistants
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Google's official database MCP toolbox — define AI-accessible database tools via config
Bytebase's official, minimalist two-tool database MCP server
Source revision b9c714e18242 Data synced 2026-10-19 Read the FMRS scoring method