Change the database connection information as needed.
Running with Docker Compose
This will proceed with a pre-configured setup.
Running directly with Python
Cursor Configuration
MCP functionality is available from Cursor version 0.46 and above.Additionally, the MCP feature is only accessible to Cursor Pro account users.
Cursor Setting
Tool Addition Tips
Adding a Tool
Explanation
Development Roadmap
Parameter Options
Enable/Disable Switch for Each Tool: Provide a function to reduce Input Context costs
Query Security Level Setting: Offer optional control over functions that could damage asset value, such as DROP, DELETE, UPDATE
Features
Data Analysis Report Generation: Provide a report generation function optimized for the model to appropriately select various charts based on user requests
Extended Text2SQL Support
SSH Connection Support: Enable secure remote access via SSH for advanced operations
File Extraction Function
1. Overview
MCP MySQL Server is a server application for MySQL database operations based on MCP (Model Context Protocol). This server provides tools that allow AI models to interact with the MySQL database.
2. System Configuration
2.1 Key Components
MCP Server: A FastMCP server that communicates with AI models
MySQL Database: Manages and stores data
Tools: Executors that perform database operations
2.2 Tech Stack
Language: Python
Database: MySQL 8.0
Key Libraries:
2.3 Deployment Environment
Containerized deployment via Docker and Docker Compose
Ports: 8081 (MCP Server), 3306 (MySQL)
3. Directory Structure
4. Architecture Design
4.1 Layered Structure
Interface Layer: MCP Server (FastMCP)
Business Logic Layer: Handlers and Executors
Data Access Layer: Database connection and query execution
4.2 Key Classes and Modules
MySQLMCPServer: Main server class that initializes and runs the MCP server
Change the database connection information as needed.
Running with Docker Compose
This will proceed with a pre-configured setup.
Running directly with Python
Cursor Configuration
MCP functionality is available from Cursor version 0.46 and above.Additionally, the MCP feature is only accessible to Cursor Pro account users.
Cursor Setting
Tool Addition Tips
Adding a Tool
Explanation
Development Roadmap
Parameter Options
Enable/Disable Switch for Each Tool: Provide a function to reduce Input Context costs
Query Security Level Setting: Offer optional control over functions that could damage asset value, such as DROP, DELETE, UPDATE
Features
Data Analysis Report Generation: Provide a report generation function optimized for the model to appropriately select various charts based on user requests
Extended Text2SQL Support
SSH Connection Support: Enable secure remote access via SSH for advanced operations
File Extraction Function
1. Overview
MCP MySQL Server is a server application for MySQL database operations based on MCP (Model Context Protocol). This server provides tools that allow AI models to interact with the MySQL database.
2. System Configuration
2.1 Key Components
MCP Server: A FastMCP server that communicates with AI models
MySQL Database: Manages and stores data
Tools: Executors that perform database operations
2.2 Tech Stack
Language: Python
Database: MySQL 8.0
Key Libraries:
2.3 Deployment Environment
Containerized deployment via Docker and Docker Compose
Ports: 8081 (MCP Server), 3306 (MySQL)
3. Directory Structure
4. Architecture Design
4.1 Layered Structure
Interface Layer: MCP Server (FastMCP)
Business Logic Layer: Handlers and Executors
Data Access Layer: Database connection and query execution
4.2 Key Classes and Modules
MySQLMCPServer: Main server class that initializes and runs the MCP server