DbmcpBLOCK
Database MCP server for MySQL, MariaDB, PostgreSQL, and SQLite - with builtin PII redaction and write-prevention
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/haymon-ai/dbmcp/actions/workflows/ci.yml) [](https://github.com/haymon-ai/dbmcp/releases/latest) [](LICENSE) [](https://dbmcp.haymon.ai/docs/)
A single-binary MCP server for SQL databases. Connect your AI assistant to MySQL/MariaDB, PostgreSQL, or SQLite with zero runtime dependencies.
[Website](https://dbmcp.haymon.ai) · [Documentation](https://dbmcp.haymon.ai/docs/) · [Releases](https://github.com/haymon-ai/dbmcp/releases)
Features ✨
- Multi-database — MySQL/MariaDB, PostgreSQL, and SQLite from one binary
- MCP tools — schema discovery (
listDatabases,listTables,listViews,listTriggers,listFunctions,listProcedures,listMaterializedViews), data access (readQuery,writeQuery), DDL (createDatabase,dropDatabase,dropTable), andexplainQuery. Read-only mode hides the write tools (writeQuery,createDatabase,dropDatabase,dropTable). See MCP Tools for per-backend availability. - Single binary — ~7 MB, no Python/Node/Docker needed
- Multiple transports — stdio (for Claude Desktop, Cursor) and HTTP (for remote/multi-client)
- Two-layer config — CLI flags > environment variables, with sensible defaults per backend
Install 📦
macOS, Linux, WSL:
curl -fsSL https://dbmcp.haymon.ai/install.sh | bash
Windows PowerShell:
irm https://dbmcp.haymon.ai/install.ps1 | iex
Windows CMD:
curl -fsSL https://dbmcp.haymon.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
See the [installation docs
3153db29eef3OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add dbmcp:0.13.2 -- docker run -i --rm ghcr.io/haymon-ai/dbmcp:0.13.2:None stdio
claude mcp add dbmcp:0.13.2 -- docker run -i --rm ghcr.io/haymon-ai/dbmcp:0.13.2:None http
Trust audit
BLOCKgrade F · trust 55/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (7 observation(s))
- Network
- declared (4 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
"GH_TOKEN=ghp_aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789",
"GH_TOKEN=ghp_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"GH_TOKEN=ghp_aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789",
&[("ghp_aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789", 0.6)],("GH_TOKEN=ghp_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", &[]),"-----BEGIN RSA PRIVATE KEY-----MIIEowIBAAKCAQEAfake==-----END RSA PRIVATE KEY-----",
"-----BEGIN EC PRIVATE KEY-----MHcCAQEEIfake==-----END EC PRIVATE KEY-----",
"-----BEGIN OPENSSH PRIVATE KEY-----base64data-----END OPENSSH PRIVATE KEY-----",
"-----BEGIN RSA PRIVATE KEY-----base64-----END EC PRIVATE KEY-----",
const RSA: &str = "-----BEGIN RSA PRIVATE KEY-----\n\
"STRIPE=sk_live_aBcDeFgHiJkLmNoPqRsTuVwX",
"STRIPE=sk_live_aBcDeFgHiJkLmNoPqRsTuVwX",
&[("sk_live_aBcDeFgHiJkLmNoPqRsTuVwX", 0.6)],"http://127.0.0.1".into(),
"https://127.0.0.1".into(),
.taplo.toml
.nojekyll
tar czf ../../../dbmcp-${{ matrix.target }}.tar.gz ${{ matrix.artifact }}const DESCRIPTION: &str = include_str!("../../assets/tools/create_database/default.md");const DESCRIPTION: &str = include_str!("../../assets/tools/drop_database/default.md");const DESCRIPTION_PINNED: &str = include_str!("../../assets/tools/drop_table/pinned.md");const DESCRIPTION_UNPINNED: &str = include_str!("../../assets/tools/drop_table/unpinned.md");"url": "http://127.0.0.1:9001/mcp"
| `--allowed-origins` | `http://localhost,http://127.0.0.1,https://localhost,https://127.0.0.1` | Allowed browser origins (comma-separated). Drives both CORS preflight and server-side `Origin` header
"url": "http://127.0.0.1:9001/mcp"
Gates applied: critical_finding, no_behavioural_pass.
3153db29eef3full audit observations/trust-audit/mcp-server/haymon-ai__dbmcp-3.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 3153db29eef3 | BLOCK | F | 55 | first audit |
Questions
What is the Dbmcp MCP server?
Database MCP server for MySQL, MariaDB, PostgreSQL, and SQLite - with builtin PII redaction and write-prevention
Is Dbmcp safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (55/100) and found 13 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Dbmcp need?
No credential environment variables were found in its source, so it appears to need none.
How does Dbmcp run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as docs at 0.0.0.
How current is this page?
The grade is for one exact copy of the source (3153db29eef3), read on 2026-10-08. The repository is watched and re-audited when it changes.