MySQL MCP Server

io.github.musaddiq-dev/mysql-mcp-server

Python MCP server for MySQL database inspection and querying

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mysql-mcp-server": {
      "command": "uvx",
      "args": [
        "mdev-mysql-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
        "MYSQL_DATABASE": "<your MYSQL_DATABASE>",
        "MYSQL_POOL_SIZE": "5",
        "LOG_LEVEL": "INFO",
        "MYSQL_READ_QUERY_LIMIT": "1000"
      }
    }
  }
}
Environment variables
  • MYSQL_HOSTMySQL host
  • MYSQL_PORTMySQL port
  • MYSQL_USERMySQL username
  • MYSQL_PASSWORDsecretMySQL password
  • MYSQL_DATABASErequiredMySQL database name
  • MYSQL_POOL_SIZEMySQL connection pool size
  • LOG_LEVELPython logging level
  • MYSQL_READ_QUERY_LIMITMaximum rows returned by read queries

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
0.1.2
Registry
active
Published
5/23/2026
Browse all Databases →

Add the badge to your site

Show visitors that MySQL MCP Server is listed here — it’s also the link we check for a free listing.

MySQL MCP Server — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-musaddiq-dev-mysql-mcp-server?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MySQL MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![MySQL MCP Server — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-musaddiq-dev-mysql-mcp-server?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.