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 server | plan not known |
|---|
Alternatives
The same job
These do what MySQL MCP Server does.
- mcp-server-mysql MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default
- Postgres MCP Pro A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
- Open Source MCP Servers for AWS A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices
- MCP Toolbox for Databases An open source MCP server for databases
- MCP SSH Manager MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
- pgEdge Postgres MCP Server A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI
