Back to MCP Servers
MySQL
Secure interaction with MySQL databases for queries, schema inspection, and data management
databasemysqlsqlcommunity
Installation
pip install mysql-mcp-serverConfiguration
{
"mcpServers": {
"mysql": {
"command": "uvx",
"args": ["mysql-mcp-server"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your-username",
"MYSQL_PASSWORD": "your-password",
"MYSQL_DATABASE": "your-database"
}
}
}
}How to use
- Run the installation command above (if needed)
- Open your Claude Code settings file (~/.claude/settings.json)
- Add the configuration to the mcpServers section
- Restart Claude Code to apply changes