# Paparats [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/IBazylchuk/paparats-mcp  
**GitHub Stars:** 36  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/paparats

## Description
Semantic code search for AI coding assistants. Local Qdrant, multi-repo, no API keys.

## Tools
Capabilities this server exposes over MCP:

- **search_code** — Semantic search across indexed projects. Returns chunks with symbol info and confidence scores.
- **get_chunk** — Retrieve a chunk by ID with optional surrounding context.
- **find_usages** — Walk the symbol graph from a `chunk_id` — `incoming` (callers/references in), `outgoing` (calls/references out), or `both`.
- **list_projects** — List indexed projects with chunk counts and detected languages.
- **delete_project** — Wipe Qdrant chunks + SQLite metadata for a project (CLI's `paparats remove` calls it).
- **health_check** — Indexing status, chunks per group, running jobs.
- **arch_context** — Read-only architectural memory. Returns components, decisions, and lessons relevant to the query with `updated N ago` stamps and a `min_score` cutoff.
- **get_chunk_meta** — Git history and ticket references for a chunk — commits, authors, dates. No code.
- **search_changes** — Semantic search filtered by last-commit date. Each result shows when it last changed.
- **explain_feature** — Comprehensive feature analysis: locations + recent changes for a question.
- **recent_changes** — Timeline grouped by date with commits, tickets, affected files. `since` filter.
- **impact_analysis** — Cross-chunk impact for a `chunk_id` — symbol graph traversal + cross-project blast radius.
- **arch_record_component** — Record a component with `Does / Owns / Does not / Touched when` fields. Idempotent by `name`.
- **arch_record_decision** — Record an ADR-style decision (`context / decision / alternatives_rejected / consequences`). Server-side similarity gate refuses duplicates and surfaces near-matches; `supersedes` links replace prior decisions.
- **arch_record_lesson** — Record a lesson as `rule / why / when`. Duplicates bump `updatedAt` (Reflexion confirmation) instead of overwriting.
- **token_savings_report** — Aggregate token-savings stats (naive baseline vs search-only vs actually consumed).
- **top_queries** — Most frequent queries by user/session/project anchor.
- **slowest_searches** — Top-N slowest searches with timing + chunk counts.
- **cross_project_share** — Off-anchor result share per user — indicator of search noise.
- **retry_rate** — Tool-call retry rate per user — indicator of unhelpful results.
- **failed_chunks** — AST parse failures, regex fallbacks, zero-chunk files, binary skips.
- **get_document** — Full text of a documentation page found by `search_docs`, section by section, paged at ~40k characters. Support cannot open files, so its excerpts point here.

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

1. Configure:

```sh
mkdir paparats && cd paparats
```

2. Configure:

```sh
curl -fsSLO https://raw.githubusercontent.com/IBazylchuk/paparats-mcp/main/examples/docker-compose/docker-compose.yml
```

3. Configure:

```sh
curl -fsSLO https://raw.githubusercontent.com/IBazylchuk/paparats-mcp/main/examples/docker-compose/projects.yml
```

4. Start the server:

```sh
docker compose up -d
```

5. Add to Claude Code:

```sh
claude mcp add --scope user --transport http paparats http://localhost:9876/mcp
```

6. Run:

```sh
paparats install            # starts the stack, connects Claude Code and Cursor
```

## Documentation

## What Paparats does

Paparats provides semantic code search for AI coding agents working across one or more indexed projects. Search results include code chunks, symbol information, file paths, and confidence scores. The server adds relationship and history data around those results, including callers, references, recent changes, commit authors, dates, and ticket references.

Its architectural memory stores components, ADR-style decisions, and engineering lessons. Agents can query that memory with relevance thresholds, record new entries, and connect replacement decisions through supersession links. Reporting tools expose token-savings measurements, common queries, slow searches, retry rates, cross-project result share, and indexing failures.

## How it works

Projects are indexed into a local Qdrant vector store, with SQLite metadata used by project management operations. Local embedding models are the default and run through llama.cpp. Projects can be local folders or GitHub repositories, and multiple projects in the same group can be searched together.

The indexer checks repositories periodically, processes changed files, and updates the call graph along with the code index. A full pass runs every few hours, while the normal repository check runs about every 10 minutes. An indexer trigger can request an immediate update. The call graph is built per project; calls between separate repositories are not linked.

Paparats exposes coding tools at `/mcp`, read-only support tools at `/support/mcp`, and documentation-oriented tools at `/knowledge/mcp`. Clients that support Streamable HTTP can connect to the coding endpoint at `http://localhost:9876/mcp`.

## Setup and configuration

The Docker Compose setup requires Docker with Compose v2. The quick-start configuration downloads `docker-compose.yml` and `projects.yml`, starts the stack, and connects an MCP client to the local HTTP endpoint. Projects are configured in `projects.yml`; private GitHub repositories require `GITHUB_TOKEN` in a nearby `.env` file.

For local folders and native macOS model execution, the npm CLI requires Node.js 24 or newer. `paparats install` starts the stack and connects Claude Code and Cursor, while `paparats add` registers a local folder or GitHub repository.

Cloud embeddings are available through an alternate Voyage configuration using `VOYAGE_API_KEY`. In that mode, source code is sent to Voyage AI for embedding. Local embedding models, Qdrant, and indexing otherwise run on the local machine or server.

## Tools and capabilities

- `search_code` finds semantically related code across indexed projects.
- `get_chunk` returns a stored chunk with optional surrounding context.
- `find_usages` follows incoming and outgoing symbol references.
- `list_projects`, `delete_project`, and `health_check` manage and inspect indexed projects.
- `arch_context`, `arch_record_component`, `arch_record_decision`, and `arch_record_lesson` provide architectural memory.
- `get_chunk_meta`, `search_changes`, `recent_changes`, and `explain_feature` connect code findings with Git history and feature changes.
- `impact_analysis` evaluates symbol-graph dependencies and cross-project blast radius.
- `token_savings_report`, `top_queries`, `slowest_searches`, `cross_project_share`, `retry_rate`, and `failed_chunks` support operational analysis.
- `get_document` returns documentation pages section by section in pages of roughly 40,000 characters.

## Limitations and notes

Index updates are periodic rather than immediate; an edit may take about 10 minutes to become searchable. Precise refactoring is better handled by a language-server tool, while Paparats is intended for semantic discovery and impact investigation. GitHub projects follow their default branch, and local projects follow the checked-out files at the next change check. Indexing separate worktrees creates separate full indexes.

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

