MySQL MCP Server
Community
Databases
stdio
Enable AI agents to connect to MySQL databases for schema inspection, query execution, and data exploration. Community-maintained server supporting connection pooling and configurable access controls.
Quick Install
$ npx -y @benborla29/mcp-server-mysqlEnvironment Variables
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | MySQL server hostname | Yes |
| MYSQL_USER | Database username | Yes |
| MYSQL_PASSWORD | Database password | Yes |
| MYSQL_DATABASE | Database name | Yes |
Configuration by Client
{
"mcpServers": {
"server": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "mydb"
}
}
}
}Need a different client? Use the Config Generator for Windsurf, Cline, Antigravity, and more.
Available Tools (1)
query