mysql_mcp_server
MCP server for exploring and querying MySQL from AI clients
Install
See setup instructions on designcomputer.comWhat it does
This package is a Model Context Protocol server that lets AI hosts work with MySQL databases through a defined set of tools and prompts. It can list tables, describe schema details, pull small data samples, and run SQL statements, while validating table and database identifiers to reduce injection risk. Two guided prompts walk a client through surveying a whole database or examining a single table.
It is aimed at developers and analysts who want an assistant to inspect or query MySQL without building custom glue code. Setup is done with pip or uvx, and connection settings such as host, port, user, password, optional database, SSL mode, timeouts, and SQL mode are supplied as environment variables. Claude Desktop, Claude Code, and VS Code are shown as example hosts; a custom connector is documented by the provider.
Transports include standard input/output and a Streamable HTTP/SSE mode, which has no built-in authentication and should sit behind an authenticating reverse proxy if exposed. Only single SQL statements are accepted, sampling is capped at 20 rows, and environment files may not be discovered when the server is launched from a client's own directory. SSH tunneling is available for remote databases.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 1,422
- Last push
- Oct 28, 2026
- License
- MIT
- Archived
- No
Other MySQL MCP servers
Compare serversFAQ
- What license does mysql_mcp_server use?
- MIT
- Does mysql_mcp_server run locally or remotely?
- It runs locally.
- Is mysql_mcp_server an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/mysql-mcp-server-2"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.