haymon-ai/dbmcp
Privacy-first MCP server for SQL databases that redacts sensitive data by default
What it solves
Without it, AI clients would see sensitive values such as emails, phone numbers, and card numbers in query results.
- Default query redaction
- 48 built-in data types
- Column rules follow data
Works with
- claude-desktop
- cursor
- vscode
- windsurf
- cli
Install
npx @modelcontextprotocol/inspector ./target/release/dbmcp npx -y @haymon-ai/dbmcp Copy-ready config
{
"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}"
}
}
}
} Security flags
- Needs API key: Not stated
- Runs locally: Yes
- Network access: Yes
- Needs root: No
Maintenance
| Last commit | 2026-12-05(0d) |
|---|---|
| Stars | 33 |
| Open issues | 13 |
| License | MIT |
| Archived | No |
| Data fetched | 2026-12-05 |
Source excerpt
Verbatim README excerpt, unedited, so you can check the summary above.
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.