MySQL-MCP-Server
If you are the rightful owner of MySQL-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides an interface for AI models to interact with MySQL databases through natural language queries.
The MySQL MCP Server is a package that establishes a Model Context Protocol server to connect with a MySQL database, allowing AI models to execute SQL queries through natural language. This server acts as an intermediary, enabling AI models like Claude to interact with MySQL databases without needing direct access. It is designed to facilitate seamless communication between AI models and databases, translating natural language queries into SQL commands. The server requires Python 3.11 or above and a MySQL database. Installation can be done via pip or UV, and configuration is managed through environment variables such as DB_HOST, DB_USER, DB_PASSWORD, and DB_NAME. The server supports various usage options, including integration with Cursor, Python code, and manual execution.
Features
- Natural Language Query Translation: Converts natural language queries into SQL commands.
- Secure Database Interaction: Allows AI models to interact with databases without direct access.
- Flexible Configuration: Supports environment variable configuration for database connection.
- Multiple Usage Options: Can be used with Cursor, Python code, or run manually.
- SQL Execution Tool: Provides a tool to execute SQL queries against the MySQL database.
Tools
MySQL Connector
Used to establish a connection to a MySQL database
MCP Python SDK
Provides implementation and server configuration support for MCP protocol