Data & APIs

MySQL MCP

MySQL MCP provides your AI assistant with direct access to MySQL databases. Execute queries, inspect schemas, analyze table structures, and manage database content. Includes configurable read-only mode, query validation, and connection pooling for safe production use.

Stars

920

Installs

65.0k

License

MIT

Kind

MCP

Trust evidence

Verified

Verified MCP — curated catalog entry with reviewed setup metadata.

  • Stars: 920 · catalog
  • Freshness: Updated 2026-01-22
  • Used in 0 known stacks (editorial graph may still apply)

Prerequisites

  • · Host app that loads MCP config (Cursor, Claude Desktop, etc.)
  • · Environment: MYSQL_HOST
  • · Environment: MYSQL_USER
  • · Environment: MYSQL_PASSWORD
  • · Environment: MYSQL_DATABASE
  • · Node.js 18+

Reference command

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["-y", "@benborla29/mcp-server-mysql"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_USER": "<your-user>",
        "MYSQL_PASSWORD": "<your-password>",
        "MYSQL_DATABASE": "<your-database>"
      }
    }
  }
}

Often stacked with