MySQL MCP server with CRUD, anomaly analysis, role-based permissions, and extensible custom tools support.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
The install command below didn't complete successfully in our automated test.
uvx --from mysql_mcp_server_pro mysql_mcp_server_pro --mode stdioDownloading sqlalchemy (3.2MiB) Downloading pydantic-core (2.0MiB) Downloading cryptography (4.5MiB) Downloading mysql-connector-python (20.7MiB) Downloaded pydantic-core Downloaded cryptography Downloaded sqlalchemy Downloaded mysql-connector-python Installed 35 packages in 31ms Traceback (most recent call last): File "/home/user/.cache/uv/archive-v0/Y-hYfHxxuG21WXLy/bin/mysql_mcp_server_pro", line 6, in <module> from mysql_mcp_server_pro.cli import stdio_entry File "/home/user/.cac
This is an experimental automated check and can have false negatives ā missing environment variables, a slow cold install, etc. It doesnāt necessarily mean somethingās wrong. Last checked 1mo ago.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Mysql MCP Server Pro.
execute_sqlSQL execution tool that can execute ["SELECT", "SHOW", "DESCRIBE", "EXPLAIN", "INSERT", "UPDATE", "DELETE", "CREATE", "ALTER", "DROP", "TRUNCATE"] commands based on permission configuration
get_chinese_initialsConvert Chinese field names to pinyin initials
get_db_health_runningAnalyze MySQL health status (connection status, transaction status, running status, lock status detection)
get_table_descSearch for table structures in the database based on table names, supporting multi-table queries
get_table_indexSearch for table indexes in the database based on table names, supporting multi-table queries
get_table_lockCheck if there are row-level locks or table-level locks in the current MySQL server
mcp_mysql_server_pro is not just about MySQL CRUD operations, but also includes database anomaly analysis capabilities and makes it easy for developers to extend with custom tools.
| Tool Name | Description |
|---|---|
| execute_sql | SQL execution tool that can execute ["SELECT", "SHOW", "DESCRIBE", "EXPLAIN", "INSERT", "UPDATE", "DELETE", "CREATE", "ALTER", "DROP", "TRUNCATE"] commands based on permission configuration |
| get_chinese_initials | Convert Chinese field names to pinyin initials |
| get_db_health_running | Analyze MySQL health status (connection status, transaction status, running status, lock status detection) |
| get_table_desc | Search for table structures in the database based on table names, supporting multi-table queries |
| get_table_index | Search for table indexes in the database based on table names, supporting multi-table queries |
| get_table_lock | Check if there are row-level locks or table-level locks in the current MySQL server |
| get_table_name | Search for table names in the database based on table comments and descriptions |
| get_db_health_index_usage | Get the index usage of the currently connected mysql database, including redundant index situations, poorly performing index situations, and the top 5 unused index situations with query times greater than 30 seconds |
| optimize_sql | Professional SQL performance optimization tool, providing expert optimization suggestions based on MySQL execution plans, table structure information, table data volume, and table indexes. |
| use_prompt_queryTableData | Use built-in prompts to let the model construct a chain call of tools in mcp (not a commonly used fixed tool, you need to modify the code to enable it, see this class for details) |
| Prompt Name | Description |
|---|---|
| analyzing-mysql-prompt | This is a prompt for analyzing MySQL-related issues |
| query-table-data-prompt | This is a prompt for querying table data using tools. If description is empty, it will be initialized as a MySQL database query assistant |
.env file with the following content:go to see see "Use uv to start the service" ^_^
Note:
.env file should be placed in the directory where you run the command or use --envfile parameter to specify the pathAdd the following content to your mcp client tools, such as cursor, cline, etc.
mcp json as follows:
Modify the .env file content to update the database connection information with your database details:
Start commands:
Add the following content to your mcp client tools, such as cursor, cline, etc.
mcp json as follows:
Modify the .env file content to update the database connection information with your database details:
Start commands:
Add the following content to your mcp client tools, such as cursor, cline, etc.
mcp json as follows:
Add a new tool class in the handles package, inherit from BaseHandler, and implement get_tool_description and run_tool methods
Import the new tool in init.py to make it available in the server
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/wenb1n-dev-mysql-mcp-server-pro)<a href="https://allmcps.com/mcp/wenb1n-dev-mysql-mcp-server-pro"><img src="https://allmcps.com/api/badge/wenb1n-dev-mysql-mcp-server-pro?style=directory" alt="Mysql MCP Server Pro on AllMCPs" /></a>