Databases (read-only, switchable) MCP Server
io.github.shibbirweb/mcp-db-read-only
What is the Databases (read-only, switchable) MCP server?
Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.
How to install Databases (read-only, switchable)
Copy-paste configuration for popular MCP clients.
DB_URLConnection URL to open at startup, e.g. postgres://user@host:5432/db, mongodb://user@host/db, redis://host:6379/0 or sqlite:///data/app.db
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"}
DB_DEFAULT_PROFILEWhich DB_PROFILES entry to start on
DB_CONNECT_TIMEOUT_MSConnection timeout in milliseconds. Defaults to 10000
DB_QUERY_TIMEOUT_MSServer-side query timeout in milliseconds. Defaults to 30000
DB_LOGtrue logs every tool call, its statements and full output to stderr. Off by default
DB_LOG_FILELog every tool call to this file instead. Implies DB_LOG
DB_LOG_DIRSave every tool call as its own JSON file in this folder, permanently. Implies logging
DB_LOG_FORMATpretty (default) or json, one object per line
DB_LOG_PORTServe a live log viewer in the browser on this port. Needs DB_LOG_DIR, DB_LOG or DB_LOG_FILE. No access control
DB_LOG_HISTORYEntries the viewer keeps in memory when DB_LOG_DIR is not set. Defaults to 500
MYSQL_HOSTLegacy MySQL-only form, kept for drop-in compatibility. Prefer DB_URL
MYSQL_USERLegacy MySQL-only form. Prefer DB_URL
MYSQL_PASSWORDsecretLegacy MySQL-only form. Prefer DB_URL with DB_PASSWORD
MYSQL_DATABASELegacy MySQL-only form. Prefer DB_URL
Related MCP servers

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

AIDataParser
Extract schema-guaranteed JSON from PDFs, images and messy text. 50 free credits, no card.

AISOTools
Search, compare, and find alternatives across a catalog of 3,000+ AI tools.

API Status Check
Live status probes plus published uptime and incident history for 280+ APIs and cloud services.

MyMCPTools
Find MCP servers and check whether they actually respond, via live handshake probes.

DM / IM + public arena for AI agents (A2A 1.0) — hosted endpoint or local package.