MySQL ServerSAFE
A Model Context Protocol server for MySQL database operations
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://archestra.ai/mcp-catalog/f4ww4z__mcp-mysql-server) [](https://smithery.ai/server/@f4ww4z/mcp-mysql-server)
A Model Context Protocol server that provides MySQL database operations. This server enables AI models to interact with MySQL databases through a standardized interface.
Installation
Installing via Smithery
To install MySQL Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @f4ww4z/mcp-mysql-server --client claude
Manual Installation
npx @f4ww4z/mcp-mysql-server
Configuration
The server requires the following environment variables to be set in your MCP settings configuration file:
recommended use
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@f4ww4z/mcp-mysql-server", "mysql://user:password@localhost:port/database"],
}
}
}{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@f4ww4z/mcp-mysql-server"],
"env": {
"MYSQL_HOST": "your_host",
"MYSQL_USER": "your_user",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}codex
mac
在 ~/.codex/config.toml
[mcp_servers.mcp-mysql-server] command = "npx" args = [ "-y", "@f4ww4z/mcp-mysql-server", "mysql://user:[email protected]:3306/database" ]
windows
在 %USERPROFILE%\.codex\config.toml
[mcp_servers.mcp-mysql-server] command = "npx" args = [ "-y", "@f4ww4z/mcp-mysql-server", "mysql://user:[email protected].
cee0f27d90f9OBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-mysql-server --env MYSQL_PASSWORD=${MYSQL_PASSWORD} -- npx -y @f4ww4z/[email protected]{
"mcpServers": {
"mcp-mysql-server": {
"command": "npx",
"args": [
"-y",
"@f4ww4z/[email protected]"
],
"env": {
"MYSQL_PASSWORD": "${MYSQL_PASSWORD}"
}
}
}
}Exposed tools (5)
3 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
connect_db | read | Connect to MySQL database |
describe_table | read | Get table structure |
execute | destructive | Execute an INSERT, UPDATE, or DELETE query |
list_tables | read | List all tables in the database |
query | write | Execute a SELECT query |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
execute
@modelcontextprotocol/sdk, dotenv, mcp-evals, mysql2, @types/node, typescript
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentatio
Gates applied: no_behavioural_pass.
cee0f27d90f9full audit observations/trust-audit/mcp-server/f4ww4z__mysql-server-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | cee0f27d90f9 | SAFE | B | 89 | first audit |
Questions
What is the MySQL Server MCP server?
A Model Context Protocol server for MySQL database operations
What tools does MySQL Server expose?
5 in total: 3 read-only, 1 that write, and 1 that can delete or overwrite (execute). Every one is listed on this page with its risk.
Is MySQL Server safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. 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 Server need?
It reads MYSQL_PASSWORD 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 Server run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @f4ww4z/mcp-mysql-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (cee0f27d90f9), read on 2026-10-06. The repository is watched and re-audited when it changes.