{
  "slug": "io-github-shibbirweb-mcp-db-read-only",
  "name": "io.github.shibbirweb/mcp-db-read-only",
  "title": "Databases (read-only, switchable)",
  "description": "Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.",
  "version": "1.1.0",
  "publishedAt": "2026-09-24T20:40:20.107595Z",
  "updatedAt": "2026-09-24T20:40:20.107595Z",
  "repoUrl": "https://github.com/shibbirweb/mcp-db-read-only",
  "websiteUrl": "https://github.com/shibbirweb/mcp-db-read-only#readme",
  "namespace": {
    "type": "github",
    "owner": "shibbirweb"
  },
  "kind": "local",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@shibbirweb/mcp-db-read-only",
      "version": "1.1.0",
      "transport": "stdio",
      "runtimeHint": null
    },
    {
      "registryType": "oci",
      "identifier": "docker.io/shibbirweb/mcp-db-read-only:1.1.0",
      "version": null,
      "transport": "stdio",
      "runtimeHint": null
    }
  ],
  "remotes": [],
  "envVars": [
    {
      "name": "DB_URL",
      "isSecret": false,
      "isRequired": false,
      "description": "Connection 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"
    },
    {
      "name": "DB_PASSWORD",
      "isSecret": true,
      "isRequired": false,
      "description": "Password for DB_URL, so it need not be percent-encoded inside the URL"
    },
    {
      "name": "DB_PROFILES",
      "isSecret": true,
      "isRequired": false,
      "description": "JSON object of named connections to switch between, each a URL or {\"url\", \"password\"}"
    },
    {
      "name": "DB_DEFAULT_PROFILE",
      "isSecret": false,
      "isRequired": false,
      "description": "Which DB_PROFILES entry to start on"
    },
    {
      "name": "DB_CONNECT_TIMEOUT_MS",
      "isSecret": false,
      "isRequired": false,
      "description": "Connection timeout in milliseconds. Defaults to 10000"
    },
    {
      "name": "DB_QUERY_TIMEOUT_MS",
      "isSecret": false,
      "isRequired": false,
      "description": "Server-side query timeout in milliseconds. Defaults to 30000"
    },
    {
      "name": "DB_LOG",
      "isSecret": false,
      "isRequired": false,
      "description": "true logs every tool call, its statements and full output to stderr. Off by default"
    },
    {
      "name": "DB_LOG_FILE",
      "isSecret": false,
      "isRequired": false,
      "description": "Log every tool call to this file instead. Implies DB_LOG"
    },
    {
      "name": "DB_LOG_DIR",
      "isSecret": false,
      "isRequired": false,
      "description": "Save every tool call as its own JSON file in this folder, permanently. Implies logging"
    },
    {
      "name": "DB_LOG_FORMAT",
      "isSecret": false,
      "isRequired": false,
      "description": "pretty (default) or json, one object per line"
    },
    {
      "name": "DB_LOG_PORT",
      "isSecret": false,
      "isRequired": false,
      "description": "Serve a live log viewer in the browser on this port. Needs DB_LOG_DIR, DB_LOG or DB_LOG_FILE. No access control"
    },
    {
      "name": "DB_LOG_HISTORY",
      "isSecret": false,
      "isRequired": false,
      "description": "Entries the viewer keeps in memory when DB_LOG_DIR is not set. Defaults to 500"
    },
    {
      "name": "MYSQL_HOST",
      "isSecret": false,
      "isRequired": false,
      "description": "Legacy MySQL-only form, kept for drop-in compatibility. Prefer DB_URL"
    },
    {
      "name": "MYSQL_USER",
      "isSecret": false,
      "isRequired": false,
      "description": "Legacy MySQL-only form. Prefer DB_URL"
    },
    {
      "name": "MYSQL_PASSWORD",
      "isSecret": true,
      "isRequired": false,
      "description": "Legacy MySQL-only form. Prefer DB_URL with DB_PASSWORD"
    },
    {
      "name": "MYSQL_DATABASE",
      "isSecret": false,
      "isRequired": false,
      "description": "Legacy MySQL-only form. Prefer DB_URL"
    }
  ],
  "category": "databases",
  "subcategory": "sql",
  "company": "",
  "categoryAuto": true,
  "checks": [
    {
      "id": "source-linked",
      "label": "Source repository linked",
      "result": "pass",
      "detail": "https://github.com/shibbirweb/mcp-db-read-only"
    },
    {
      "id": "version-pinned",
      "label": "Version pinned",
      "result": "pass",
      "detail": "Every package has an explicit version"
    },
    {
      "id": "secrets-requested",
      "label": "Secrets requested",
      "result": "warn",
      "detail": "Asks for 3 secrets: DB_PASSWORD, DB_PROFILES, MYSQL_PASSWORD"
    },
    {
      "id": "known-registry",
      "label": "Known package registry",
      "result": "pass",
      "detail": "All packages come from npm, PyPI, OCI, NuGet or MCPB"
    },
    {
      "id": "namespace",
      "label": "Namespace ownership",
      "result": "info",
      "detail": "Name verified via GitHub account shibbirweb"
    },
    {
      "id": "meta-text",
      "label": "Registry text aimed at the AI",
      "result": "pass",
      "detail": "Description and settings contain no hidden characters or instructions to the AI"
    },
    {
      "id": "install-scripts",
      "label": "Install scripts",
      "result": "pass",
      "detail": "@shibbirweb/mcp-db-read-only@1.1.0 runs nothing at install"
    },
    {
      "id": "code-flags",
      "label": "Code red flags",
      "result": "pass",
      "detail": "Read 114 files in @shibbirweb/mcp-db-read-only@1.1.0: no obfuscation, encoded execution, credential reads or data-collection endpoints found"
    },
    {
      "id": "ai-text",
      "label": "Text aimed at the AI",
      "result": "pass",
      "detail": "No hidden characters or instructions to the AI in 114 files, including comments and the README"
    }
  ],
  "scannedAt": "2026-10-29",
  "level": "Scanned",
  "install": [
    {
      "label": "Claude Desktop (npm)",
      "kind": "claude_desktop_json",
      "text": "{\n  \"mcpServers\": {\n    \"mcp-db-read-only\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@shibbirweb/mcp-db-read-only@1.1.0\"\n      ]\n    }\n  }\n}"
    },
    {
      "label": "Claude Desktop (oci)",
      "kind": "claude_desktop_json",
      "text": "{\n  \"mcpServers\": {\n    \"mcp-db-read-only\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"docker.io/shibbirweb/mcp-db-read-only:1.1.0\"\n      ]\n    }\n  }\n}"
    }
  ],
  "curated": true,
  "stars": 0,
  "archived": false,
  "pushedAt": "2026-10-09T05:29:39Z",
  "health": {
    "score": 53,
    "parts": {
      "popularity": 0.1751859296334452,
      "activity": 0.8914934753568682,
      "issues": null,
      "security": 0.8
    },
    "fail": 0,
    "warn": 1,
    "raw": {
      "stars": 0,
      "forks": 0,
      "downloads": 71,
      "hn": null,
      "issuesOpen": 0,
      "issuesClosed": 0,
      "prsMerged": 3,
      "commits90": 19,
      "release": "2026-09-24T20:34:54Z",
      "pushed": "2026-10-09T05:29:39Z",
      "growth": null,
      "growthDays": null,
      "archived": false
    },
    "at": "2026-10-31T07:42:38.200Z"
  }
}
