
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
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 9 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.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.