I’m trying to set up a MySQL MCP Server using the enemyrr/mcp-mysql-server (Node.js-based) in Cursor IDE (version 0.47.7), but it doesn’t seem to work. After configuring the mcp.json file and saving it, the MCP Server does not start, and I don’t see the expected green dot indicating it’s running. I’m seeking advice on how to troubleshoot and resolve this issue.
Steps I’ve Taken:
- Cloned the enemyrr/mcp-mysql-server repository and installed dependencies with npm install.
- Built the project with npm run build to generate the build/index.js file.
- Created a .cursor/mcp.json file with the following configuration:
{
"servers": [
{
"name": "mysql_mcp_node",
"type": "command",
"command": "node",
"arguments": [
"D:\\mcp-mysql-server\\build\\index.js"
],
"environment": {
"DATABASE_URL": "mysql://root:[email protected]:3306/sys"
}
}
]
4.Ensured Node.js is installed (version 18.x) and verified with node -v.
5. Tested MySQL connectivity manually with mysql -u root -p -h 192.168.1.126 -P 3306, and it works fine.
6. Restarted Cursor IDE after saving the mcp.json file.
7. Checked the terminal in Cursor, but no specific error logs are visible.
What might be causing the MCP Server to fail to start in Cursor?