
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.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
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 · 采集于 2026-11-13 13:20:04 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
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.