sciver

MCPIndependentbenborla

MySQL MCP Server

Reads schemas and runs queries in MySQL; writes only when explicitly enabled.

An MCP server for MySQL 5.7+ (8.0 recommended): the mysql_query tool runs SQL, and the mysql://tables resource describes tables and columns. It is read-only by default – INSERT, UPDATE and DELETE each have their own switch – and it supports SSH tunnels, multiple databases at once, per-schema permissions, PII masking and a remote HTTP mode.

Installation

Manual install

$claude mcp add mcp_server_mysql -e MYSQL_HOST="127.0.0.1" -e MYSQL_PORT="3306" -e MYSQL_USER="<USER>" -e MYSQL_PASS="<PASSWORD>" -e MYSQL_DB="<DATABASE>" -- npx @benborla29/mcp-server-mysql

Details

Works in
Claude Code, Claude, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Zed
Transport
local
License
MIT
Tasks
Data, Code
Rating
Source
github.com/benborla/mcp-server-mysql (opens in a new tab)

Tags

  • mysql
  • sql
  • databases
  • read-only
  • ssh

Log in to rate

A pack is your own set of skills and MCP servers. sciver loads it in your AI with one command.

View in the library