Package Managers
Install dbmcp with npm or Cargo
Cargo
If you have the Rust toolchain installed:
cargo install dbmcpThis builds from source and installs the binary to ~/.cargo/bin/.
Verify the installation:
dbmcp --helpnpm
With Node.js 18 or newer, MCP clients can launch dbmcp through npx without a separate install step:
{
"mcpServers": {
"dbmcp": {
"command": "npx",
"args": ["-y", "@haymon-ai/dbmcp"],
"env": {
"DBMCP_DB_BACKEND": "mysql",
"DBMCP_DB_USER": "root"
}
}
}
}Pin a version with @haymon-ai/dbmcp@<version>. To install globally instead:
npm install -g @haymon-ai/dbmcpThe package is a small launcher. npm installs the native binary for your platform as an optional dependency, so don't install with --omit=optional. Prebuilt packages exist for Linux x64 and arm64 (glibc 2.34 and libstdc++ from GCC 12 or newer; musl/Alpine is not supported), macOS arm64, and Windows x64.