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. It runs locally over stdio via the published package.

People connecting database tools to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.

VERIFIED ACTIVE

LAST COMMIT 2026-05-27 · ★ 7 · #86 OF 151 MAINTAINED DATABASE · VERIFIED 2026-08-25

MIT · TypeScript servers · how we verify → /methodology

01 · Install Safedb MCP

before you install - you'll need

DATABASE_URL

Environment variables documented in the project's README - it lists which are required and which have defaults.

Claude Code

claude mcp add narekmalk-safedb-mcp -- npx -y @safedb/safedb-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "narekmalk-safedb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@safedb/safedb-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package @safedb/safedb-mcp - the @safedb scope differs from the repo owner (narekmalk); confirm it's the project's official package

registry namespace io.github.narekmalk is GitHub-verified and matches the repo owner

03 · What Safedb MCP can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v0.5.0 · 2026-05-27

Highlights · Added support for Postgres, MySQL, MariaDB, and SQLite. · Added AST-backed read-only SQL validation. · Added table detection across joins, CTEs, nested subqueries, aliases, and unions. · Added column…

04 · Who maintains Safedb MCP

safedb-mcp is maintained by narekmalk. It's the only MCP server we track from this author; the repo dates to May 2026.

05 · Facts

category
database - ranked #86 of 151 actively-maintained database servers as of 2026-08-25.
release cadence
1 release in the last 90 days (latest 2026-05-27)
registry
io.github.narekmalk/safedb-mcp (active, first published 2026-05-21 · 2 versions)
packages
npm:@safedb/safedb-mcp

06 · Safedb MCP FAQ

What is 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. It runs locally over stdio via the published package.

Is Safedb MCP still maintained?

Yes - as of 2026-08-25, its last commit was 2026-05-27 and it shipped 1 release in the last 90 days. We re-verify nightly.

How do I install Safedb MCP?

Run `npx -y @safedb/safedb-mcp`. The README documents one environment variable (DATABASE_URL) to set first. You can also paste the ready-made client config above.

Does Safedb MCP run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Safedb MCP