talira

mcp-server-mysql

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 serverplan not known

Alternatives

The same job

These do what mcp-server-mysql does.

  1. MySQL MCP Server Python MCP server for exploring and querying MySQL databases from AI assistants
  2. MCP SSH Manager MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
  3. Postgres MCP Pro A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
  4. MCP Toolbox for Databases An open source MCP server for databases
  5. pgEdge Postgres MCP Server A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI
  6. Open Source MCP Servers for AWS A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices

Compare mcp-server-mysql with the top 3