Database MCP

Installation

Install dbmcp via Docker, prebuilt binary, or from source

Database MCP is distributed as a single binary with no runtime dependencies. Choose the installation method that works best for your setup.

macOS, Linux, WSL:

curl -fsSL https://dbmcp.haymon.ai/install.sh | bash

Or with wget:

wget -qO- 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

This detects your platform, downloads the correct binary, and installs it. Re-run the same command to upgrade to the latest version.

To install to a custom directory:

INSTALL_DIR=/opt/bin curl -fsSL https://dbmcp.haymon.ai/install.sh | bash
$env:INSTALL_DIR = "C:\tools\dbmcp"; irm https://dbmcp.haymon.ai/install.ps1 | iex
set INSTALL_DIR=C:\tools\dbmcp && curl -fsSL https://dbmcp.haymon.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Prebuilt Binaries

Download the latest release from GitHub.

Linux

x86_64 (Intel/AMD):

curl -LO https://github.com/haymon-ai/dbmcp/releases/latest/download/dbmcp-x86_64-unknown-linux-gnu.tar.gz
tar xzf dbmcp-x86_64-unknown-linux-gnu.tar.gz
sudo mv dbmcp /usr/local/bin/

aarch64 (ARM):

curl -LO https://github.com/haymon-ai/dbmcp/releases/latest/download/dbmcp-aarch64-unknown-linux-gnu.tar.gz
tar xzf dbmcp-aarch64-unknown-linux-gnu.tar.gz
sudo mv dbmcp /usr/local/bin/

macOS

Apple Silicon (M1/M2/M3/M4):

curl -LO https://github.com/haymon-ai/dbmcp/releases/latest/download/dbmcp-aarch64-apple-darwin.tar.gz
tar xzf dbmcp-aarch64-apple-darwin.tar.gz
sudo mv dbmcp /usr/local/bin/

Intel:

curl -LO https://github.com/haymon-ai/dbmcp/releases/latest/download/dbmcp-x86_64-apple-darwin.tar.gz
tar xzf dbmcp-x86_64-apple-darwin.tar.gz
sudo mv dbmcp /usr/local/bin/

Windows

x86_64:

Download the latest release:

Invoke-WebRequest -Uri https://github.com/haymon-ai/dbmcp/releases/latest/download/dbmcp-x86_64-pc-windows-msvc.zip -OutFile dbmcp.zip
Expand-Archive dbmcp.zip -DestinationPath .

Move dbmcp.exe to a directory on your PATH, or run it directly from the extracted location.

Verify the installation:

dbmcp.exe --help

For older versions or other assets, see the GitHub Releases page.

Verify the installation (Linux/macOS):

dbmcp --help

Docker

No Rust toolchain or compilation needed.

docker pull ghcr.io/haymon-ai/dbmcp:latest

stdio mode (for Claude Desktop, Cursor, and other MCP clients):

docker run -i --rm \
  -e DB_BACKEND=postgres \
  -e DB_HOST=host.docker.internal \
  -e DB_USER=postgres \
  ghcr.io/haymon-ai/dbmcp

HTTP mode (for web clients and remote access):

docker run --rm \
  -e DB_BACKEND=postgres \
  -e DB_HOST=host.docker.internal \
  -e DB_USER=postgres \
  -p 9001:9001 \
  ghcr.io/haymon-ai/dbmcp http --host 0.0.0.0

SQLite with a mounted volume:

docker run -i --rm \
  -e DB_BACKEND=sqlite \
  -e DB_NAME=/data/my.db \
  -v /path/to/local/db:/data \
  ghcr.io/haymon-ai/dbmcp

Images are available for linux/amd64 and linux/arm64. A specific version can be pinned with ghcr.io/haymon-ai/dbmcp:<version>.

Package Managers

Cargo

If you have the Rust toolchain installed:

cargo install dbmcp

This builds from source and installs the binary to ~/.cargo/bin/.

Verify the installation:

dbmcp --help

Build from Source

Prerequisites

Build

git clone https://github.com/haymon-ai/dbmcp.git
cd dbmcp
cargo build --release

Copy the binary to a directory on your PATH:

sudo cp target/release/dbmcp /usr/local/bin/

Verify the installation:

dbmcp --help

Comparison

MethodEase of InstallAuto UpdatesVersion FlexibilityPrerequisitesPlatform Coverage
Quick InstallSingle commandRe-run to upgradeLatest releasecurl/wget or PowerShellmacOS, Linux, WSL, Windows
Dockerdocker pullPull latest tagAny release tagDockerLinux, macOS, Windows
Prebuilt BinarySimple downloadNoneAny releaseNoneLinux, macOS, Windows
Cargo InstallOne commandcargo install to updateAny published versionRust toolchainAll platforms Rust supports
Build from SourceMultiple stepsManual (git pull + rebuild)Any commit/branchGit + Rust toolchainAll platforms Rust supports

On this page