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_serversconnectdisconnectget_statusexec_sql(禁止执行DROP TABLE、TRUNCATE TABLE、DROP DATABASE)list_databaseslist_tablesdescribe_tableshow_create_tablelist_columnscreate_tablealter_tablerename_tableinsert_rows(rows必须是对象数组,支持多行批量插入)update_rows(where_clause支持?或%s)delete_rows(where_clause支持?或%s)
手动 MCP 配置
{
"mcpServers": {
"mysql": {
"command": "mysqlmcp"
}
}
}
开发测试
python -m pytest -q
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
338144b6655c33350fca03bf18c506bf4e6c98b2588983241f0b216f546f5e7f
|
|
| MD5 |
17cb93b9126b03a3e7fb9714011f1a07
|
|
| BLAKE2b-256 |
ce4b3ba907341ec19c0e33b6241be07c4f0b01607364274308606a31de4eff07
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaad9a17565bb5c58ad5a826c6630cd6030dc0dcf43c3150e78c793b417355ac
|
|
| MD5 |
b8de65adff370056edf78b9fc531e855
|
|
| BLAKE2b-256 |
f4b7ecb8c9f539ee2f73ef195aca249ba27c835cab65f4a16bfd1a8a6efe55e3
|