Quarry logo

Quarry

Safety-railed MCP access to PostgreSQL, MySQL, SQLite, and Redis, with read-only defaults and authorization for writes.

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 workspace-configured database access through Quarry’s native Rust workbench and CLI. It supports PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune, with ordinary queries handled by native database drivers. Read operations are the default; MCP writes require authorization from both the server and the request. Reach for quarry when an agent needs controlled database queries alongside local workspaces, saved SQL, SSH tunnels, or Docker-backed services.

Use cases

  • Query development databases from an AI coding workflow
  • Inspect local SQLite files without creating missing databases
  • Run controlled read-only database investigations
  • Reuse workspace SQL queries across CLI, GUI, and MCP
  • Connect to databases through SSH tunnels or local Docker services

Key features

  • PostgreSQL, MySQL, SQLite, and Redis access
  • Experimental Neptune support
  • Read-only defaults with explicit write authorization
  • Workspace-based connections and saved SQL
  • SSH tunnels and Docker-backed local services
  • Native Rust executable with MCP support

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.

13/13 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 24d ago via OSV.dev

Adoption & maintenance

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

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

How Quarry works

What quarry does

Quarry provides a native database workbench with an MCP entry point for agent-driven access. Its supported database targets are PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune. The same Rust-based system also includes a command-line interface and browser GUI, allowing database connections, reusable SQL, histories, and MCP access to share a workspace.

The design emphasizes explicit query and write policies. GUI queries are read-only, while CLI writes require an explicit --write flag and production confirmation. MCP writes need authorization from both the server and the individual request. Assistant-generated proposals are not executed automatically.

How it works

A workspace stores connection definitions in connections.toml and can contain reusable SQL query files. Credentials remain local to the workspace environment. The MCP command is launched through the native qy executable:

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

Database operations use native drivers. PostgreSQL, MySQL, SQLite, and Redis can therefore be queried through their respective connection configurations. SQLite opens an existing file and does not create a new database when the configured path is invalid.

Additional infrastructure is available when needed. SSH connections depend on the system ssh command, local services require Docker, and PostgreSQL schema synchronization uses pg_dump and psql.

Setup and configuration

Quarry 2 is distributed as a native Rust executable, so running the MCP command does not require Python or a Rust toolchain. The installer can be used with:

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

After installation, start MCP with qy mcp, or provide a workspace path with --workspace. The executable supports macOS and Linux on arm64 or x86_64; Linux requires glibc 2.28 or newer. Native archives and SHA256 checksums are available from GitHub Releases.

Configuration and credentials remain local. Existing workspaces, saved queries, and histories are read by the Rust implementation. Python import APIs from the earlier 1.x line are not part of the 2.x runtime.

Tools and capabilities

  • Connect to PostgreSQL, MySQL, SQLite, and Redis databases.
  • Query experimental Neptune connections.
  • Execute reusable SQL from workspace files.
  • Apply explicit read and write authorization policies.
  • Use SSH tunnels for database connectivity.
  • Work with local Docker services.
  • Synchronize PostgreSQL schemas through pg_dump and psql.
  • Run the MCP interface from the qy command-line executable.

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 AI agents to PostgreSQL, MySQL, SQLite, Redis, and experimental Neptune through Quarry workspaces. Its main capabilities are database querying and controlled write execution, with read-only behavior by default and authorization required before MCP writes can run.

Install Quarry’s native executable with the provided shell installer, then run `qy mcp`. The executable does not require Python or a Rust toolchain. Native downloads are also available from GitHub Releases, with macOS and Linux builds for arm64 and x86_64.

Start it with `qy --workspace /path/to/workspace mcp`. The workspace contains `connections.toml` and reusable SQL files, while credentials remain local. You can also use the default workspace behavior by running `qy mcp` without the workspace override.

Yes, MCP writes require authorization from both the server and the request. Quarry defaults to read-only behavior, and assistant proposals are never executed automatically. CLI writes separately require `--write` and production confirmation.

Quarry supports PostgreSQL, MySQL, SQLite, and Redis, with experimental support for Neptune. SQLite connections open existing files only; an incorrect path does not cause Quarry to create a database.

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-2?style=directory)](https://allmcps.com/mcp/quarry-2)
HTML Embed
<a href="https://allmcps.com/mcp/quarry-2"><img src="https://allmcps.com/api/badge/quarry-2?style=directory" alt="Quarry on AllMCPs" /></a>