Databases (read-only, switchable)
io.github.shibbirweb/mcp-db-read-only
v1.1.0Updated Sep 24, 2026stdio · npmstdio · Docker
Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add mcp-db-read-only -- npx -y @shibbirweb/[email protected]Configuration
16 settings.
DB_PASSWORDEnv var· optional· secretPassword for DB_URL, so it need not be percent-encoded inside the URLDB_PROFILESEnv var· optional· secretJSON object of named connections to switch between, each a URL or {"url", "password"}MYSQL_PASSWORDEnv var· optional· secretLegacy MySQL-only form. Prefer DB_URL with DB_PASSWORDDB_URLEnv var· optionalConnection URL to open at startup, e.g. postgres://user@host:5432/db, mongodb://user@host/db, redis://host:6379/0 or sqlite:///data/app.dbDB_DEFAULT_PROFILEEnv var· optionalWhich DB_PROFILES entry to start onDB_CONNECT_TIMEOUT_MSEnv var· optionalConnection timeout in milliseconds. Defaults to 10000
Show 10 moreShow fewer
DB_QUERY_TIMEOUT_MSEnv var· optionalServer-side query timeout in milliseconds. Defaults to 30000DB_LOGEnv var· optionaltrue logs every tool call, its statements and full output to stderr. Off by defaultDB_LOG_FILEEnv var· optionalLog every tool call to this file instead. Implies DB_LOGDB_LOG_DIREnv var· optionalSave every tool call as its own JSON file in this folder, permanently. Implies loggingDB_LOG_FORMATEnv var· optionalpretty (default) or json, one object per lineDB_LOG_PORTEnv var· optionalServe a live log viewer in the browser on this port. Needs DB_LOG_DIR, DB_LOG or DB_LOG_FILE. No access controlDB_LOG_HISTORYEnv var· optionalEntries the viewer keeps in memory when DB_LOG_DIR is not set. Defaults to 500MYSQL_HOSTEnv var· optionalLegacy MySQL-only form, kept for drop-in compatibility. Prefer DB_URLMYSQL_USEREnv var· optionalLegacy MySQL-only form. Prefer DB_URLMYSQL_DATABASEEnv var· optionalLegacy MySQL-only form. Prefer DB_URL
Links
Listed in the official MCP Registry since Sep 24, 2026. Mirrored daily; last checked Nov 26, 2026.