AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

MySQL (read-only, switchable)

Community

MCP server by shibbirweb · updated · ★ 0 · 31 downloads a week

Score 64

Read-only MySQL access, with the database and server switchable mid-conversation. MySQL (read-only, switchable) is a community project by shibbirweb, not verified by a company domain.

Yours? Claim it
Maintenance

Last commit 14 days ago

Licence

MIT: permissive, fine for commercial use

Quality

Clear description, published package or server URL, original repository

Security

Not checked yet. What we check

What you need

SettingNeededWhat it is
MYSQL_HOSTEnvironment variableOptionalHostname of the MySQL server. Defaults to 127.0.0.1
MYSQL_PORTEnvironment variableOptionalPort of the MySQL server. Defaults to 3306
MYSQL_USEREnvironment variableOptionalMySQL user. Prefer an account holding only SELECT grants
MYSQL_PASSWORDEnvironment variable, secretOptionalPassword for MYSQL_USER. Empty when the account has none
MYSQL_DATABASEEnvironment variableOptionalDatabase to open at startup. Can be changed later without restarting
MYSQL_PROFILESEnvironment variable, secretOptionalJSON object of named connections to switch between, keyed by profile name
MYSQL_DEFAULT_PROFILEEnvironment variableOptionalWhich MYSQL_PROFILES entry to start on
MYSQL_CONNECT_TIMEOUT_MSEnvironment variableOptionalConnection timeout in milliseconds. Defaults to 10000
MYSQL_QUERY_TIMEOUT_MSEnvironment variableOptionalServer-side query timeout in milliseconds. Defaults to 30000

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Install MySQL (read-only, switchable)

Built from the published package, never by AI
claude mcp add mysql-read-only-switchable -- npx -y @shibbirweb/mcp-mysql-read-only

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MySQL (read-only, switchable) in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mysql-read-only-switchable block.

Weekly newsletter

Like MySQL (read-only, switchable)? Get the best new MCP servers every week

The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.

No spam. Unsubscribe in one click. Privacy

Alternatives to MySQL (read-only, switchable)

All alternatives →

MySQL (read-only, switchable): common questions

How do I install MySQL (read-only, switchable)?

In Claude Code run claude mcp add mysql-read-only-switchable -- npx -y @shibbirweb/mcp-mysql-read-only. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MySQL (read-only, switchable) the official server?

MySQL (read-only, switchable) is a community project by shibbirweb, not verified by a company domain.

Is MySQL (read-only, switchable) free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MySQL (read-only, switchable) safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to MySQL (read-only, switchable)?

Similar MCP servers: Supabase, ArcadeDB MCP Server, MCP Toolbox for Databases, MCP Toolbox for Databases.

Does MySQL (read-only, switchable) work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.