Provides read-only access to MySQL databases with tools for executing SELECT, SHOW, DESCRIBE, and EXPLAIN queries, along with automatic discovery of table schemas including columns, types, keys, and constraints.
MySQL MCP Server
A Model Context Protocol server that provides read-only access to MySQL databases.
Features
Tools
query - Execute read-only SQL queries (SELECT, SHOW, DESCRIBE, EXPLAIN)
All queries run within READ ONLY transactions
Resources
Table schemas - Automatic discovery of tables and columns with their types, keys, and constraints
Installation
Docker
NPM
NPX
Usage
Add to your MCP's config:
Using Docker image (recommended)
Using local Docker
Using NPX
Note: When using Docker to connect to a MySQL server on your host machine, use host.docker.internal instead of localhost.
Connection String Format
Development
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides read-only access to MySQL databases with automatic schema discovery and secure query execution. Enables users to explore database structure and execute SELECT queries through natural language interactions.