数据库 · 开发者工具

mysql_mcp_server_pro logo

mysql_mcp_server_pro

wenb1n-dev/mysql_mcp_server_pro

mcp_mysql_server_pro是一个支持MySQL CRUD操作、数据库异常分析及自定义工具扩展的项目。

安装

uvx --from mysql_mcp_server_pro mysql_mcp_server_pro --mode stdio

客户端配置

{
  "mcpServers": {
    "mysql": {
      "command": "uvx",
      "args": [
        "--from",
        "mysql_mcp_server_pro",
        "mysql_mcp_server_pro",
        "--mode",
        "stdio"
      ],
      "env": {
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_PORT": "<MYSQL_PORT>",
        "MYSQL_USER": "<MYSQL_USER>",
        "MYSQL_PASSWORD": "<MYSQL_PASSWORD>",
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_ROLE": "<MYSQL_ROLE>"
      }
    }
  }
}

环境变量

MYSQL_HOSTMYSQL_PORTMYSQL_USERMYSQL_PASSWORDMYSQL_DATABASEMYSQL_ROLE
GitHub 星标
29
分类
数据库, 开发者工具
更新于
2026年10月6日

工具(10)

  • execute_sql

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

  • 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…

  • optimize_sql

    Professional SQL performance optimization tool, providing expert optimization suggestions based on MySQL execution plans, table structure information, table…

  • 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…

本页信息摘自该项目的 README。 查看 README

相关 MCP 服务器

更多服务器
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

Supabase MCP Server是一个连接Supabase项目与AI助手的工具,通过Model Context Protocol(MCP)标准化大型语言模型(LLMs)与外部服务的交互,实现数据库管理、配置获取和数据查询等功能。

数据库
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases是一个开源数据库MCP服务器,专注于企业级和生产质量,简化工具开发,提供连接池、认证等复杂功能。

数据库
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Supabase MCP服务器是一个开源工具,允许IDE安全执行SQL、管理模式变更、调用Supabase管理API和使用Auth Admin SDK,内置安全控制。

数据库
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

这是一个持续更新的MCP服务器精选列表,涵盖了浏览器控制、艺术与文化、云平台、命令行、通信、客户数据平台、数据库、开发者工具、数据科学工具、文件系统、金融与金融科技、游戏、知识与记忆、位置服务、营销、监控、搜索和实用工具等多个类别。每个项目都附带了GitHub链接和星标数量,方便用户快速了解和使用。

数据库
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP是一个为PostgreSQL数据库设计的模型上下文协议服务器,提供AI代理发现、连接、查询和理解数据库的API,支持多数据库连接、丰富的目录信息和查询解释功能。

数据库
dbhub logo

dbhub

bytebase/dbhub

332

DBHub是一个实现模型上下文协议(MCP)的通用数据库网关,支持多种数据库连接和操作。

数据库