LocalFree

MySQL MCP server

gistrec/mcp-mysql-client

MCP server for one MySQL database: schema, read-only queries and guarded writes.

0 GitHub stars338 npm downloads / month

Install MySQL in Claude Code

Claude Code
claude mcp add gistrec-mysql -e MYSQL_USER=... -e MYSQL_DB=... -- npx -y mcp-mysql-client
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "gistrec-mysql": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mysql-client"
      ],
      "env": {
        "MYSQL_USER": "...",
        "MYSQL_DB": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the MySQL MCP server do?

MCP server for one MySQL database: schema, read-only queries and guarded writes.

Is the MySQL MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does MySQL run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add MySQL to Claude Code?

Run: claude mcp add gistrec-mysql -e MYSQL_USER=... -e MYSQL_DB=... -- npx -y mcp-mysql-client

More databases MCP servers

View all