Quarry logo

Quarry

Read-only-by-default MCP database access for PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune.

Install Quarry

Run the project’s own setup commands, in order.

Setup steps from the project

quarry installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://yiminspace.github.io/quarry/install.sh | sh
    
  2. 2. Start the server
    qy gui
    
  3. 3. Start the server
    qy --workspace /path/to/workspace mcp
    

Overview

quarry MCP server exposes database access through Quarry workspaces, supporting PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune. It uses native database drivers for ordinary queries and applies explicit authorization policies to writes. Read operations are the default; MCP writes require authorization from both the server and the request. Reach for quarry when agents need controlled access to local or remotely connected databases, reusable SQL, SSH tunnels, or Docker-backed services.

Use cases

  • Query PostgreSQL, MySQL, SQLite, Redis, or Neptune from an agent workflow
  • Reuse saved SQL queries across CLI, GUI, and MCP sessions
  • Restrict agent database mutations with explicit authorization policies
  • Connect to databases through SSH tunnels or local Docker services

Key features

  • Read-only database access by default
  • PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune support
  • Workspace-based connections and saved SQL queries
  • Separate authorization for MCP write requests
  • SSH tunnel and Docker local-service support
  • Native Rust executable with CLI, GUI, and MCP modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/25 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Quarry works

What quarry MCP server does

quarry provides an MCP entry point for working with databases through a shared Quarry workspace. The supported database targets are PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune. Workspaces store connection definitions and reusable SQL query files, while credentials remain local.

The server is designed around explicit access policies. Queries are read-only by default, and MCP write operations require authorization at both the server and request levels. This makes it suitable for agent workflows where database access should be constrained rather than granted as unrestricted mutation access.

How it works

Launch MCP mode with the native qy executable and point it at a workspace. A typical invocation is:

sh
qy --workspace /path/to/workspace mcp

Quarry uses native database drivers for ordinary queries. Connection definitions are kept in the workspace’s connections.toml, and SQL files can be saved for reuse. The same workspace can also be used with the command-line interface and GUI, allowing connection and query configuration to be shared across those surfaces.

Database access can be extended through SSH tunnels and local Docker services. SSH connections depend on the system ssh command, while local services require Docker. PostgreSQL schema synchronization uses pg_dump and psql.

Setup and configuration

Quarry 2 is distributed as a native Rust executable, so the standalone installation does not require Python or a Rust toolchain. Install it with the project installer:

Terminal
curl -fsSL https://yiminspace.github.io/quarry/install.sh | sh

You can also download a native archive and its SHA256 checksums from GitHub Releases. Supported targets include macOS and Linux on arm64 or x86_64; Linux requires glibc 2.28 or newer. Verify the installation with qy --version, then create or select a workspace containing the required connection configuration.

The standalone executable can run locally with its own workspaces. An official Docker image is also available for hosted deployments, serving the GUI, authentication, read-only API, and execution from one configuration file. Hosted setups can use Quarry’s built-in administrator or an existing platform’s IAM.

Tools and capabilities

  • Run MCP database queries from a configured workspace.
  • Execute SQL through configured PostgreSQL, MySQL, or SQLite connections.
  • Work with Redis connections and experimental Neptune support.
  • Reuse saved SQL query files stored in a workspace.
  • Use SSH tunnels for database connections.
  • Connect to local services managed by Docker.
  • Apply separate authorization requirements to MCP write requests.
  • Share connection and query configuration with Quarry’s CLI and GUI.

Limitations and notes

GUI queries remain read-only. CLI writes require the --write option and production confirmation, while MCP writes require both server-level and request-level authorization. Assistant-generated proposals do not execute automatically.

SQLite opens existing files and does not create a database when a configured path is incorrect. Credentials remain local in standalone workspaces. The Python 1.x import APIs are not part of the 2.x distribution; the 2.x application and distribution are Rust-based.

Some features depend on external programs: SSH tunnels need system ssh, local services need Docker, and PostgreSQL schema synchronization needs pg_dump and psql. Neptune support is experimental.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Quarry

quarry is an MCP server that connects agents to PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune databases. It provides database query and execution tools through Quarry workspaces, with read-only defaults, saved SQL queries, explicit access policies, and authorization required for write requests.

Install quarry with its shell installer or download a native archive from GitHub Releases. The installer command is `curl -fsSL https://yiminspace.github.io/quarry/install.sh | sh`; then run `qy --version` and start MCP mode with `qy --workspace /path/to/workspace mcp`.

quarry supports PostgreSQL, MySQL, SQLite, and Redis, with experimental support for Neptune. Ordinary queries use native database drivers, and SQLite connections open existing files rather than creating a database for an invalid path.

quarry protects writes with explicit authorization policies and read-only defaults. MCP writes require authorization from both the server and the request; CLI writes additionally require `--write` and production confirmation, while GUI queries remain read-only.

quarry supports SSH tunnels and local Docker services. SSH connections require the system `ssh` command, and local services require Docker. PostgreSQL schema synchronization also depends on `pg_dump` and `psql`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewQuarry AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/quarry?style=directory)](https://allmcps.com/mcp/quarry)
HTML Embed
<a href="https://allmcps.com/mcp/quarry"><img src="https://allmcps.com/api/badge/quarry?style=directory" alt="Quarry on AllMCPs" /></a>