MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default
open sourceMITself-hostablefreeMCP
mcp-server-mysql is a Model Context Protocol server that gives Claude and other LLMs access to MySQL databases: a mysql_query tool runs SQL and a resource lists every table with its columns. It is read-only by default, with inserts, updates and deletes each enabled by an environment flag and permissions settable per schema. It supports SSH tunnels to remote databases, SSL/TLS with mutual TLS, a multi-database mode, automatic PII redaction in results, and a remote mode over HTTP with bearer token auth. Runs with npx on Node.js 20+ against MySQL 5.7 or later. MIT.
Problems it solves
- let Claude query my MySQL database and look at its schema
- give an AI assistant read-only access to a production MySQL database
- an MCP server for MySQL that can reach a remote database through an SSH tunnel
- mask personal data in query results before an LLM sees them
Features
- mysql_query tool, read-only by default
- insert, update and delete enabled separately by environment flags
- per-schema read and write permissions
- table and column listing resource
- SSH tunnel support for remote databases
- SSL/TLS with optional mutual TLS
- multi-database mode
- automatic PII redaction in results
- remote mode over HTTP with bearer token auth
Capabilities
| Has an MCP server | plan not known |
|---|
Alternatives
The same job
These do what mcp-server-mysql does.
- MySQL MCP Server Python MCP server for exploring and querying MySQL databases from AI assistants
- MCP SSH Manager MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
- Postgres MCP Pro A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
- MCP Toolbox for Databases An open source MCP server for databases
- pgEdge Postgres MCP Server A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI
- Open Source MCP Servers for AWS A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices
