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

@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
| Feature | Description |
|---|---|
| PII masking | National IDs, IBANs, emails, phones, password hashes, and more |
| RBAC | Per-role table allow/deny lists and field rules |
| Rate limiting | Global and per-table request windows |
| Audit log | Console, file, or HTTP webhook sinks |
| Prisma adapter | Wrap an existing PrismaClient |
MCP tools
| Tool | Description |
|---|---|
Query / read tools | Safe reads inside configured roles |
Audit / status | Traceable record of requests |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-db-gateway</code>or via npx (recommended with -y in config):
<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:
<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
- “List the first 10 in-stock products — hide email fields”
- “As ai-agent, summarize only the products table”
- “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.
More in this category
@guardbee/mcp-security-proxy
Security Proxy & LLM Firewall
MCP security gateway and LLM firewall: masks PII and secrets, blocks prompt injection and toxic flows (lethal trifecta), approves risky calls and keeps a hash-chained audit log, for MCP servers and LLM APIs
Learn more@guardbee/security-suite
Security Suite
MCP security suite: every GuardBee scanner from one install, one MCP server with the tools you pick (OWASP MCP Top 10, secrets, prompt injection, toxic flows, supply chain, TLS/DNS) and a CLI that runs any of them
Learn more@guardbee/mcp-threat-rules
Threat Rules
GuardBee MCP bridge to Agent Threat Rules (ATR) — evaluate agent/MCP events against the open Sigma-like detection standard for prompt injection, tool poisoning, context exfiltration, and MCP attacks
Learn more
See your security posture in minutes
Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.