1. Conduid
  2. Data
  3. benborla29/mcp-server-mysql
MCP server · Data

benborla29/mcp-server-mysql

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.

86Excellent

Scored 19 hours ago · breakdown

About benborla29/mcp-server-mysql

benborla29/mcp-server-mysql is an MCP server published by benborla in the Data category: 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.

The repository has 2.2K stars and 258 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add mysql -- npx -y @maxlmgc/mysql-mcp
npx
npx -y @maxlmgc/mysql-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about benborla29/mcp-server-mysql

Powered by Claude · Grounded in docs

I know everything about benborla29/mcp-server-mysql. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

Releases

v2.0.9MySQL MCP Release v2.0.9 · 19 Jun 2026What's New 🔒 Security PII Redaction** — New `ENABLE_PII_REDACTION` flag scrubs emails, phone numbers, SSNs, credit cards, and IPv4 addresses from query results before they reach the LLM. Includes column-name heuristics, regex value…
v2.0.8MySQL MCP Release v2.0.8 · 27 Jan 2026The following are the additional and changes in the MCP. From @johnnyee Added two new environment variables for timezone and date handling configuration:** MYSQL_TIMEZONE: Set the timezone for date/time values Accepts formats like +08:00…
v2.0.7MySQL MCP Release v2.0.7 · 18 Nov 2025The following are the additional and changes in the MCP. From: @echarrod Add connection pool keep-alive settings** Configuration Options Added** waitForConnections: true - Queue connection requests when pool is full instead of immediately…
v2.0.5MySQL MCP Release v2.0.5 · 17 Jul 2025Thanks to @crewsycrews Upgraded @modelcontextprotocol/sdk to a higher version for streamableHttp transport support. Added expess dependency so we could run an http server. Followed this…
v2.0.3MySQL MCP Release v2.0.3 · 26 Jun 2025What's New Added performance tracking for write and read-only queries (Thank you @paradisecy ) beneficial to see the query time in the agent response, beneficial on query optimization tasks Updated README.MD, added instruction on how to…

README

MCP Server for MySQL

MCP Toplist

Trust Score

Sponsor — Bloome

Bloome

Using mcp-server-mysql to let your AI query MySQL? Bloome brings that to your whole team — an AI-agent IM platform where AI agents are members of the chat. Connect your MCP tools and have agents inspect schemas, run queries, and answer data questions for everyone in one thread. Zero local setup, runs in the cloud, on web and mobile.


MCP server that gives Claude and other LLMs access to MySQL — inspect schemas, run queries, and optionally write data, all through the Model Context Protocol.

Key Features

  • Read-only by default — write operations opt-in via env flags
  • Claude Code integration — optimized for Anthropic's Claude Code CLI
  • SSH tunnel support — built-in support for remote databases
  • Multi-DB mode — query across multiple databases without reconnecting
  • Schema-specific permissions — per-database read/write control
  • PII redaction — automatic masking of sensitive data in results
  • Remote mode — HTTP transport with bearer token auth
  • SSL/TLS support — encrypted connections with mTLS option

Requirements

  • Node.js v20+
  • MySQL 5.7+ (8.0+ recommended)
  • MySQL user with appropriate privileges

Quick Install

Claude Code (simplest):

claude mcp add mcp_server_mysql \
  -e MYSQL_HOST="127.0.0.1" \
  -e MYSQL_PORT="3306" \
  -e MYSQL_USER="root" \
  -e MYSQL_PASS="your_password" \
  -e MYSQL_DB="your_database" \
  -- npx @benborla29/mcp-server-mysql

Claude Desktop / other clients:

{
  "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"
      }
    }
  }
}

All write operations are disabled by default. Enable with ALLOW_INSERT_OPERATION=true, ALLOW_UPDATE_OPERATION=true, ALLOW_DELETE_OPERATION=true.

Documentation

Tools & Resources

Tool: mysql_query Execute SQL queries. Read-only by default. Write operations enabled per flag.

Resources: mysql://tables Lists all tables and column metadata for the connected database.

Contributing

PRs welcome at github.com/benborla/mcp-server-mysql.

git clone https://github.com/benborla/mcp-server-mysql.git
pnpm install
pnpm run build
pnpm test

Contributors

License

MIT — see LICENSE for details.

README fetched from the repository 4 hours ago. The original is authoritative.

Questions

About benborla29/mcp-server-mysql

How do I install benborla29/mcp-server-mysql?

Run claude mcp add mysql -- npx -y @maxlmgc/mysql-mcp, then add the server to your MCP client's configuration.

Is benborla29/mcp-server-mysql safe to use with an AI agent?

Its trust score is 86 out of 100 (excellent). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is benborla29/mcp-server-mysql still maintained?

Yes — the latest release is v2.0.9 (19 Jun 2026), and the last commit was 2 months ago. The repository has 2.2K stars and 49 open issues.