Active

mcp-server-mysql

A Model Context Protocol server that provides read-only access to MySQL database

The MySQL MCP Server lets your AI connect directly to a MySQL database: inspect schemas, run SELECTs, and analyse data — no exporting to CSV and pasting it into the chat.

The everyday uses are "what does this table look like and what indexes does it have?" and ad-hoc data exploration. You stop switching to a DB client just to confirm a column name while writing code.

GitHub ↗
57
TrustScore
✅ No clear abandonment signal detected; complete security and compatibility checks before production use

Why use it

Good for: backend engineers and analysts who query often but don't want to open a client every time.

Before connecting: **use a read-only account for production**. This server supports read-only mode — turn it on. A wrong SQL statement against production isn't reversible.

Before you connect

🔑 Needs an API key / tokenNode.js

Config example (to connect)

{
  "mcpServers": {
    "mcp_server_mysql": {
      "command": "npx",
      "args": ["-y", "@benborla29/mcp-server-mysql"],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASS": "your_password",
        "MYSQL_DB": "your_database"
      }
    }
  }
}

Install / Connect

# No npm package — install from source.
# See the repo's README for the exact command:
# https://github.com/benborla/mcp-server-mysql

Follow the official README; env and args vary per server.

🛠️ Maintenance weight 30% · 61 pts

📝
Last commit23 days ago
📈
Commits in 90 days25
💬
Recent issues with replies29%
🗃️
Repo statusNormal

📊 Adoption weight 25% · 60 pts

GitHub stars2.1k (90d +0%)
📦
npm weekly downloadsNot npm-distributed
🚀
Releases per month

✅ Usability weight 20% · 20 pts

📋
Official registryNot listed
▶️
Runnable entryNot resolvable
🔍
AuditabilityOpen-source repo, auditable

❤️ Health & community weight 25% · 78 pts

🐛
open issues42
🔀
open PRs
⚖️
LicenseMIT
👥
Contributors / forks30 / 246

Sources: GitHub API · updated 2026-08-19

90-day trend

⭐ stars +0%

Frequently Asked Questions

Can I lock it to read-only?

Yes. The server has a read-only setting, and you should also use a read-only database account — two layers.

How does it differ from the PostgreSQL server?

Different protocol and dialect, same purpose. Both are listed on this site; pick whichever matches your database.

Similar / alternative servers

How to choose among these

Database servers split into relational vs. vector; vector stores are all for RAG, differing by scale and hosting.

  • Relational DB (business data, SQL)Pick Supabase / Neon / MongoDB / ClickHouse — match your DB
  • RAG with semantic memoryPick a vector store: Pinecone (scaled) / Qdrant / Chroma (light) / Weaviate

One email a week, 5 minutes to see what happened in the MCP ecosystem

New servers, breakout trends, abandonment alerts — tracked automatically, curated by hand, sent to your inbox.

One email a week · unsubscribe anytime · no data selling