PluginBench
MCP Server
Maintained
MIT

MySQL Ops MCP MCP Server

io.github.GT-dinuo/mysql-ops-mcp

What is the MySQL Ops MCP MCP server?

MySQL MCP server: browse schema, query, CRUD. Delete/drop gated by user approval.

How to install MySQL Ops MCP

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • DB_HOST

    MySQL host, default localhost

  • DB_PORT

    MySQL port, default 3306

  • DB_USER

    MySQL user, default root

  • DB_PASSWORD
    secret

    MySQL password

  • DB_DATABASE

    Default database; can also be passed per tool call

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mysql-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mysql-ops-mcp"
      ],
      "env": {
        "DB_HOST": "<YOUR_DB_HOST>",
        "DB_PORT": "<YOUR_DB_PORT>",
        "DB_USER": "<YOUR_DB_USER>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>",
        "DB_DATABASE": "<YOUR_DB_DATABASE>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "mysql-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mysql-ops-mcp"
      ],
      "env": {
        "DB_HOST": "<YOUR_DB_HOST>",
        "DB_PORT": "<YOUR_DB_PORT>",
        "DB_USER": "<YOUR_DB_USER>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>",
        "DB_DATABASE": "<YOUR_DB_DATABASE>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mysql-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mysql-ops-mcp"
      ],
      "env": {
        "DB_HOST": "<YOUR_DB_HOST>",
        "DB_PORT": "<YOUR_DB_PORT>",
        "DB_USER": "<YOUR_DB_USER>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>",
        "DB_DATABASE": "<YOUR_DB_DATABASE>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "mysql-ops-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mysql-ops-mcp"
      ],
      "env": {
        "DB_HOST": "<YOUR_DB_HOST>",
        "DB_PORT": "<YOUR_DB_PORT>",
        "DB_USER": "<YOUR_DB_USER>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>",
        "DB_DATABASE": "<YOUR_DB_DATABASE>"
      }
    }
  }
}
Claude Code
claude mcp add mysql-ops-mcp --env DB_HOST=<YOUR_DB_HOST> --env DB_PORT=<YOUR_DB_PORT> --env DB_USER=<YOUR_DB_USER> --env DB_PASSWORD=<YOUR_DB_PASSWORD> --env DB_DATABASE=<YOUR_DB_DATABASE> -- npx -y mysql-ops-mcp

Related MCP servers

Server Ops MCP

Maintained

Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.

0
TypeScript
MIT
View repository →