LocalFree server, account needed

Safedb MCP server

narekmalk/safedb-mcp

Safe, read-only database access with SQL guardrails, table allowlists, PII masking and audit logs.

9 GitHub stars2 forks

Install Safedb in Claude Code

Claude Code
claude mcp add safedb -e YOUR_API_KEY=... -- npx -y @safedb/safedb-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "safedb": {
      "command": "npx",
      "args": [
        "-y",
        "@safedb/safedb-mcp"
      ],
      "env": {
        "YOUR_API_KEY": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Safedb MCP server do?

Safe, read-only database access with SQL guardrails, table allowlists, PII masking and audit logs.

Is the Safedb MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Safedb run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Safedb to Claude Code?

Run: claude mcp add safedb -e YOUR_API_KEY=... -- npx -y @safedb/safedb-mcp

More databases MCP servers

View all