MCP Server — daedalus/mcp-mysql-connector

MCP server exposing MySQL database functionalities as tools

Local serverstdioPython

What is the MCP Server?

MCP server exposing MySQL database functionalities as tools

What the server does

mcp-mysql-connector is a Model Context Protocol (MCP) server that provides MySQL database operations as tools for LLM agents. It allows AI assistants to interact with MySQL databases through a standardized protocol, enabling:

Credentials and setup notes

  • Python 3.11+ - fastmcp >= 2.0.0 - pymysql >= 1.1.0 - sqlparse >= 0.4.0

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the MCP Server

{
  "mcpServers": {
    "mysql-connector": {
      "command": "uvx",
      "args": ["mcp-mysql-connector"],
      "env": {
        "MYSQL_HOST": "your-value",
        "MYSQL_PORT": "your-value",
        "MYSQL_USER": "your-value",
        "MYSQL_PASSWORD": "your-value",
        "MYSQL_DATABASE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11+ - fastmcp >= 2.0.0 - pymysql >= 1.1.0 - sqlparse >= 0.4.0
VariableDescriptionRequired
MYSQL_HOSTEndpoint or connection string the server talks to.Optional
MYSQL_PORTConfiguration value read at startup.Optional
MYSQL_USERConfiguration value read at startup.Optional
MYSQL_PASSWORDConfiguration value read at startup.Optional
MYSQL_DATABASEConfiguration value read at startup.Optional

Example prompts to try

  • “Use MCP to Configuration.”

Frequently asked questions

MCP server exposing MySQL database functionalities as tools Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.