TL;DR
MySQL is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent mySQL database integration for AI queries. Install in 1 minute with mcpizy install mysql.
MySQL
Install verified 4 toolsDatabases
MySQL database integration for AI queries
Official homepageInstall MySQL
mcpizy install mysqlnpx -y mcp-server-mysqlTools exposed
4 tools availablequeryRun a read-only SQL query
queryRun a read-only SQL query
Inputs
sqlstringrequired
list_databasesList all databases on the server
list_databasesList all databases on the server
list_tablesList tables in the current database
list_tablesList tables in the current database
describe_tableShow columns, types, and keys for a table
describe_tableShow columns, types, and keys for a table
Inputs
tablestringrequired
Configuration
Works identically across clients. Only the config file path differs.
Claude Code~/.claude.json
~/.claude.json{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "mydb"
}
}
}
}Cursor.cursor/mcp.json
.cursor/mcp.json{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "mydb"
}
}
}
}Windsurf~/.codeium/windsurf/mcp_config.json
~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "mydb"
}
}
}
}Authentication setup
- 1
Connect with a read-only MySQL user for safety
Get itMYSQL_USER
What you can do with MySQL MCP
Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.
โDescribe the schema of the `orders` tableโ
Uses: describe_table
โShow me every table in the current database with row countsโ
Uses: list_tables, query
โTop 10 products by revenue in Q1โ
Uses: query
Works with
More Databases MCPs
Alternatives to MySQL
If MySQL doesn't fit your stack, these Databases MCP servers solve similar problems.
Frequently asked questions
What is the MySQL MCP server?
MySQL is listed as an Databases Model Context Protocol server whose documented purpose is to let an MCP-compatible agent mySQL database integration for AI queries. Client support, permissions and authentication remain specific to the upstream project.
How do I install MySQL MCP with Claude Code?
The fastest way is the MCPizy CLI: run `mcpizy install mysql` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y mcp-server-mysql` and restarting Claude Code.
Does MCPizy charge to view or install MySQL MCP?
No. Reading this profile and copying its install guidance is free. Upstream software, API, account or usage costs are separate, and licence coverage should be checked from the linked source when available.
Does MySQL MCP work with Cursor and Windsurf?
The MCP standard is supported by those clients, but a specific server can still have client-specific setup or transport limits. Use the configuration shown on this page when present and verify the upstream instructions before installation.
What can I do with MySQL MCP?
Its documented purpose is to let an MCP-compatible agent mySQL database integration for AI queries. The exact tools, permissions and write capabilities depend on the server version and configuration shown by the upstream project.
Compare before you commit
Put this server beside an alternative, or return to the full evidence directory.
Compare MCP serversBack to directory