1. Conduid
  2. Data
  3. Mysql MCP
MCP server · Data

Mysql MCP

这是一个功能强大且易用的MySQL数据库MCP(Model Context Protocol)服务器,让你的AI助手可以安全地进行完整的数据库操作,支持多数据库连接管理、增删改查、事务管理和智能回滚功能。

Unclaimed last commit 11 months ago data
49Fair

Scored 22 hours ago · breakdown

About Mysql MCP

Mysql MCP is an MCP server published by guangxiangdebizi in the Data category: 这是一个功能强大且易用的MySQL数据库MCP(Model Context Protocol)服务器,让你的AI助手可以安全地进行完整的数据库操作,支持多数据库连接管理、增删改查、事务管理和智能回滚功能。. Conduid read 8 tools from its source: add_connection, describe_table, execute_query, list_connections, remove_connection, select_database and 2 more. It is published to npm as @xingyuchen/mysql-mcp-server and starts with npx.

The repository has 82 stars and 60 forks, and its last commit was on 17 Dec 2025. The latest release is v4.0.5 (9 Dec 2025). It follows v3.0.0 (18 Jul 2025), and the 4 most recent releases go back to v1.0.0 (30 Jun 2025). It passes 2 of the 6 static checks Conduid ran on the repository; it does not pass License declared, Tests present, Dependencies pinned and Scoped permissions. Its topics include data.

Install

Claude Code
claude mcp add mysql-mcp -- npx -y @xingyuchen/mysql-mcp-server
npx
npx -y @xingyuchen/mysql-mcp-server
From source
git clone https://github.com/guangxiangdebizi/MySQL_MCP

Tools (8)

add_connection添加新的数据库连接
ParameterTypeDescription
database *string数据库名称
host *string数据库主机地址
id *string连接标识符(唯一ID,例如:prod, test, dev)
password *string数据库密码
portnumber数据库端口号
user *string数据库用户名
describe_table查看表的结构和字段信息。自动使用当前活跃的数据库连接。
ParameterTypeDescription
connection_idstring【通常不需要填写】指定连接ID,留空自动使用活跃连接
table_name *string表名
execute_query执行SQL查询(支持SELECT、INSERT、UPDATE、DELETE等所有SQL语句)。注意:通常不需要指定connection_id,系统会自动使用当前活跃连接。
ParameterTypeDescription
connection_idstring【通常不需要填写】指定连接ID。留空则自动使用当前活跃连接。如需查看可用连接ID,请先调用 list_connections 工具。
query *string要执行的SQL查询语句
list_connections列出所有数据库连接及其ID。如果需要知道有效的connection_id,请调用此工具查看。返回信息包括:连接ID、主机、端口、数据库名、当前活跃状态等。
remove_connection移除指定的数据库连接
ParameterTypeDescription
id *string要移除的连接ID
select_database选择活跃的数据库连接(后续SQL将在此数据库上执行)
ParameterTypeDescription
id *string要选择的连接ID
show_databases显示所有可访问的数据库。自动使用当前活跃的数据库连接。
ParameterTypeDescription
connection_idstring【通常不需要填写】指定连接ID,留空自动使用活跃连接
show_tables显示数据库中的所有表。自动使用当前活跃的数据库连接。
ParameterTypeDescription
connection_idstring【通常不需要填写】指定连接ID,留空自动使用活跃连接

Security checks

Static checks derived from the repository a month ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.0K words.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionScanned 5 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v4.0.5Release v4.0.0: 全新架构重写,支持Header预配置和多数据库管理,简化工具和提升性能。移除旧的连接管理器,优化代码结构,增强用户体验。 · 9 Dec 2025
v3.0.0v3.0.0 · 18 Jul 2025MySQL MCP Server 3.0.0 发布说明 🚀 🎉 重大版本更新 MySQL MCP Server 3.0.0 是一个重大功能更新版本,引入了多数据库连接管理能力,让你的AI助手可以同时操作多个MySQL数据库,无需频繁断开重连。 🆕 核心新功能 🔗 多数据库连接管理 ✨ 主要特性 同时连接多个数据库: 支持同时维护多个MySQL数据库连接 智能连接管理: 每个连接都有唯一ID,支持连接状态监控 活跃连接切换: 可以随时切换当前操作的数据库 灵活操作模式:…
v2.0.0v2.0.0 · 30 Jun 2025🚀 MySQL MCP Server 2.0 重磅发布!让AI助手拥有完整数据库操作能力! 🎯 核心亮点: ✨ 完整CRUD操作 - 支持增删改查所有SQL操作 🛡️ 智能事务管理 - 自动开启事务,精确回滚到任意步骤 📊 增强数据展示 - 表概览、样本数据、实时统计 📝 专业日志系统 - 详细记录,错误追踪,性能分析 🔧 工具简化升级: • 删除重复工具,保留万能的execute_query • show_tables现在显示表结构概览和行数统计 •…
v1.0.0v1.0.0 · 30 Jun 2025初始版本

README

The repository's README runs to about 1.0K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Mysql MCP

How do I install Mysql MCP?

In Claude Code, run claude mcp add mysql-mcp -- npx -y @xingyuchen/mysql-mcp-server. Other MCP clients take the command after "--" in their server configuration.

Is Mysql MCP safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 2 of the 6 static checks Conduid ran on the repository; it does not pass License declared, Tests present, Dependencies pinned and Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mysql MCP still maintained?

The last commit was 11 months ago and 3 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Mysql MCP provide?

Conduid read 8 tools from the source: add_connection, describe_table, execute_query, list_connections, remove_connection, select_database, show_databases and show_tables. 7 of them publish their parameters, listed under Tools above.