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