MySQL Claude Interface
STDIONatural language interface to local MySQL databases through Claude Desktop.
Natural language interface to local MySQL databases through Claude Desktop.
A natural language interface to your local MySQL databases through Claude Desktop. This MCP (Machine Communication Protocol) server allows Claude to execute SQL queries on your local MySQL databases, enabling you to interact with your databases using natural language.
git clone [email protected]:meanands/mysql-mcp.git cd mysql-mcp
# For macOS/Linux python -m venv venv source venv/bin/activate # For Windows python -m venv venv venv\Scripts\activate
pip install -r requirements.txt
.env
file in the project root with your MySQL credentials:MYSQL_HOST=localhost MYSQL_USER=your_username MYSQL_PASSWORD=your_password
run.sh
:# Open run.sh and replace this line: cd /Users/yourname/code/sql-mcp # with your actual project directory path, for example: cd /Users/yourname/projects/mysql-mcp
chmod +x run.sh
{ "sql": { "command": "/absolute/path/to/your/mysql-mcp/run.sh" } }
Replace /absolute/path/to/your/mysql-mcp
with the actual absolute path to your project directory.
Once configured, you can interact with your databases through Claude Desktop using natural language. Examples:
Use the 'employees' database and create a table for storing employee information with fields for name, email, and department.
Insert a new employee named John Doe with email [email protected] in the Engineering department.
Show me all employees in the Engineering department.