AI 开源雷达

haymon-ai/dbmcp

隐私优先的 SQL 数据库 MCP 服务器,默认脱敏敏感数据

★ 33 协议: MIT 最近提交: 0d 传输方式: stdio / http 仓库地址 ↗

解决什么问题

没有它,AI 客户端会直接看到查询结果中的邮箱、电话、银行卡号、身份证号和 API 密钥等敏感值。

适用客户端

安装命令

npx @modelcontextprotocol/inspector ./target/release/dbmcp
npx -y @haymon-ai/dbmcp

一键配置

{
  "mcpServers": {
    "dbmcp": {
      "command": "dbmcp",
      "env": {
        "DBMCP_DB_BACKEND": "mysql",
        "DBMCP_DB_HOST": "127.0.0.1",
        "DBMCP_DB_PORT": "3306",
        "DBMCP_DB_USER": "root",
        "DBMCP_DB_PASSWORD": "secret",
        "DBMCP_DB_NAME": "mydb"
      }
    }
  }
}
{
  "mcpServers": {
    "dbmcp": {
      "type": "http",
      "url": "http://127.0.0.1:9001/mcp"
    }
  }
}
{
  "mcpServers": {
    "dbmcp": {
      "type": "http",
      "url": "http://127.0.0.1:9001/mcp",
      "headers": {
        "Authorization": "Bearer ${DBMCP_TOKEN}"
      }
    }
  }
}

安全标记

维护状态

最近提交2026-12-05(0d)
Star33
待处理 issue13
协议MIT
已归档否
数据抓取于2026-12-05

原文摘录

以下为仓库 README 原文,未做改写,用于核对上面的摘要。

Out of the box, dbmcp redacts e-mail addresses, phone numbers, bank and card numbers, national IDs, API keys, and other pattern-detected values inside the server, so the AI client never sees them.

同类替代