Skip to main content

MySQL (read-only, switchable)

io.github.shibbirweb/mcp-mysql-read-only

v1.1.6Updated Sep 24, 2026stdio · npmstdio · Docker

Read-only MySQL access, with the database and server switchable mid-conversation.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add mcp-mysql-read-only -- npx -y @shibbirweb/[email protected]

Configuration

9 settings.

  • MYSQL_PASSWORD
    Env var· optional· secret
    Password for MYSQL_USER. Empty when the account has none
  • MYSQL_PROFILES
    Env var· optional· secret
    JSON object of named connections to switch between, keyed by profile name
  • MYSQL_HOST
    Env var· optional
    Hostname of the MySQL server. Defaults to 127.0.0.1
  • MYSQL_PORT
    Env var· optional
    Port of the MySQL server. Defaults to 3306
  • MYSQL_USER
    Env var· optional
    MySQL user. Prefer an account holding only SELECT grants
  • MYSQL_DATABASE
    Env var· optional
    Database to open at startup. Can be changed later without restarting
Show 3 more
  • MYSQL_DEFAULT_PROFILE
    Env var· optional
    Which MYSQL_PROFILES entry to start on
  • MYSQL_CONNECT_TIMEOUT_MS
    Env var· optional
    Connection timeout in milliseconds. Defaults to 10000
  • MYSQL_QUERY_TIMEOUT_MS
    Env var· optional
    Server-side query timeout in milliseconds. Defaults to 30000

Listed in the official MCP Registry since Sep 24, 2026. Mirrored daily; last checked Nov 26, 2026.