Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🗄️ Databases
  3. Databases (read Only, switchable)
D
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Databases (read Only, switchable)

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time — check back soon.
View RepositoryVisit Website

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON ▾
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Databases (read-only, switchable), and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing Alternatives🗄️ More in Databases

Documentation Overview

mcp-db-read-only

CI M8ven Score npm npm downloads Docker Hub Docker pulls License: MIT

Let your AI assistant look at your databases without being able to change them.

Point it at MySQL, PostgreSQL, SQLite, SQL Server, ClickHouse, MongoDB, Redis or Elasticsearch, then just ask questions in plain words: "how many users signed up this week?", "what's in the orders table?", "which Redis keys hold sessions?". It can read anything you give it access to, and it cannot write, update or delete anything.

  • Every popular database, one server. Switch between them in the middle of a conversation.
  • Read-only, twice over. Every query is checked before it is sent, and the database itself is also told to refuse writes.
  • No restart to switch. Change database, server or engine by asking.
  • Optional logging, with a live page in your browser that shows every query as it happens.
mermaid
flowchart LR
    Y["You"] -->|"ask in plain words"| AI["Your AI assistant"]
    AI -->|"tool call"| S["mcp-db-read-only"]
    S -->|"read-only query"| DB[("Your databases")]
    DB -->|"rows, documents, keys"| S

Works with Claude Desktop, Claude Code, and any other MCP client.


Quick start

1. Have Node.js 22.13 or newer (node --version), or Docker.

2. Add the server to your client. For Claude Desktop, edit claude_desktop_config.json (Settings, Developer, Edit Config). For Claude Code, create .mcp.json in your project:

config.json
{
  "mcpServers": {
    "databases": {
      "command": "npx",
      "args": ["-y", "@shibbirweb/mcp-db-read-only"],
      "env": {
        "DB_URL": "postgres://readonly:secret@localhost:5432/myapp"
      }
    }
  }
}

Replace the DB_URL with your own database. The examples below show one for every kind.

3. Restart the client once, and ask away:

"What tables are in my database?" "Show me the 5 newest orders." "How many customers are in each country?"

That's it. You never need to restart again to change database; just ask the assistant to switch.


Examples for each database

Each database has a URL format, then a real example to copy and change. Put the finished URL in DB_URL.

Replace each [PLACEHOLDER] with your own value:

PlaceholderWhat to put there
[USER]The database user name
[PASSWORD]That user's password
[HOST]The server's address, e.g. localhost or db.example.com
[PORT]The server's port. Optional: leave out :[PORT] to use the usual one shown for each database
[DATABASE]The database name. Optional for most: leave it out and ask the assistant to list them

No password? Leave out :[PASSWORD]. No user either? Leave out [USER]:[PASSWORD]@ entirely.

MySQL and MariaDB

Format (usual port 3306):

text
mysql://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]
mariadb://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]

Example:

text
mysql://readonly:secret@localhost:3306/shop

"List the tables in shop." · "Describe the orders table." · "What were last month's top 10 products by revenue?"

PostgreSQL

Format (usual port 5432). Add ?sslmode=require to use TLS:

text
postgres://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]

Example:

text
postgres://readonly:secret@localhost:5432/myapp

"Which tables are in the reporting schema?" · "Show the foreign keys on invoices." · "Count signups per day this week."

SQLite

Format (three slashes, then the full path to the file):

text
sqlite:///[PATH_TO_FILE]

Example:

text
sqlite:///Users/me/data/app.db

The file is opened read-only.

"What tables does this file have?" · "Show 10 rows from notes."

SQL Server (and Azure SQL)

Format (usual port 1433). Add ?trustServerCertificate=true for a local server with a self-signed certificate:

text
mssql://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]

Example:

text
mssql://readonly:secret@localhost:1433/Sales?trustServerCertificate=true

"List the tables in Sales." · "Show the top 5 customers by order total." (SQL Server uses TOP 5, not LIMIT; the assistant knows.)

ClickHouse

Format (usual port 8123, or 8443 with clickhouse+https):

text
clickhouse://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]
clickhouse+https://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]

Example:

text
clickhouse://reader:secret@localhost:8123/analytics

"How many events per hour did we have yesterday?" · "What is the sorting key of the events table?"

MongoDB

Format (usual port 27017). Use mongodb+srv for MongoDB Atlas, with no port:

text
mongodb://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]?authSource=admin
mongodb+srv://[USER]:[PASSWORD]@[CLUSTER_HOST]/[DATABASE]

Example:

text
mongodb://reader:secret@localhost:27017/myapp?authSource=admin

"What collections are in myapp?" · "What fields do documents in users have?" · "Find the 5 most recent orders over 100." · "Count users by country."

Redis (and Valkey, KeyDB)

Format (usual port 6379). [DB_NUMBER] is the database number, 0 if left out; rediss means TLS:

text
redis://[USER]:[PASSWORD]@[HOST]:[PORT]/[DB_NUMBER]
rediss://[USER]:[PASSWORD]@[HOST]:[PORT]/[DB_NUMBER]

Example:

text
redis://localhost:6379/0

"Which keys start with session:?" · "What's inside user:42?" · "How long until cache:home expires?"

Elasticsearch and OpenSearch

Format (usual port 9200, no database). Add +https for TLS, or ?api_key=[API_KEY] instead of a user and password:

text
elasticsearch://[USER]:[PASSWORD]@[HOST]:[PORT]
opensearch://[USER]:[PASSWORD]@[HOST]:[PORT]

Example:

text
elasticsearch+https://elastic:secret@search.example.com:9200

"What indices do we have?" · "Find error logs from the last hour." · "How many documents are in logs-2026.09?"

Detailed notes for every database, including how to create a read-only account, are in the Databases guide.


Using several databases

Give each one a name with DB_PROFILES, and switch by asking ("switch to legacy", "use the cache"):

json
"env": {
  "DB_PROFILES": "{\"app\": \"postgres://readonly@localhost/app\", \"legacy\": \"mysql://readonly@localhost/shop\", \"cache\": \"redis://localhost:6379/0\"}",
  "DB_DEFAULT_PROFILE": "app"
}

You can also connect to a database you didn't list, mid-conversation: "connect to postgres://readonly@10.0.0.5/reports".

Password with special characters (@, /, #)? Give it separately instead of inside the URL: DB_PASSWORD next to DB_URL, or {"url": "...", "password": "..."} inside DB_PROFILES.


Running with Docker

Nothing to install but Docker:

config.json
{
  "mcpServers": {
    "databases": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "--add-host", "host.docker.internal:host-gateway",
        "-e", "DB_URL=postgres://readonly:secret@host.docker.internal:5432/myapp",
        "shibbirweb/mcp-db-read-only"
      ]
    }
  }
}

Inside Docker, use host.docker.internal instead of localhost to reach a database on your own computer. For SQLite, mount the folder: add "-v", "/Users/me/data:/data:ro" and use sqlite:///data/app.db.


Watching what the assistant does

Turn on logging to keep a record of every query the assistant runs, and see them live in your browser.

mermaid
flowchart LR
    S["mcp-db-read-only<br/>(in your AI client)"] -->|"one file per call"| F[("Log folder<br/>DB_LOG_DIR")]
    F --> V["viewer command<br/>(in a terminal)"]
    V -->|"live"| B["Your browser"]

1. Save logs to a folder by adding this to the server's env:

json
"DB_LOG_DIR": "/Users/me/Library/Logs/mcp-db-read-only"

Each query is saved as its own file, one folder per day. Nothing is ever deleted automatically.

2. Open the viewer in a terminal, whenever you want to watch:

Terminal
npx -y @shibbirweb/mcp-db-read-only viewer --dir /Users/me/Library/Logs/mcp-db-read-only --port 4800

Then open http://127.0.0.1:4800/. You'll see every call: what was asked, the exact query sent, how long it took, and the result. It updates live, shows 20 per page (10, 20, 30 or 50 to choose from), and lets you filter and copy anything. Press Ctrl+C to close it.

The viewer has no password. Anyone who can reach that port on your network can read the log while it runs.

Passwords are never written to the logs. More in the Logging guide.


Is it really read-only?

Yes, in two independent ways, so a mistake in one is caught by the other:

Read the full README →View source on GitHub →

Related MCP Servers

View all in Databases View all alternatives
  • M
    MySQL (read Only, switchable)

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

    🗄️ Databases0 views
    Compare vs MySQL (read Only, switchable) →
  • E
    Elasticsearch Mongodb Redis Stack Generator Elasticsearch Elasticsearch

    Elasticsearch + MongoDB + Redis Stack Generator (Elasticsearch/Elasticsearch)

    🗄️ Databases1 views
    Compare vs Elasticsearch Mongodb Redis Stack Generator Elasticsearch Elasticsearch →
  • MCP Toolbox for Databases logoMCP Toolbox for Databases

    MCP Toolbox for Databases enables your agent to connect to your database.

    🗄️ Databases1 views
    Compare vs MCP Toolbox for Databases →
  • Dataassist IO logoDataassist IO

    Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.

    🗄️ Databases2 views
    Compare vs Dataassist IO →

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Databases (read Only, switchable)

We don't have a confirmed install command for Databases (read-only, switchable) yet, so we don't publish a generated one — a guessed package name would point at the wrong package or none at all. Follow the project's own README or setup instructions (https://github.com/shibbirweb/mcp-db-read-only) for the current steps.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDatabases (read Only, switchable) AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/databases-read-only-switchable?style=directory)](https://allmcps.com/mcp/databases-read-only-switchable)
HTML Embed
<a href="https://allmcps.com/mcp/databases-read-only-switchable"><img src="https://allmcps.com/api/badge/databases-read-only-switchable?style=directory" alt="Databases (read Only, switchable) on AllMCPs" /></a>

Technical Specs & Signals

Category🗄️Databases
More technical detailsExpand ▾
Last updatedSep 28, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging · 27/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

★ FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server →

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🗄️ Databases →Best MCP servers for Databases →Best MongoDB MCP servers →Best Redis MCP servers →Alternatives to Databases (read Only, switchable) →Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients