What is MCP MySQL 本地数据库服务?
MCP MySQL 本地数据库服务 is a lightweight personal use service for connecting and operating local MySQL databases. It integrates with Cursor as an MCP service, enabling Cursor to execute various database operations via RESTful API and SSE (Server-Sent Events).
How to use MCP MySQL 本地数据库服务?
Install Node.js v14+ and a MySQL server, clone the repository, run npm install, configure a .env file with database credentials and API key, then start with npm start. In Cursor, add it as an MCP service using either SSE (via the /api/sse endpoint) or Command mode.
Key features of MCP MySQL 本地数据库服务
- Connects to local MySQL databases.
- Provides RESTful API for database operations.
- Supports parameterized queries to prevent SQL injection.
- Supports SSE (Server-Sent Events) push capability.
- Integrates as a Cursor MCP service.
Use cases of MCP MySQL 本地数据库服务
- Allowing Cursor to query a local MySQL database during development.
- Executing safe parameterized SQL queries via API.
- Listing databases, tables, and table structures.
- Receiving real‑time database updates through SSE.
评论