MySQL (read-only, switchable) MCP Server

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

Local serverstdio

What is the MySQL (read-only, switchable) MCP Server?

MySQL (read-only, switchable) is an MCP integration. Read-only MySQL access, with the database and server switchable mid-conversation.

Packages and local setup

The published npm package is @shibbirweb/mcp-mysql-read-only, version 1.1.6. Its declared MCP transport is stdio.

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

The published oci package is docker.io/shibbirweb/mcp-mysql-read-only:1.1.6. Its declared MCP transport is stdio.

The package declares MYSQL_HOST: Hostname of the MySQL server. Use host.docker.internal to reach the host; MYSQL_PORT: Port of the MySQL server. Defaults to 3306; MYSQL_USER: MySQL user. Prefer an account holding only SELECT grants; MYSQL_PASSWORD: Password for MYSQL_USER. Empty when the account has none; MYSQL_DATABASE: Database to open at startup. Can be changed later without restarting; MYSQL_PROFILES: JSON object of named connections to switch between, keyed by profile name; MYSQL_DEFAULT_PROFILE: Which MYSQL_PROFILES entry to start on; MYSQL_CONNECT_TIMEOUT_MS: Connection timeout in milliseconds. Defaults to 10000; MYSQL_QUERY_TIMEOUT_MS: Server-side query timeout in milliseconds. Defaults to 30000.

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository · Project website. This profile uses version 1.1.6 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related databases MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
MYSQL_HOSTHostname of the MySQL server. Defaults to 127.0.0.1Optional
MYSQL_PORTPort of the MySQL server. Defaults to 3306Optional
MYSQL_USERMySQL user. Prefer an account holding only SELECT grantsOptional
MYSQL_PASSWORDPassword for MYSQL_USER. Empty when the account has noneOptional
MYSQL_DATABASEDatabase to open at startup. Can be changed later without restartingOptional
MYSQL_PROFILESJSON object of named connections to switch between, keyed by profile nameOptional
MYSQL_DEFAULT_PROFILEWhich MYSQL_PROFILES entry to start onOptional
MYSQL_CONNECT_TIMEOUT_MSConnection timeout in milliseconds. Defaults to 10000Optional
MYSQL_QUERY_TIMEOUT_MSServer-side query timeout in milliseconds. Defaults to 30000Optional