
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
mcp-mysql-connector
Advanced tools
A Model Context Protocol (MCP) plugin for connecting to MySQL databases from Cursor IDE.
You can use the plugin directly with npx without installing it:
npx -y mcp-mysql-connector mysql://user:password@host:port/database
npm install -g mcp-mysql-connector
mcp-mysql-connector mysql://user:password@host:port/database
# Clone the repository
git clone https://github.com/yourusername/mcp-mysql-connector.git
cd mcp-mysql-connector
# Install dependencies
npm install
# Run the plugin
node index.js mysql://user:password@host:port/database
For easier setup with Cursor IDE, you can use the setup script:
npx -y mcp-mysql-connector-setup
This will guide you through the process of setting up the MCP MySQL Connector with Cursor IDE.
The connection string should be in the following format:
mysql://user:password@host:port/database
Example:
mysql://root:password@localhost:3306/mydatabase
You can also add SSL support by appending ?ssl=true
to the connection string:
mysql://user:password@host:port/database?ssl=true
This plugin creates a simple HTTP server that implements the Model Context Protocol. It connects to your MySQL database and allows Cursor IDE to run SQL queries against it.
The server listens on port 3000 by default and accepts POST requests with SQL queries. The results are returned as JSON.
Important Note: The MySQL connection uses the port specified in the connection string (default: 3306), while the MCP server runs on port 3000. Make sure Cursor is configured to use port 3000 for the MCP connection.
Once the MCP server is running, you can use it with Cursor IDE to run SQL queries against your MySQL database.
npx -y mcp-mysql-connector mysql://user:password@host:port/database
If you want to publish this package to npm, follow these steps:
npm login
npm publish
MIT
FAQs
Model Context Protocol plugin for MySQL
The npm package mcp-mysql-connector receives a total of 872 weekly downloads. As such, mcp-mysql-connector popularity was classified as not popular.
We found that mcp-mysql-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.