What is Simple MCP MySQL Server: Effortless Deployments & Robust Performance?
Simple MCP MySQL Server is a lightweight Model Context Protocol (MCP) implementation designed for secure interaction between AI assistants and MySQL databases. It provides a controlled interface for executing read-only SQL operations, including listing tables, retrieving schema details, and querying data. Built with Python, this server prioritizes simplicity in deployment while maintaining robust performance for production-grade applications.
How to use Simple MCP MySQL Server: Effortless Deployments & Robust Performance?
Installation
# Clone repository and install dependencies
git clone [[email protected]](/cdn-cgi/l/email-protection):alexcc4/mcp-mysql-server.git
cd mysql-mcp-server
uv sync
Configuration
Set MySQL credentials via environment variables:
export DB_HOST=localhost
export DB_PORT=3306
export DB_USER=your_username
export DB_PASSWORD=your_password
export DB_NAME=your_database
Execution
Launch manually with:
uv run main.py
For integration with Claude Desktop, configure claude_desktop_config.json
with server path and environment variables as shown in the original documentation.