# quarry [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/Wangggym/quarry  
**GitHub Stars:** 6  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/quarry

## Description
Safety-railed database access for agents: Postgres, MySQL, Redis. Read-only by default.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Wangggym/quarry), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

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

2. Start the server:

```sh
qy gui
```

3. Start the server:

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

## Documentation

## 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:

```sh
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.

_Full upstream README: https://allmcps.com/mcp/quarry/readme_

