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

MCP server · Audited from source

MySQL MCP server

by benborla/mcp-server-mysqlMIT licenceAudited 23 Sep 2026 · source 4b3a0b8f3b06

npm @benborla29/mcp-server-mysql 2.0.9stdiostreamable-http★ 2,129
✕BLOCKGrade D · 69/100 · 23 Sep 2026 · 4b3a0b8

Is it safe? No — BLOCK, grade D (69/100). It exposes 1 tool: 1 read, 0 write and 0 destructive. The audit recorded 19 findings (0 critical, 2 high, 2 medium, 13 low). Maintainer's description: A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “MySQL MCP server (benborla/mcp-server-mysql)”. Retrieved 23 Sep 2026. https://modelsatlas.com/mcp/benborla/mysql

Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Hard-coded secrets at .env. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Copy of mcp/benborla/mcp-server-mysql: identical text; the original is the page to read and cite.

Trust audit

Audit 0.4.1 · full source read 23 Sep 2026

Trust score69/100✕BLOCK D
0 critical2 high2 medium13 low2 info

19 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
  • SecretsFoundSee the findings

Findings (19)

Sorted by severity

HIGHHard-coded secretsinv.env_committed · .env
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L0
.env
Why
a real .env in the package
Fix
ship .env.example with placeholders only
HIGHFilesystem / pathfs.credential_store · scripts/start-tunnel-rds.sh:28
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
SSH_KEY="${SSH_KEY:-$HOME/.ssh/id_rsa}"
Why
touches a credential store
Fix
—
MEDIUMHard-coded secretssecret.private_key · tests/fixtures/valid-client-key.pem:1
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.private_key · tests/unit/ssl-mtls.test.ts:48
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .env
F-13 Inventory / provenanceCWE-1104Layer L0
.env
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .env.dist
F-13 Inventory / provenanceCWE-1104Layer L0
.env.dist
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .env.test
F-13 Inventory / provenanceCWE-1104Layer L0
.env.test
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .markdownlint.yml
F-13 Inventory / provenanceCWE-1104Layer L0
.markdownlint.yml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .markdownlintignore
F-13 Inventory / provenanceCWE-1104Layer L0
.markdownlintignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · tests/e2e/pii-redaction.test.ts:33
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
dotenv.config({ path: path.resolve(__dirname, "../../.env.test") });
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/e2e/pii-redaction.test.ts:36
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const SERVER_ENTRY = path.resolve(__dirname, "../../dist/index.js");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/integration/multi-db/multi-db-mode.test.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
} from "../../../dist/src/db/index.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/integration/mysql.test.ts:7
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
} from "../../dist/src/db/index.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/integration/mysql.test.ts:21
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
dotenv.config({ path: path.resolve(__dirname, "../../.env.test") });
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/integration/remote-mcp-parallel.test.ts:17
F-04 Network egressCWE-200 · CWE-319Layer L1
const SERVER_URL = `http://127.0.0.1:${PORT}/mcp`;
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@ai-sdk/openai, dotenv, express, mcp-evals, mysql2, node-sql-parser, zod, @types/express
Why
20 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.fetch_and_trust · docs/INSTALLATION.md:5
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Visit [https://smithery.ai/server/@benborla29/mcp-server-mysql](https://smithery.ai/server/@benborla29/mcp-server-mysql) and follow the on-screen instructions.
Why
remote text is to be obeyed as instructions
Fix
—
INFOInventory / provenanceinv.oversize · .smithery/index.cjs
F-13 Inventory / provenanceCWE-1104Layer L0
.smithery/index.cjs
Why
42337766 bytes not read
Fix
—
INFOInventory / provenanceinv.oversize · assets/demo.gif
F-13 Inventory / provenanceCWE-1104Layer L0
assets/demo.gif
Why
24807308 bytes not read
Fix
—

Tools it exposes

1 declared in source · 0 destructive

1 read0 write0 destructive
ToolWhat it doesRisk
TablesList of all MySQL tablesread

Safer alternatives

We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.

Audit history

  1. ✕BLOCK D 69 / 100

    Source changed, verdict held · 4b3a0b8f3b06

Questions about MySQL MCP server

What is the MySQL MCP server?
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
What tools does MySQL expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is MySQL safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does MySQL need?
It reads MYSQL_PASS, MYSQL_PASSWORD, MYSQL_SSL_KEY, MYSQL_SSL_REJECT_UNAUTHORIZED and REMOTE_SECRET_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does MySQL run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @benborla29/mcp-server-mysql at 2.0.9.
How current is this page?
The grade is for one exact copy of the source (4b3a0b8f3b06), read on 2026-09-23. The repository is watched and re-audited when it changes.
I already installed MySQL. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • benborla/mcp-server-mysql on GitHub — the source we read, its licence, stars and activityObserved · 23 Sep 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 4b3a0b8f3b06Observed · 23 Sep 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.