mcp-mysql-server

mcp-mysql-server is a Model Context Protocol (MCP) server that connects to a MySQL database and exposes tools for querying data and managing schema (e.g., list/describe tables, create/alter/drop columns/tables, and browse schema/resources).

Evaluated Mar 30, 2026 (21d ago)
Repo ↗ Databases mcp mysql database schema-mgmt tools typescript
⚙ Agent Friendliness
54
/ 100
Can an agent use this?
🔒 Security
44
/ 100
Is it safe for agents?
⚡ Reliability
32
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
70
Documentation
70
Error Messages
0
Auth Simplicity
55
Rate Limits
0

🔒 Security

TLS Enforcement
20
Auth Strength
55
Scope Granularity
10
Dep. Hygiene
65
Secret Handling
70

README claims prepared statement support and secure password handling via environment variables, plus connection cleanup and query validation. However, it does not document transport security requirements (TLS), server-side authentication/authorization, fine-grained scopes, or explicit audit logging. Presence of schema-destructive tools (drop/truncate) increases risk if an agent is not constrained.

⚡ Reliability

Uptime/SLA
0
Version Stability
55
Breaking Changes
30
Error Recovery
45
AF Security Reliability

Best When

Used in a developer-controlled environment (local/dev or trusted internal systems) where database credentials and scope of operations can be managed carefully.

Avoid When

Avoid when you cannot control which schemas/operations the agent can perform, or when you require strict safety rails for DDL/DML.

Use Cases

  • Allowing an AI assistant to run read-only SELECT queries against a MySQL database
  • Assisting with schema exploration and documentation (tables/columns/indexes/FKs)
  • Generating or executing SQL for CRUD and light schema management workflows
  • Helping developers prototype SQL queries with parameterized inputs

Not For

  • Untrusted or fully automated execution without human review (it can run write/destructive queries)
  • Public-facing or multi-tenant deployments where strong tenant isolation is required
  • Highly regulated environments needing detailed compliance attestations beyond what is documented

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: MySQL credentials provided via DATABASE_URL/.env (user/password/host/database) or via the connect_db tool arguments (direct credentials or URL)
OAuth: No Scopes: No

No user-level auth is documented for the MCP server itself; authentication appears to be delegated to MySQL credentials supplied to the server. Tool-level authorization/scoping is not described in the README.

Pricing

Free tier: No
Requires CC: No

README does not describe any hosted pricing; appears to be self-hosted open-source (MIT) distributed via npm.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Potentially destructive tools exist (drop_table, truncate_table) that require 'confirm' according to README, but a model/agent could still trigger them if not constrained.
  • The server appears to execute arbitrary SQL for query/execute; agents must be restricted (read-only vs write) and use strict query generation rules.
  • Connection lifecycle/reset behavior is not specified in README; agents may need to ensure a valid connection via connect_db before operations.
  • No tool-availability/permissioning allowlists are documented; enforce safety externally if needed.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for mcp-mysql-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered