# quarry [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/punt-labs/quarry  
**GitHub Stars:** 7  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/quarry-3

## Description
Locally hosted semantic search for AI agents. 20+ document formats, hybrid search, agent memory, zero cloud dependencies. MCP server + CLI.

## Tools
Capabilities this server exposes over MCP:

- **find** — Semantic search with filters
- **show** — Document metadata or page text
- **list** — Documents, collections, databases, registrations
- **status** — Database statistics
- **insights** — Local search statistics: query volume, latency, empty-result rate, and result breakdowns
- **ingest** — Index a URL, or inline text
- **learn** — Save a short lesson that ranks higher in search results
- **register_directory** — Manage a synced directory
- **sync_all_registrations** — Re-index all registered directories
- **delete** — Remove a document or collection
- **use** — Switch the active database
- **missions_sync** — Save each completed ethos mission round to the worker agent's memory

## 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/punt-labs/quarry), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/punt-labs/quarry/c223536/install.sh | sh
```

2. Install:

```sh
uv tool install punt-quarry
```

3. Run:

```sh
quarry install
```

4. Install:

```sh
brew install punt-labs/tap/quarry
```

5. Add to Claude Code:

```sh
claude plugin marketplace add punt-labs/claude-plugins
```

6. Run:

```sh
claude plugin install quarry@punt-labs
```

## Documentation

## What quarry does

quarry provides local document retrieval for AI agents and people. It can index more than 20 formats, including PDFs, scanned PDFs with OCR, source code, spreadsheets, presentations, HTML, Markdown, LaTeX, DOCX files, and images. Search can retrieve passages by meaning rather than exact wording, and the command-line interface also provides hybrid search that combines meaning with keywords.

The MCP interface covers document discovery, retrieval, ingestion, memory capture, directory synchronization, database selection, deletion, and local search metrics. Agents can save short lessons that receive higher ranking in later searches. The `missions_sync` capability stores completed ethos mission rounds in worker-specific memory.

## How it works

A local ONNX embedding model creates vector representations for indexed content, and LanceDB stores those vectors. One `quarryd` process loads the model once and handles requests from the CLI, MCP server, and Claude Code hooks through a versioned REST API. The MCP command communicates with that daemon over standard input/output; scripts can use the HTTP API directly.

Directory registrations can be re-indexed on demand, and project indexing and knowledge capture can be enabled or disabled. Captured web content, session transcripts, and per-agent memory are kept apart from the code index. Secrets and personal information are scrubbed from captures before storage.

Named databases provide separate indexes and directory registrations. A daemon serves one database, while the installed service uses the default database. A daemon can also run on a GPU host and accept connections from Mac or Linux clients over TLS.

## Setup and configuration

Supported platforms are macOS on Apple Silicon and Linux. Intel macOS is unsupported because the required `lancedb` and `onnxruntime` dependencies do not publish Intel macOS wheels.

The installer can install the CLI, daemon, MCP server, and Claude Code plugin. With an existing `uv` installation, install the Python package with `uv tool install punt-quarry`, then run `quarry install` to configure the daemon, certificates, and MCP setup. Homebrew is also available for Apple Silicon macOS and Linux. Run `quarry doctor` to check health.

For other coding agents, a CLI-only installation skips the Claude Code plugin; clients can then invoke `quarry mcp`. Use one installation method per machine to avoid conflicting copies on `PATH`.

## Tools and capabilities

- `find` searches indexed content with filters.
- `show` returns document metadata or page text.
- `list` enumerates documents, collections, databases, and registrations.
- `status` reports database statistics; `insights` reports local query volume, latency, empty-result rate, and result breakdowns.
- `ingest` indexes a URL or inline text, while `learn` stores a short, highly ranked lesson.
- `register_directory` and `sync_all_registrations` maintain directory indexes.
- `delete` removes documents or collections, and `use` changes the active database.

## Limitations and notes

The local design removes cloud dependencies but requires the embedding model and database to run on the host. Compute threads are capped at two each to limit CPU load. The remote-server option uses TLS and is intended for Mac or Linux clients. Directory indexing, capture, and memory are configurable features rather than requirements for every installation.

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

