MCP server · Audited from source
MCP Server for MySQL
by benborla/mcp-server-mysqlMIT licenceAudited 12 Oct 2026 · source 4b3a0b8f3b06
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, 12 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.
Cite
Cite this page
ModelsAtlas. “MCP Server for MySQL (benborla/mcp-server-mysql)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/benborla/mcp-server-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.
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
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
.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
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/e2e/pii-redaction.test.ts:33
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
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
} from "../../../dist/src/db/index.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/integration/mysql.test.ts:7
} from "../../dist/src/db/index.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/integration/mysql.test.ts:21
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
const SERVER_URL = `http://127.0.0.1:${PORT}/mcp`;- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
INFOInventory / provenanceinv.oversize · .smithery/index.cjs
.smithery/index.cjs
- Why
- 42337766 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · assets/demo.gif
assets/demo.gif
- Why
- 24807308 bytes not read
- Fix
- —
INFOPrompt injectionprompt.fetch_and_trust · docs/INSTALLATION.md:5
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
- —
Tools it exposes
1 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
Tables | List of all MySQL tables | read |
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
- ✕BLOCK D 69 / 100
First audit ·
4b3a0b8f3b06
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about MCP Server for MySQL
What is the MCP Server for MySQL MCP server?
What tools does MCP Server for MySQL expose?
Is MCP Server for MySQL safe to connect to an agent?
What credentials does MCP Server for MySQL need?
How does MCP Server for MySQL run?
How current is this page?
I already installed MCP Server for MySQL. What should I do?
Can the verdict change?
Sources
- benborla/mcp-server-mysql on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 4b3a0b8f3b06Observed · 12 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 MCP Server for MySQL MCP server?
- What tools does MCP Server for MySQL expose?
- Is MCP Server for MySQL safe to connect to an agent?