haymon-ai/dbmcp
機密データを既定で秘匿化するSQLデータベース向けMCPサーバー
解決する課題
これがないと、AIクライアントがクエリ結果に含まれるメール、電話番号、カード番号などの機密データを直接見てしまいます。
- クエリ結果を既定で秘匿化
- 48種の内蔵データ型
- 列ルールがデータに追随
対応クライアント
- claude-desktop
- cursor
- vscode
- windsurf
- cli
インストール
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}"
}
}
}
} セキュリティ表示
- API キー必須: 未記載
- ローカル実行: はい
- ネットワーク接続: はい
- root 権限: いいえ
メンテナンス状況
| 最終コミット | 2026-12-05(0d) |
|---|---|
| スター | 33 |
| 未対応 issue | 13 |
| ライセンス | 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.