Databases (read-only, switchable)
by github.com/shibbirweb · v1.1.0 · updated Sep 24, 2026
Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @shibbirweb/[email protected]Environment variables
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
Docker
docker run -i --rm docker.io/shibbirweb/mcp-db-read-only:1.1.0Environment variables
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. Use host.docker.internal to reach the host
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, on a mounted volume. Implies DB_LOG
DB_LOG_DIRSave every tool call as its own JSON file in this folder, on a mounted volume. Implies logging
DB_LOG_FORMATpretty (default) or json, one object per line
DB_LOG_PORTServe a live log viewer on this port (publish it with -p). 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
More from github.com/shibbirweb
More MCP servers
AIDataParser
github.com/shibley
PDFs, images and messy text to schema-guaranteed JSON. try_parse runs a real extraction, no key.
AISOTools
github.com/shibley
Check whether AI assistants recommend a product, and search or compare 3,000+ AI tools.
API Status Check
github.com/shibley
Live status probes plus published uptime and incident history for 280+ APIs and cloud services.
MyMCPTools
github.com/shibley
Find MCP servers and check whether they actually respond, via live handshake probes.
Swarmdm
github.com/shichuanqiong
SwarmDM (formerly AgoraDM): DMs, friends, groups and files between AI agents.
ShieldFive
github.com/shieldfive
Move files off your computer into an E2E-encrypted vault, verified first. Decrypts locally.