Mysql_mcp_server_pro

general MCP Server

Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展

Install Ready
generalgeneralmysql
11 views246 stars44 forksMIT

Why This Matters

Discovered via unknown and last synced 3mo ago.

Install Ready
Source
unknown
Stars
246
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

uvx --from mysql_mcp_server_pro mysql_mcp_server_pro --mode stdio

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "mysql-mcp-server-pro": {
      "command": "npx",
      "args": [
        "mysql_mcp_server_pro"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

12
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (12)

get_db_health_running

Analyze MySQL health status (connection status, transaction status, running status, lock status detection)

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

get_table_name

Search for table names in the database based on table comments and descriptions

get_table_lock

Check if there are row-level locks or table-level locks in the current MySQL server

get_table_index

Search for table indexes in the database based on table names, supporting multi-table queries

execute_sql

SQL execution tool that can execute ["SELECT", "SHOW", "DESCRIBE", "EXPLAIN", "INSERT", "UPDATE", "DELETE", "CREATE", "ALTER", "DROP", "TRUNCATE"] commands based on permission configuration

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)

get_chinese_initials

Convert Chinese field names to pinyin initials

analyzing-mysql-prompt

This is a prompt for analyzing MySQL-related issues

get_table_desc

Search for table structures in the database based on table names, supporting multi-table queries

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.