# benborla/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.

Repository: https://github.com/benborla/mcp-server-mysql
Canonical: https://ross.abutalabs.com/products/mcp-server-mysql
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-07-27T13:36:52+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 89, longevity 45
- inputs: {"age_days": 632, "days_push": 37, "days_rel": 75, "gap_med": 4, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2080, forks 248 (observed 2026-08-28T04:06:11.591351+00:00)

## What it is
A Model Context Protocol (MCP) server that gives LLMs like Claude read-only access to MySQL databases, letting them inspect schemas and run queries. It supports optional opt-in write operations, SSH tunnels, multi-database mode, PII redaction, and remote HTTP transport with auth.

## Use cases
- let Claude inspect my MySQL database schema
- run read-only SQL queries on MySQL through an AI assistant
- connect Claude Code to a MySQL database
- query multiple MySQL databases from an LLM without reconnecting
- mask PII when an AI agent queries production data
- expose a MySQL database to MCP clients over HTTP with auth

## When to choose
- you use Claude Desktop, Claude Code, Cursor, or another MCP client and want safe MySQL access
- you need read-only-by-default database access with granular write opt-in
- you want built-in SSH tunneling, SSL/mTLS, or PII redaction for AI database queries

## When to avoid
- you use PostgreSQL, SQLite, or another non-MySQL database
- you need a general-purpose MySQL client or GUI rather than LLM integration
- your environment cannot run Node.js v20+

## Facets
- artifact type: service
- maturity: active
- function: mcp, database, database-driver, security
- domain: databases, large-language-models, developer-tools
- platform: self-hosted, cli
- tags: mysql, model-context-protocol, read-only-queries, schema-inspection, pii-redaction, ssh-tunnel, claude, ai-agents, nodejs, docker

## Member repositories
- benborla/mcp-server-mysql (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.591351+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:02.215843+00:00, confidence not recorded.
  - readme: https://github.com/benborla/mcp-server-mysql (fetched 2026-08-28T04:06:11.591351+00:00, sha 95c98ee22e36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
