Read-only MCP access to Postgres, MySQL, MariaDB, and SQLite with SQL policies, masking, limits, and audit logs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Safedb MCP.
SafeDB MCP is a secure Model Context Protocol server that lets AI agents inspect and query Postgres, MySQL, MariaDB, and SQLite with strict read-only guardrails. It is designed for teams that want useful database access without handing an agent unrestricted production credentials.
Direct database credentials are dangerous for agents because a single bad prompt, tool call, or generated SQL statement can mutate data, exfiltrate sensitive columns, or run expensive queries. SafeDB MCP puts a policy layer between the agent and your database: only configured schemas and tables are visible, SQL is parsed and validated before execution, row counts are capped, results are masked, and every query attempt is audited.
This project is an MVP. It prefers false positives and blocked queries over unsafe access, and it does not claim perfect SQL security.
list_schemas, list_tables, describe_table, run_readonly_query, explain_query, get_safedb_policypgmysql2sql.jsSELECT, WITH ... SELECT, UNION, and EXPLAIN SELECTredact, email, partial, and deterministic hashsafedb-mcpUse a dedicated database role with read-only permissions. SafeDB MCP is a defense-in-depth layer, not a replacement for least-privilege database credentials.
A Docker image packages SafeDB MCP with Node.js and its production dependencies so it can run the same way on any host with Docker.
Build the image locally:
Run the MCP server with a mounted config file:
Pass CLI commands after the image name:
For MySQL or MariaDB, set database.type and use the database name as the access schema:
For SQLite, set database.type to sqlite, point database.path at the .db file, and use main as the access schema:
Claude Desktop:
Cursor or Hermes-style MCP config:
SafeDB MCP aims to guarantee that:
LIMIT.COPY.MIT
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/narekmalk-safedb-mcp)<a href="https://allmcps.com/mcp/narekmalk-safedb-mcp"><img src="https://allmcps.com/api/badge/narekmalk-safedb-mcp?style=directory" alt="Safedb MCP on AllMCPs" /></a>