Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MCP Bug] mysql-mcp-server #129

Closed
adgower opened this issue Mar 24, 2025 · 3 comments
Closed

[MCP Bug] mysql-mcp-server #129

adgower opened this issue Mar 24, 2025 · 3 comments
Assignees

Comments

@adgower
Copy link

adgower commented Mar 24, 2025

it's keep just saying client closed on cursor

config:

"mysql-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "mysql-mcp-server",
        "--key",
        "8cb5fa5e-c39c-4ff5-9a9c-71d91b1be131"
      ],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "mcp_user2",
        "MYSQL_PASSWORD": "mcp_password",
        "MYSQL_DATABASE": "notify"
      }
    }
@arjunkmrm
Copy link
Collaborator

@adgower thanks for your patience. This server runs remotely hence the issue accessing your db. Can you try this local server instead? https://smithery.ai/server/@benborla29/mcp-server-mysql

@adgower
Copy link
Author

adgower commented Mar 26, 2025

okay now I understand. I got it working so you don't need config in the env params you just create the mcp using your creds and then use the code with key and it auto loads the creds from the smithery servers?

@adgower adgower closed this as completed Mar 26, 2025
@arjunkmrm
Copy link
Collaborator

That's correct, if you choose 'save and connect', we automatically fetch your credentials when running the server. If you don't have a saved config, and just click 'connect', then your config (including env vars) will be attached to --config flag. Regardless, you wouldn't have to manually set up the env vars.

Feel free to reach out again if there any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants