-
Requirements:
Ensure Python 3.10+ is installed -
Clone the Repository:
git clone https://github.com/singh-as/mcp-server-mysql.git cd mcp-server-mysql
-
Set Up Virtual Environment and Install Dependencies:
uv venv source .venv/bin/activate pip install -e .
Add this to your claude_desktop_config.json
or mcp.json
:
{
"mcpServers": {
"mcp-server-mysql": {
"command": "uv",
"args": [
"--directory",
"/path/to/gitclone/folder",
"run",
"mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": ""
}
}
}
}