Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

MySQL MCP server

by guangxiangdebizi/mysql_mcpNo licenceAudited 7 Oct 2026 · source bfa7c8065d32

npm @xingyuchen/mysql-mcp-server 4.0.7streamable-http★ 81
!CAUTIONGrade B · 84/100 · 7 Oct 2026 · bfa7c80
81GitHub stars

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助手可以安全地进行完整的数据库操作,支持多数据库连接管理、增删改查、事务管理和智能回滚功能。

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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 →

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score84/100!CAUTION B
0 critical0 high4 medium2 low0 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 1 finding
L1 Static sourceSecrets, path traversal, supply chainWARN 2 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsWARN 1 finding
L3 InventoryDeclared tools match the sourceWARN 2 findings
L4 SandboxRun in isolation and watch behaviourSKIPPED

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-server at 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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
console.log(`   - X-MySQL-Password: 数据库密码`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMPrompt injectionreview.misleading_scope · <listing:description>
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
F-10 Auth / authzCWE-287 · CWE-862Layer L3
streamable-http
Why
a network transport with no auth environment variable found
Fix
require a token
LOWInventory / provenanceinv.no_license
F-13 Inventory / provenanceCWE-1104Layer L0
Why
no LICENSE file and no repo licence
Fix
add a licence
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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

13 read3 write1 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.

ToolRiskWhat it does
remove_connectiondestructive移除指定的数据库连接
add_connectionwrite添加新的数据库连接
commit_transactionwrite提交数据库事务
execute_querywrite执行SQL查询语句(支持增删改查所有操作)
begin_transactionread开始数据库事务
connect_databaseread连接到MySQL数据库
describe_tableread显示指定表的详细结构信息和样本数据
disconnect_databaseread断开数据库连接
full_rollbackread完全回滚当前事务的所有操作
list_connectionsread列出所有数据库连接
rollback_to_stepread回滚到指定的操作步骤
rollback_transactionread回滚数据库事务
select_databaseread选择活跃的数据库连接(后续SQL将在此数据库上执行)
show_databasesread显示所有可访问的数据库。自动使用当前活跃的数据库连接。
show_tablesread显示数据库中的所有表及其结构信息
show_transaction_historyread显示当前事务的操作历史
switch_active_connectionread切换当前活跃的数据库连接

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]

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

  1. !CAUTION B 84 / 100

    First audit · bfa7c8065d32

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/guangxiangdebizi/mysql-28/badge.svg)](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?
这是一个功能强大且易用的MySQL数据库MCP(Model Context Protocol)服务器,让你的AI助手可以安全地进行完整的数据库操作,支持多数据库连接管理、增删改查、事务管理和智能回滚功能。
What tools does MySQL expose?
17 in total: 13 read-only, 3 that write, and 1 that can delete or overwrite (remove_connection). Every one is listed on this page with its risk.
Is MySQL safe to connect to an agent?
With care. The audit graded it B (84/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does MySQL need?
No credential environment variables were found in its source, so it appears to need none.
How does MySQL run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as @xingyuchen/mysql-mcp-server at 4.0.7.
How current is this page?
The grade is for one exact copy of the source (bfa7c8065d32), read on 2026-10-07. The repository is watched and re-audited when it changes.
Which MySQL MCP server is the right one?
tickhaijun/mysql-mcp-server. 3 servers share the name; see the side-by-side comparison.

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.