# quarry [Health: Active]

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

## Description
Safety-railed database access: Postgres, MySQL, SQLite, 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/yiminspace/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 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:

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

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

