Skip to content
Agent Search Engine.

Record · mysql-mcp-seMCP serverOpen sourceVerified Sep 23, 2026

MySQL MCP Server

A Python MCP server for listing, reading and querying MySQL tables through a controlled interface.

Sources and review

Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.

Best for

Querying MySQL from an MCP client in a Python environment.

About MySQL MCP Server

This community MySQL MCP server lists tables as resources, reads table contents and executes SQL with error handling. It supports a multi-database mode, SSH tunnelling and both stdio and streamable HTTP transports, with the HTTP mode suggested for remote or self-hosted deployments.

MySQL MCP Server is an open-source project written primarily in Python, with 1.4k stars on GitHub. It was last updated in August 2026.

Add MySQL MCP Server to your MCP client

Generated from the launch command in the project's README. Your client starts the server on demand. Replace <user>, <password> and <database> with your own values first.

Claude CodeRun in your terminal
claude mcp add mysql-mcp-server -e MYSQL_HOST=localhost -e 'MYSQL_USER=<user>' -e 'MYSQL_PASSWORD=<password>' -e 'MYSQL_DATABASE=<database>' -- uvx mysql_mcp_server
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "mysql-mcp-server": {
      "command": "uvx",
      "args": ["mysql_mcp_server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_USER": "<user>",
        "MYSQL_PASSWORD": "<password>",
        "MYSQL_DATABASE": "<database>"
      }
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "mysql-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mysql_mcp_server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_USER": "<user>",
        "MYSQL_PASSWORD": "<password>",
        "MYSQL_DATABASE": "<database>"
      }
    }
  }
}
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "mysql-mcp-server": {
      "command": "uvx",
      "args": ["mysql_mcp_server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_USER": "<user>",
        "MYSQL_PASSWORD": "<password>",
        "MYSQL_DATABASE": "<database>"
      }
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.mysql-mcp-server]
command = "uvx"
args = ["mysql_mcp_server"]
env = { MYSQL_HOST = "localhost", MYSQL_USER = "<user>", MYSQL_PASSWORD = "<password>", MYSQL_DATABASE = "<database>" }

Check the project's README for required accounts, keys and permissions before connecting. Setup guide for each client →

For agent buildersMake your product part of the discovery.Explore advertising

MySQL MCP Server vs. the alternatives

All 163 alternatives →
RecordStarsPricing
MySQL MCP ServerMCP serverthis listing1.4kOpen source
MCP Reference ServersMCP server91kOpen source
context7MCP server62kOpen source
chrome-devtools-mcpMCP server53kOpen source
Playwright MCPMCP server37kOpen source
github-mcp-serverMCP server33kOpen source

See all 163 MySQL MCP Server alternatives, compared →