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

how to use in cursor #6

Open
ManojINaik opened this issue Feb 19, 2025 · 10 comments
Open

how to use in cursor #6

ManojINaik opened this issue Feb 19, 2025 · 10 comments

Comments

@ManojINaik
Copy link

Any one know how to setup in cursor MCP

@designcomputer
Copy link
Owner

@ManojINaik

I haven't personally tested mysql_mcp_server in Cursor yet, but it should just work if correctly configured.
https://docs.cursor.com/context/model-context-protocol

Note: MCP tools may not work with all models. MCP tools are only available to the Agent in Composer.

@mowliv
Copy link

mowliv commented Mar 6, 2025

Just tried, but could not get it working in cursor. Need instructions.

@designcomputer
Copy link
Owner

What models did you try it with @mowliv?

@mowliv
Copy link

mowliv commented Mar 6, 2025 via email

@designcomputer
Copy link
Owner

@mowliv Have you tried creating a simple example using just the Claude App?

@mowliv
Copy link

mowliv commented Mar 7, 2025 via email

@designcomputer
Copy link
Owner

@mowliv Please try that because that may help you find any problem with the mysql_mcp_server or MySQL server settings.

@jpan8866
Copy link

I tried wrapping the command in a bash script, where I export the necessary env variables. I then point the command to the bash script in cursor settings. This works with other MCP tools, but did not work here. Seems like its unable to pick up the env vars:

2025-03-10 22:46:43,301 - mysql_mcp_server - ERROR - Missing required database configuration. Please check environment variables: 2025-03-10 22:46:43,301 - mysql_mcp_server - ERROR - MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE are required

@kakajansh
Copy link

kakajansh commented Mar 19, 2025

I configured using uvx my mcp.json file looks like

{
    "mcpServers": {
        "mysql-mcp-server": {
            "command": "uvx",
            "args": [
                "--from",
                "mysql-mcp-server",
                "mysql_mcp_server"
            ],
            "env": {
                "MYSQL_HOST": "127.0.0.1",
                "MYSQL_PORT": "3306",
                "MYSQL_USER": "",
                "MYSQL_PASSWORD": "",
                "MYSQL_DATABASE": ""
            }
        }
    }
}

@adgower
Copy link

adgower commented Mar 24, 2025

smithery-ai/typescript-sdk#129 any luck on cursor I still can't get it to work

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

6 participants