Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.
MCPpedia last refreshed this data
io.github.shibbirweb/mcp-db-read-only is an MCP server that read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation. Its tool list has not been published yet over stdio and http, requires no API key, and scores 82/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"databases": {
"env": {
"DB_URL": "postgres://readonly:secret@localhost:5432/myapp"
},
"args": [
"-y",
"@shibbirweb/mcp-db-read-only"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @shibbirweb/mcp-db-read-only against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in data
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
Manage Supabase projects — databases, auth, storage, and edge functions
A cross-platform desktop application for managing AI Agents and MCP Servers. 一款用于管理AI智能体与MCP服务器的跨平台桌面应用程序。
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
MCP Security Weekly
Get CVE alerts and security updates for io.github.shibbirweb/mcp-db-read-only and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
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.
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:
{
"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.
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:
| Placeholder | What 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.
Format (usual port 3306):
mysql://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]
mariadb://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE]
Example:
mysql://readonly:secret@localhost:3306/shop
"List th