MCP server · Audited from source
MySQL MCP server
by guangxiangdebizi/mysql_mcpNo licenceAudited 7 Oct 2026 · source bfa7c8065d32
Is it safe? With care — CAUTION, grade B (84/100). It exposes 17 tools: 13 read, 3 write and 1 destructive. The audit recorded 6 findings (0 critical, 0 high, 4 medium, 2 low). Maintainer's description: 这是一个功能强大且易用的MySQL数据库MCP(Model Context Protocol)服务器,让你的AI助手可以安全地进行完整的数据库操作,支持多数据库连接管理、增删改查、事务管理和智能回滚功能。
Cite
Cite this page
ModelsAtlas. “MySQL MCP server (guangxiangdebizi/mysql_mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/guangxiangdebizi/mysql-28
3 MCP servers are called MySQL. You are viewing guangxiangdebizi/mysql_mcp. Compare all 3 →
- tickhaijun/mysql-mcp-server★ 32✓SAFE
- guangxiangdebizi/mysql_mcp★ 81!CAUTION
- dpflucas/mysql-mcp-server★ 72!CAUTION
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
6 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | WARN 1 finding |
L3 Inventory | Declared tools match the source | WARN 2 findings |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
guangxiangdebiziUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@xingyuchen/mysql-mcp-serverat version 4.0.7 - LicenceNone declaredFrom the repository, as read at the audited commit.
- Last push10 months agoActivity of the repository when we read it.
- Source commit readbfa7c8065d32The audit covers exactly this commit, read on 7 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory17 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (6)
Sorted by severity
MEDIUMInformation disclosuredisclose.log_secret · dist/httpServer.js:875
console.log(` - X-MySQL-Password: 数据库密码`);
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMPrompt injectionreview.misleading_scope · <listing:description>
Empowers AI assistants to perform comprehensive and secure operations on MySQL databases, including CRUD, transaction management, and intelligent rollback.
- Why
- The listing description advertises transaction management and rollback capabilities, but the current v4.0.x release removed all transaction tools (begin_transaction, commit_transaction, rollback_transaction, full_rollback, rollback_to_step, show_transaction_history) per the CHANGELOG, making the des
- Fix
- rewrite it so the instruction says plainly what it does, and asks the user before it acts
MEDIUMFilesystem / pathmcp.destructive_tools
remove_connection
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
MEDIUMAuth / authzmcp.remote_no_auth
streamable-http
- Why
- a network transport with no auth environment variable found
- Fix
- require a token
LOWInventory / provenanceinv.no_license
- Why
- no LICENSE file and no repo licence
- Fix
- add a licence
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, mysql2, winston, winston-daily-rotate-file, express, cors, dotenv, @types/node
- Why
- 13 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
17 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
remove_connection | destructive | 移除指定的数据库连接 |
add_connection | write | 添加新的数据库连接 |
commit_transaction | write | 提交数据库事务 |
execute_query | write | 执行SQL查询语句(支持增删改查所有操作) |
begin_transaction | read | 开始数据库事务 |
connect_database | read | 连接到MySQL数据库 |
describe_table | read | 显示指定表的详细结构信息和样本数据 |
disconnect_database | read | 断开数据库连接 |
full_rollback | read | 完全回滚当前事务的所有操作 |
list_connections | read | 列出所有数据库连接 |
rollback_to_step | read | 回滚到指定的操作步骤 |
rollback_transaction | read | 回滚数据库事务 |
select_database | read | 选择活跃的数据库连接(后续SQL将在此数据库上执行) |
show_databases | read | 显示所有可访问的数据库。自动使用当前活跃的数据库连接。 |
show_tables | read | 显示数据库中的所有表及其结构信息 |
show_transaction_history | read | 显示当前事务的操作历史 |
switch_active_connection | read | 切换当前活跃的数据库连接 |
Install
Package version 4.0.7 · audited commit bfa7c80
Read the findings first. The most severe is Information disclosure (medium) at dist/httpServer.js.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 4.0.7. The audit covers commit bfa7c80 only.
claude mcp add mysql-mcp-server -- npx -y @xingyuchen/[email protected]
{
"mcpServers": {
"mysql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@xingyuchen/[email protected]"
]
}
}
}The command pins the package version recorded in the source (4.0.7); the audit covers commit bfa7c8065d32. Transport: streamable-http. No environment variables required.
Audit history
- !CAUTION B 84 / 100
First audit ·
bfa7c8065d32
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/guangxiangdebizi/mysql-28/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about MySQL MCP server
What is the MySQL MCP server?
What tools does MySQL expose?
Is MySQL safe to connect to an agent?
What credentials does MySQL need?
How does MySQL run?
How current is this page?
Which MySQL MCP server is the right one?
Sources
- guangxiangdebizi/mysql_mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit bfa7c8065d32Observed · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the MySQL MCP server?
- What tools does MySQL expose?
- Is MySQL safe to connect to an agent?