Skip to main content

MySQL MCP Server with GUI config panel and YAML import

Project description

MySQL MCP Server

一个带 GUI 配置面板的 MySQL MCP Server,外部使用方式对齐 mcp_ssh,底层改为 MySQL 连接与表操作。

功能

  • 多连接管理 - 保存多个 MySQL 连接并选择当前活动连接
  • GUI 配置面板 - mysqlgui 一键启动,可视化管理连接
  • YAML 导入 - 支持从 Java application.yml/.yaml 自动提取 MySQL 配置
  • 一键安装 - 安装到 Windsurf / Cursor / Claude Code / Codex
  • MCP 协议 - 通过 stdio 暴露 MySQL 工具
  • 全表操作 - 支持查询、DDL、CRUD、表结构查看

安装

pip install mysqlmcp-r

命令一览

命令 说明
mysqlmcp 以 MCP Server 模式运行
mysqlgui 启动 GUI 配置面板
mysqlmcp-install 安装到所有 IDE
mysqlmcp-install-windsurf 安装到 Windsurf
mysqlmcp-install-cursor 安装到 Cursor
mysqlmcp-install-claudecode 安装到 Claude Code
mysqlmcp-install-codex 安装到 Codex

GUI 支持

  • 手动填写 host / port / username / password / database / charset
  • 在“添加/编辑连接”弹窗中选择 YAML 文件自动导入 MySQL datasource
  • 测试连接
  • 指定当前活动连接

MCP Tools

  • list_servers
  • connect
  • disconnect
  • get_status
  • exec_sql(禁止执行 DROP TABLETRUNCATE TABLEDROP DATABASE
  • list_databases
  • list_tables
  • describe_table
  • show_create_table
  • list_columns
  • create_table
  • alter_table
  • rename_table
  • insert_rowsrows 必须是对象数组,支持多行批量插入)
  • update_rowswhere_clause 支持 ?%s
  • delete_rowswhere_clause 支持 ?%s

手动 MCP 配置

{
  "mcpServers": {
    "mysql": {
      "command": "mysqlmcp"
    }
  }
}

开发测试

python -m pytest -q

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysqlmcp_r-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mysqlmcp_r-0.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file mysqlmcp_r-0.1.0.tar.gz.

File metadata

  • Download URL: mysqlmcp_r-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mysqlmcp_r-0.1.0.tar.gz
Algorithm Hash digest
SHA256 338144b6655c33350fca03bf18c506bf4e6c98b2588983241f0b216f546f5e7f
MD5 17cb93b9126b03a3e7fb9714011f1a07
BLAKE2b-256 ce4b3ba907341ec19c0e33b6241be07c4f0b01607364274308606a31de4eff07

See more details on using hashes here.

File details

Details for the file mysqlmcp_r-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mysqlmcp_r-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mysqlmcp_r-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaad9a17565bb5c58ad5a826c6630cd6030dc0dcf43c3150e78c793b417355ac
MD5 b8de65adff370056edf78b9fc531e855
BLAKE2b-256 f4b7ecb8c9f539ee2f73ef195aca249ba27c835cab65f4a16bfd1a8a6efe55e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page