Database MCP

Installation

Install database-mcp on Linux or macOS

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

Prebuilt Binaries

Download the latest release from GitHub.

Linux

x86_64 (Intel/AMD):

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

aarch64 (ARM):

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

macOS

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

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

Intel macOS: Prebuilt binaries for Intel Macs are not yet available. Use Build from Source instead.


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

Verify the installation:

database-mcp --help

Package Managers

Cargo

If you have the Rust toolchain installed:

cargo install database-mcp

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

Verify the installation:

database-mcp --help

Build from Source

Prerequisites

Build

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

Copy the binary to a directory on your PATH:

sudo cp target/release/database-mcp /usr/local/bin/

Verify the installation:

database-mcp --help

Comparison

MethodEase of InstallAuto UpdatesVersion FlexibilityPrerequisitesPlatform Coverage
Prebuilt BinarySimple downloadNoneAny releaseNoneLinux, macOS (Apple Silicon)
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