
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that connects to a MySQL database and lets AI models run SQL queries through a read_query tool.
MySQL MCP Server is cataloged as an MCP server attributed to gopikapeenikkal. A Model Context Protocol server that connects to a MySQL database and lets AI models run SQL queries through a read_query tool. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MySQL MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The documented tool is read_query, described as executing a SQL SELECT query against the database.
It uses the DB_HOST, DB_USER, DB_PASSWORD and DB_NAME environment variables, which can be set in a .env file or directly in the environment.
README.md · fa8a6d0bed3f · Fetched 2026-11-13 13:20:04 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides an interface for AI models to interact with MySQL databases through natural language queries.
This package creates an MCP server that connects to a MySQL database and exposes a tool to execute SQL queries. It allows AI models like Claude to interact with your MySQL database without direct database access.
You can install the MCP MySQL server using pip:
pip install mcp_mysql_connect
Or using UV:
uv pip install mcp_mysql_connect
The server requires the following environment variables:
DB_HOST - MySQL server hostDB_USER - MySQL usernameDB_PASSWORD - MySQL passwordDB_NAME - MySQL database nameYou can set these using a .env file or directly in your environment.
Add the following to your ~/.cursor/mcp.json configuration:
"mysql-mcp-server": {
"command": "uvx",
"args": [
"--from",
"mcp_mysql_connect",
"mcp_mysql_connect"
],
"env": {
"DB_HOST": "your-mysql-host",
"DB_USER": "your-username",
"DB_PASSWORD": "your-password",
"DB_NAME": "your-database"
}
}
Alternative configuration:
"mysql-mcp-server": {
"command": "uv",
"args": [
"run",
"--with",
"mcp_mysql_connect",
"-m",
"mcp_mysql_connect"
],
"env": {
"DB_HOST": "your-mysql-host",
"DB_USER": "your-username",
"DB_PASSWORD": "your-password",
"DB_NAME": "your-database"
}
}
from mcp.client import Client
from mcp.tools import Tools
# Connect to the MySQL MCP server
tools = Tools()
tools.add_server("mysql", "mcp_mysql_connect")
# Create a client with the tools
client = Client(tools=tools)
# Example query
response = client.complete(
messages=[
{"role": "user", "content": "Query all users from the database"}
]
)
print(response.content)
Start the server manually:
# Set environment variables first
export DB_HOST=your-mysql-host
export DB_USER=your-username
export DB_PASSWORD=your-password
export DB_NAME=your-database
# Then run the server
python -m mcp_mysql_connect
The server provides a SQL execution tool that can be used to query your MySQL database:
read_query(query: str, params: List[str] = None) - Execute a SQL SELECT query against the databaseWhen using with Claude or other AI models, you can ask natural language questions like:
The AI model will translate these into SQL queries and use the MCP server to execute them.
MIT License
Contributions welcome! Please feel free to submit a Pull Request.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MySQL MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mysql-mcp-server-gopikapeenikkal)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.