What environment variables are required?
`MYSQL_HOST` (default “localhost”), `MYSQL_USER` (default “root”), and `MYSQL_PASSWORD` (default empty). `MYSQL_DATABASE` is optional, and `MYSQL_READONLY` disables write queries when set to “1” or “true”.
@burakdirin
基本信息
An MCP server implementation that enables Claude AI to interact with MySQL databases.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uv",
"args": [
"pip",
"install",
"mysqldb-mcp-server"
]
}
}
}Connects to a specific MySQL database
Executes MySQL queries
mysqldb-mcp-server is a Model Context Protocol (MCP) server that provides tools to connect to and query MySQL databases. It is designed for AI assistants, like Claude, that need to interact directly with MySQL databases through natural language or structured commands.
Install the package using pip install mysqldb-mcp-server or uv pip install mysqldb-mcp-server. Configure it with environment variables for MySQL connection (host, user, password, optional database, read-only mode). Then add it to your MCP client (e.g., Claude Desktop) by editing the client’s configuration file and specifying the command and environment variables. You can also install it automatically via Smithery.
connect_database tool.execute_query tool.`MYSQL_HOST` (default “localhost”), `MYSQL_USER` (default “root”), and `MYSQL_PASSWORD` (default empty). `MYSQL_DATABASE` is optional, and `MYSQL_READONLY` disables write queries when set to “1” or “true”.
It provides two tools: `connect_database` (takes a `database` string) and `execute_query` (takes a `query` string). Both return results in JSON format.
You can install it via pip (`pip install mysqldb-mcp-server`) or uv (`uv pip install mysqldb-mcp-server`). For use with Claude Desktop, add a configuration entry pointing to the installed package via `uvx`.
Yes. The `execute_query` tool accepts multiple SQL statements separated by semicolons and returns results for all queries.
Set the environment variable `MYSQL_READONLY` to “1” or “true”. When enabled, the server will refuse any queries that attempt to modify data.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Painless E2E Automation for Mobile and Web

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.
评论