MCP MySQL Local Database Service
The MCP MySQL Service is a lightweight, personal-use server program designed to connect and operate local MySQL databases. This service can be utilized as a part of the Cursor MCP service, enabling seamless execution of various database operations through API interfaces.
Key Features
- Local MySQL Database Connection: Effortlessly connect to and manage your MySQL databases locally.
- RESTful API for Database Operations: Perform database operations through a robust RESTful API.
- Parameterized Queries: Safeguard against SQL injection with support for parameterized queries.
- SSE (Server-Sent Events) Capability: Stream data efficiently with SSE push capabilities.
- Integration with Cursor MCP Service: Enhance your Cursor MCP service with seamless integration.
Use Cases
- Data Management: Ideal for developers and businesses looking to manage their local MySQL databases efficiently through a user-friendly API.
- AI Model Integration: Facilitates AI models in accessing and interacting with external data sources, enhancing AI-driven applications.
- Secure Database Operations: With built-in security features like API key protection and parameterized queries, it ensures secure interactions with databases.
Getting Started
Prerequisites
- Node.js (v14+)
- MySQL Server
Installation
- Clone the repository.
- Install dependencies using
npm install. - Configure the
.envfile with your server and database settings.
Running the Service
Execute npm start to run the service or npm run dev for development mode with auto-restart.
API Interface
- Get All Databases:
GET /api/databases - Get All Tables in a Database:
GET /api/databases/:database/tables - Get Table Structure:
GET /api/databases/:database/tables/:table/structure - Execute Query:
POST /api/querywith JSON payload. - SSE Connection:
GET /api/sse?apiKey=your-api-key
Security Considerations
- Designed for local use only, not recommended for public exposure.
- API key protection for secure interface access.
- Default to executing only SELECT queries for added security.
UBOS Platform
UBOS is a full-stack AI Agent Development Platform focused on integrating AI Agents into every business department. It orchestrates AI Agents and connects them with enterprise data, allowing for the creation of custom AI Agents using LLM models and Multi-Agent Systems. The MCP MySQL Server complements UBOS by providing a reliable backend for data operations, crucial for AI-driven solutions.
Licensing
This service is licensed under the MIT License, allowing for flexible use and modification.
MySQL数据库服务
Project Details
- TristanLib/mcp_server_mysql_windows
- Last Updated: 3/21/2025
Recomended MCP Servers
Simple Gong MCP server
An MCP(Model Context Protocol) Server for retrieving and sharing your bash/zsh history with MCP Client (Cursor, Claude etc.)
Documentation Generator MCP Server for automated documentation creation
A specialized server implementation for the Model Context Protocol (MCP) designed to integrate with CircleCI's development workflow. This...
A mcp server for harbor
mcp server for Apache Jena
Playwright MCP server
An MCP (Model Context Protocol) server for interacting with Android devices through ADB in TypeScript.
Appwrite’s MCP server. Operating your backend has never been easier.





