talira

MySQL MCP Server

Python MCP server for exploring and querying MySQL databases from AI assistants

open sourceMITself-hostablefreeMCP

MySQL MCP Server, from Design Computer, is a Python Model Context Protocol server that lets AI assistants explore and query MySQL. It lists tables (or every database, in multi-database mode) as resources, reads table contents, returns column metadata through get_schema_info, samples table data, and runs SQL with execute_sql, marking INSERT, UPDATE and DELETE as destructive. It connects over SSL and through an SSH tunnel, and runs over stdio or HTTP (SSE) for self-hosted deployments, including in Docker. The project recommends a dedicated MySQL user with minimal permissions. MIT.

Problems it solves

  • let Claude explore my MySQL database's tables and run queries
  • an MCP server for MySQL written in Python that I can install with pip or uvx
  • query MySQL from an AI assistant through an SSH jump host
  • host a MySQL MCP server over HTTP for remote AI clients

Features

  • tables (or databases) listed as MCP resources
  • execute_sql for SELECT, SHOW, DESCRIBE and DML, with DML marked destructive
  • get_schema_info column metadata
  • table data sampling
  • multi-database mode
  • SSL modes and SSH tunneling
  • stdio or HTTP (SSE) transport
  • Dockerfile and Claude Desktop extension (.mcpb)

Limitations

  • Runs one SQL statement per call: multi-statement queries aren't supported1
  • The HTTP (SSE) transport has no built-in authentication: put it behind a reverse proxy that enforces it before exposing it beyond localhost1

Capabilities

Has an MCP serverplan not known

Alternatives

The same job

These do what MySQL MCP Server does.

  1. mcp-server-mysql MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default
  2. Postgres MCP Pro A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
  3. Open Source MCP Servers for AWS A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices
  4. MCP Toolbox for Databases An open source MCP server for databases
  5. MCP SSH Manager MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
  6. pgEdge Postgres MCP Server A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI

Compare MySQL MCP Server with the top 3