Guardbee.ai
@guardbee/mcp-db-gateway

Database Gateway

KVKK/GDPR-compliant MCP server gateway between LLMs and databases

v0.7.1MIT · Open sourceNode.js · stdio
Install
$ npx -y @guardbee/mcp-db-gateway
Claude Desktop / Cursor config
{
  "mcpServers": {
    "db-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-db-gateway"
      ]
    }
  }
}
@guardbee/mcp-db-gateway

@guardbee/mcp-db-gateway is a KVKK/GDPR-minded security layer between Claude (or any LLM) and your database. Sensitive fields are masked, table access is role-scoped, and every query is audited.

What does it do?

Use it whenever an AI agent needs product, order, or customer data without receiving raw PII. Requests go through the gateway instead of a direct DB connection.

Who is it for?

  • Node.js / TypeScript teams on Prisma
  • Teams wiring Claude Desktop or Cursor as an internal ops assistant
  • Organizations that must not send raw customer data to an LLM
  • SaaS teams demoing AI features on a safe dataset

What it is not

  • Unlimited write/delete access to production databases
  • Legal certification or VERBIS filings
  • Replacing a network firewall

Features

FeatureDescription
PII maskingNational IDs, IBANs, emails, phones, password hashes, and more
RBACPer-role table allow/deny lists and field rules
Rate limitingGlobal and per-table request windows
Audit logConsole, file, or HTTP webhook sinks
Prisma adapterWrap an existing PrismaClient

MCP tools

ToolDescription
Query / read toolsSafe reads inside configured roles
Audit / statusTraceable record of requests

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-db-gateway</code>

or via npx (recommended with -y in config):

bash
<code class="language-bash">npx -y @guardbee/mcp-db-gateway</code>

npm: @guardbee/mcp-db-gateway · Smithery: guardbee/mcp-db-gateway

In Prisma apps also install as a dependency: npm install @guardbee/mcp-db-gateway, then wire createServer + createPrismaAdapter.

Claude Desktop configuration

Config file paths:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Merge this block, then restart Claude Desktop:

claude_desktop_config.json
<code class="language-json">{
  "mcpServers": {
    "guardbee-db-gateway": {
      "command": "guardbee-gateway",
      "env": {
        "DATABASE_URL": "postgresql://user:pass@localhost:5432/mydb"
      }
    }
  }
}</code>

Cursor and other MCP clients

In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.

Example prompts in Claude

  1. “List the first 10 in-stock products — hide email fields”
  2. “As ai-agent, summarize only the products table”
  3. “Show a short audit log summary”

Frequently asked questions

Can I install via Smithery?+

Yes. DB Gateway is listed on Smithery for one-click Claude Desktop install.

Is it production-safe?+

It reduces risk with RBAC, masking, and rate limits — still apply least privilege and restrict writes.

Which databases?+

The Prisma adapter works with Prisma-supported sources; Claude config uses DATABASE_URL.

See your security posture in minutes

Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.

Database Gateway MCP server (@guardbee/mcp-db-gateway) · GuardBee