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.

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.
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

The article (der, die, das) of 90,000 German nouns, compounds included, plus a checker that finds wrong articles in German text (“mit der Zug” → dem). Uses dictionary data, not AI guessing. Free, no login.

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
MCP Toolbox for Databases is an open source MCP server for databases.
评论