Atlas / MCP servers / enemyrr / MySQL Database

MySQL DatabaseSAFE

mcp/enemyrr/mysql-database
Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
24 13r · 7w · 4d
Transport
stdio
License
MIT
Stars
33
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://smithery.ai/server/@enemyrr/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 & Setup for Cursor IDE

Installing via Smithery

To install MySQL Database Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @enemyrr/mcp-mysql-server --client claude

Installing Manually

  1. Clone and build the project:
git clone https://github.com/enemyrr/mcp-mysql-server.git
cd mcp-mysql-server
npm install
npm run build
  1. Add the server in Cursor IDE settings:
  2. Open Command Palette (Cmd/Ctrl + Shift + P)
  3. Search for "MCP: Add Server"
  4. Fill in the fields:
  5. Name: mysql
  6. Type: command
  7. Command: node /absolute/path/to/mcp-mysql-server/build/index.js
Note: Replace /absolute/path/to/ with the actual path where you cloned and built the project.

Database Configuration

You can configure the database connection in three ways:

  1. Database URL in .env (Recommended):
DATABASE_URL=mysql://user:password@host:3306/database
  1. Individual Parameters in .env:
DB_HOST=localhost
DB_USER=your_user
DB_PASSWORD=your_password
DB_DATABASE=your_database
  1. Direct Connection via Tool:
use_mcp_tool({
server_name: "mysql",
tool_name: "connect_db",
arguments: {
url: "mysql://user:password@host:3306/database"
// OR
workspace: "/path/to/your/project" // Will use project's .env
// OR
host: "localhost",
user: "your_user",
password: "you
Read from source at commit f0069876262aOBSERVED · 2026-10-08
Advertisement
02

Connect

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.

claude-code
claude mcp add mcp-mysql-server -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-mysql-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (24)

13 read · 7 write · 4 destructive. Blast radius: 4 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
add_columnwriteAdd a new column to an existing table
alter_columnwriteModify an existing column (type, nullable, default, or rename)
columnsreadComma-separated list of columns (default: all)
connect_dbreadConnect to a MySQL database using URL, workspace config, or direct parameters
create_tablewriteCreate a new table with specified columns and indexes
describe_tablereadGet detailed structure of a table including columns, types, and constraints
drop_columndestructiveRemove a column from a table
drop_tabledestructiveDelete a table (requires confirmation)
executedestructiveExecute an INSERT, UPDATE, or DELETE query
explain-schemareadGet a natural language explanation of a table structure
generate-insertwriteGenerate an INSERT statement template for a table
generate-selectreadGenerate a SELECT query for a table with optional filters
generate-updatewriteGenerate an UPDATE statement template for a table
get_foreign_keysreadList all foreign key relationships for a table
get_indexesreadList all indexes on a table
limitreadMaximum number of rows to return
list_databasesreadList all accessible databases on the server
list_tablesreadList all tables in the connected database
orderBywriteORDER BY column(s)
querywriteExecute a SELECT query and return results
suggest-indexesreadAnalyze a table and suggest potential indexes for optimization
tablereadThe table name to query
truncate_tabledestructiveRemove all rows from a table (requires confirmation)
wherereadWHERE clause conditions (e.g.,
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (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 (2)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
drop_column, drop_table, execute, truncate_table
Why it matters. 4 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, dotenv, mysql2, zod, @types/node, typescript
Why it matters. 6 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha f0069876262afull audit observations/trust-audit/mcp-server/enemyrr__mysql-database.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08f0069876262aSAFEB89first audit
06

Questions

What tools does MySQL Database expose?

24 in total: 13 read-only, 7 that write, and 4 that can delete or overwrite (drop_column, drop_table, execute, truncate_table). Every one is listed on this page with its risk.

Is MySQL Database 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: 4 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does MySQL Database need?

No credential environment variables were found in its source, so it appears to need none.

How does MySQL Database run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-mysql-server at 0.2.0.

How current is this page?

The grade is for one exact copy of the source (f0069876262a), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement