L'Agora
MCPLocal

Databases (read-only, switchable)

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

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

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by shibbirweb

Repository
github.com/shibbirweb/mcp-db-read-only
Website
github.com/shibbirweb/mcp-db-read-only#readme
Version
1.1.0
Author
shibbirweb (namespace verified by the registry)
Source
Official MCP registry (updated Sep 24, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: DB_URL, DB_PASSWORD, DB_PROFILES, DB_DEFAULT_PROFILE, DB_CONNECT_TIMEOUT_MS, DB_QUERY_TIMEOUT_MS, DB_LOG, DB_LOG_FILE, DB_LOG_DIR, DB_LOG_FORMAT, DB_LOG_PORT, DB_LOG_HISTORY, MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add mcp-db-read-only -e DB_URL=YOUR_DB_URL -e DB_PASSWORD=YOUR_DB_PASSWORD -e DB_PROFILES=YOUR_DB_PROFILES -e DB_DEFAULT_PROFILE=YOUR_DB_DEFAULT_PROFILE -e DB_CONNECT_TIMEOUT_MS=YOUR_DB_CONNECT_TIMEOUT_MS -e DB_QUERY_TIMEOUT_MS=YOUR_DB_QUERY_TIMEOUT_MS -e DB_LOG=YOUR_DB_LOG -e DB_LOG_FILE=YOUR_DB_LOG_FILE -e DB_LOG_DIR=YOUR_DB_LOG_DIR -e DB_LOG_FORMAT=YOUR_DB_LOG_FORMAT -e DB_LOG_PORT=YOUR_DB_LOG_PORT -e DB_LOG_HISTORY=YOUR_DB_LOG_HISTORY -e MYSQL_HOST=YOUR_MYSQL_HOST -e MYSQL_USER=YOUR_MYSQL_USER -e MYSQL_PASSWORD=YOUR_MYSQL_PASSWORD -e MYSQL_DATABASE=YOUR_MYSQL_DATABASE -- npx -y @shibbirweb/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "mcp-db-read-only": {
      "command": "npx",
      "args": [
        "-y",
        "@shibbirweb/[email protected]"
      ],
      "env": {
        "DB_URL": "YOUR_DB_URL",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_PROFILES": "YOUR_DB_PROFILES",
        "DB_DEFAULT_PROFILE": "YOUR_DB_DEFAULT_PROFILE",
        "DB_CONNECT_TIMEOUT_MS": "YOUR_DB_CONNECT_TIMEOUT_MS",
        "DB_QUERY_TIMEOUT_MS": "YOUR_DB_QUERY_TIMEOUT_MS",
        "DB_LOG": "YOUR_DB_LOG",
        "DB_LOG_FILE": "YOUR_DB_LOG_FILE",
        "DB_LOG_DIR": "YOUR_DB_LOG_DIR",
        "DB_LOG_FORMAT": "YOUR_DB_LOG_FORMAT",
        "DB_LOG_PORT": "YOUR_DB_LOG_PORT",
        "DB_LOG_HISTORY": "YOUR_DB_LOG_HISTORY",
        "MYSQL_HOST": "YOUR_MYSQL_HOST",
        "MYSQL_USER": "YOUR_MYSQL_USER",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mcp-db-read-only": {
      "command": "npx",
      "args": [
        "-y",
        "@shibbirweb/[email protected]"
      ],
      "env": {
        "DB_URL": "YOUR_DB_URL",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_PROFILES": "YOUR_DB_PROFILES",
        "DB_DEFAULT_PROFILE": "YOUR_DB_DEFAULT_PROFILE",
        "DB_CONNECT_TIMEOUT_MS": "YOUR_DB_CONNECT_TIMEOUT_MS",
        "DB_QUERY_TIMEOUT_MS": "YOUR_DB_QUERY_TIMEOUT_MS",
        "DB_LOG": "YOUR_DB_LOG",
        "DB_LOG_FILE": "YOUR_DB_LOG_FILE",
        "DB_LOG_DIR": "YOUR_DB_LOG_DIR",
        "DB_LOG_FORMAT": "YOUR_DB_LOG_FORMAT",
        "DB_LOG_PORT": "YOUR_DB_LOG_PORT",
        "DB_LOG_HISTORY": "YOUR_DB_LOG_HISTORY",
        "MYSQL_HOST": "YOUR_MYSQL_HOST",
        "MYSQL_USER": "YOUR_MYSQL_USER",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "mcp-db-read-only": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shibbirweb/[email protected]"
      ],
      "env": {
        "DB_URL": "YOUR_DB_URL",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_PROFILES": "YOUR_DB_PROFILES",
        "DB_DEFAULT_PROFILE": "YOUR_DB_DEFAULT_PROFILE",
        "DB_CONNECT_TIMEOUT_MS": "YOUR_DB_CONNECT_TIMEOUT_MS",
        "DB_QUERY_TIMEOUT_MS": "YOUR_DB_QUERY_TIMEOUT_MS",
        "DB_LOG": "YOUR_DB_LOG",
        "DB_LOG_FILE": "YOUR_DB_LOG_FILE",
        "DB_LOG_DIR": "YOUR_DB_LOG_DIR",
        "DB_LOG_FORMAT": "YOUR_DB_LOG_FORMAT",
        "DB_LOG_PORT": "YOUR_DB_LOG_PORT",
        "DB_LOG_HISTORY": "YOUR_DB_LOG_HISTORY",
        "MYSQL_HOST": "YOUR_MYSQL_HOST",
        "MYSQL_USER": "YOUR_MYSQL_USER",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

Databases (read-only, switchable) · L’Agora

[Databases (read-only, switchable) — L’Agora](https://lagora.dev/en/entry/io.github.shibbirweb/mcp-db-read-only)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.shibbirweb/mcp-db-read-only on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.shibbirweb/mcp-db-read-only on L’Agora](https://lagora.dev/badge/io.github.shibbirweb/mcp-db-read-only.svg?lang=en)](https://lagora.dev/en/entry/io.github.shibbirweb/mcp-db-read-only)

HTML

<a href="https://lagora.dev/en/entry/io.github.shibbirweb/mcp-db-read-only"><img src="https://lagora.dev/badge/io.github.shibbirweb/mcp-db-read-only.svg?lang=en" alt="io.github.shibbirweb/mcp-db-read-only on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

SendMock Local

MySQL (read-only, switchable) Local

Report this entry