Skip to Content
dbmcp

MCP server for MySQL, MariaDB, PostgreSQL, and SQLite

Demo showing natural-language database queries answered instantly

is a Model Context Protocol (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.

Quick Install

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

For more installation options, see 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)
  • Optional data privacy — opt-in redaction of personal and sensitive values in query tool output (details)

How It Works

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 guide to get started.