Databases (read-only, switchable)

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

Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-db-read-only": {
      "command": "npx",
      "args": [
        "-y",
        "@shibbirweb/mcp-db-read-only@1.1.0"
      ],
      "env": {
        "DB_PASSWORD": "<your DB_PASSWORD>",
        "DB_PROFILES": "<your DB_PROFILES>",
        "MYSQL_PASSWORD": "<your MYSQL_PASSWORD>"
      }
    }
  }
}
Environment variables
  • DB_PASSWORDsecretPassword for DB_URL, so it need not be percent-encoded inside the URL
  • DB_PROFILESsecretJSON object of named connections to switch between, each a URL or {"url", "password"}
  • MYSQL_PASSWORDsecretLegacy MySQL-only form. Prefer DB_URL with DB_PASSWORD

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
1.1.0
Registry
active
Published
9/24/2026
Browse all Databases →

Add the badge to your site

Show visitors that Databases (read-only, switchable) is listed here — it’s also the link we check for a free listing.

Databases (read-only, switchable) — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-shibbirweb-mcp-db-read-only?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Databases (read-only, switchable) — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Databases (read-only, switchable) — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-shibbirweb-mcp-db-read-only?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.