# Introduction

Source: https://dbmcp.haymon.ai/

A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite

![Demo showing natural-language database queries answered instantly](https://dbmcp.haymon.ai/demo.gif)

dbmcp is a [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that gives AI assistants safe, read-only access to your databases. Built in Rust as a single binary with zero runtime dependencies, it works with any MCP-compatible client including Claude Desktop, Cursor, and [others](/clients).

## Quick Install

```bash tab="macOS / Linux / WSL"
curl -fsSL https://dbmcp.haymon.ai/install.sh | bash
```

```powershell tab="Windows PowerShell"
irm https://dbmcp.haymon.ai/install.ps1 | iex
```

```batch tab="Windows CMD"
curl -fsSL https://dbmcp.haymon.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
```

For more installation options, see [Installation](/installation).

## Supported Databases

- **MySQL** `8.0+`
- **MariaDB** `10.5+`
- **PostgreSQL** `12+`
- **SQLite** `3.x`

## Key Features

- **Single binary** — no runtime dependencies, no language runtimes to install
- **Read-only by default** — write operations are blocked unless explicitly enabled
- **Stdio and HTTP transport** — works as a local stdio server or a remote HTTP server with CORS preflight and server-side Origin/Host allowlists
- **Multi-database support** — connect to MySQL, MariaDB, PostgreSQL, or SQLite with a single binary
- **SSH tunnel** — reach MySQL, MariaDB, or PostgreSQL through an SSH bastion with the embedded client: password or key auth, `known_hosts` verification, automatic reconnect ([details](/features/ssh-tunnel))
- **Optional data privacy** — opt-in redaction of personal and sensitive values in query tool output ([details](/privacy))

## How It Works

dbmcp exposes your database schema and data through the MCP protocol. AI assistants can discover tables, inspect schemas, and run read-only SQL queries to answer questions about your data — all without the risk of accidental modifications.

See the [Installation](/installation) guide to get started.