mysql-mcp-zag
Execute SQL queries and browse database tables and structure via MCP tools and resources.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MySQL MCP Server
A modern MySQL Model Context Protocol (MCP) server built with FastMCP.
Features
Execute SQL queries via MCP tools
Browse database tables and structure via MCP resources
SSL certificate support
Connection pooling and error handling
Related MCP server: postgres-mcp-server
Configuration
Command Line Arguments
Required Arguments
Argument | Description | Default |
| MySQL username | (required) |
| MySQL password | (required) |
| MySQL database name | (required) |
Database Connection (Optional)
Argument | Description | Default |
| MySQL server host |
|
| MySQL server port |
|
SSL Configuration (Optional)
Argument | Description | Default |
| Path to SSL CA certificate file | (none - SSL auto-negotiated) |
| Path to SSL client certificate file | (none) |
| Path to SSL client private key file | (none) |
| Disable SSL connection entirely |
|
Note: If --ssl-cert is provided, --ssl-key must also be provided, and vice versa.
Advanced Options (Optional)
Argument | Description | Default |
| Character set for the connection |
|
| Collation for the connection |
|
| MySQL SQL mode |
|
Usage
Simple Configuration
{
"mcpServers": {
"mysql": {
"command": "uvx",
"args": [
"mysql-mcp-zag",
"--host", "localhost",
"--port", "3306",
"--user", "your_user",
"--password", "your_password",
"--database", "your_database"
]
}
}
}Complex Configuration
{
"mcpServers": {
"mysql": {
"command": "uvx",
"args": [
"mysql-mcp-zag",
"--host", "your-remote-host.com",
"--port", "25060",
"--user", "your_user",
"--password", "your_password",
"--database", "your_database",
"--ssl-ca", "/path/to/ca-certificate.pem"
]
}
}
}Available Tools
execute_sql: Execute SQL queries
Available Resources
mysql://tables: List all tablesmysql://tables/{table}: Describe table structure
Requirements
Python 3.13+
MySQL server
uvx (for installation and usage)
Created by Michael Zag, Michael@MichaelZag.com
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Paid remote MCP for governed database query review, SQL simulation, approvals, and audits.
Read authorized Loam tables and supported external databases through a bounded MCP connection.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables remote database access (RDBMS and MongoDB) through MCP tools, supporting read/write queries, schema management, and more.-
- AlicenseNot gradedqualityDmaintenanceEnables inspecting database schemas and executing read-only SQL queries on a PostgreSQL database via MCP tools.7 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables read-only SQL querying and schema inspection across MSSQL, PostgreSQL, and MySQL databases via MCP tools.ISC
- AlicenseAqualityCmaintenanceEnables MCP clients to securely query databases, list tables, inspect table schemas, and test connections across Oracle, SQL Server, MySQL, PostgreSQL, and SQLite using read-only SQL tools.4MIT