MCP MySQL 本地数据库服务

Created By
TristanLiba year ago
Overview

What is MCP MySQL?

MCP MySQL is a lightweight personal service program designed to connect and operate a local MySQL database. It serves as an MCP service for Cursor, allowing easy execution of various database operations through an API interface.

How to use MCP MySQL?

To use MCP MySQL, clone the repository, install dependencies, configure the .env file with your database credentials, and run the service using Node.js.

Key features of MCP MySQL?

  • Connects to local MySQL databases
  • Provides a RESTful API for database operations
  • Supports parameterized queries to prevent SQL injection
  • Supports Server-Sent Events (SSE) for real-time updates
  • Integrates as an MCP service for Cursor

Use cases of MCP MySQL?

  1. Managing local MySQL databases for personal projects
  2. Executing SQL queries through a simple API
  3. Real-time data updates using SSE

FAQ from MCP MySQL?

  • Is MCP MySQL suitable for production use?

No, it is designed for local use only and should not be exposed to the public internet.

  • How do I secure my API?

Use an API key to protect your endpoints and limit access to SELECT queries only.

  • What are the prerequisites for using MCP MySQL?

You need Node.js (v14+) and a MySQL server installed.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
TristanLib
Star
1
Language
JavaScript
License
-

Recommend Servers

View All
Meteomatics

2 days ago
Meok Bs7121 Mcp

20 hours ago