Paparats MCP: self-hosted semantic code search for AI coding agents

Paparats MCP is an open-source, self-hosted MCP server that gives Claude Code, Cursor,
Codex, GitHub Copilot and any other MCP client semantic code search across many
repositories: by meaning, with who calls what, and what a change will touch. It runs on
your machine or your server in Docker, with local embedding models by default, so your
code stays with you.
Your agent asks "where do we retry failed payments?" and gets the few functions that do
it, with file and line, instead of grepping and reading whole files. Before changing one,
it asks what depends on it and gets the callers two steps out (up to three) and the tests
that reach them.
With Paparats the agent answered 25% faster and read 23% fewer new tokens. Claude Code,
the same question about this repository, without Paparats (left) and with it (right), at
5× speed. Averages over three runs each: 99 s against 74 s, 23% fewer new input tokens and
21% fewer output tokens. This repository is small, about 300 files. On large legacy
codebases spread over many repositories, where I use Paparats every day, the difference is
much bigger.
Quick start
You need Docker with Compose v2. Two files and one command:
mkdir paparats && cd paparats
curl -fsSLO https://raw.githubusercontent.com/IBazylchuk/paparats-mcp/main/examples/docker-compose/docker-compose.yml
curl -fsSLO https://raw.githubusercontent.com/IBazylchuk/paparats-mcp/main/examples/docker-compose/projects.yml
docker compose up -d
claude mcp add --scope user --transport http paparats http://localhost:9876/mcp
projects.yml indexes this repository, so there is something to ask about right away
(docker compose logs -f paparats-indexer shows the progress). Put your own GitHub
repositories there; the file is reloaded on save, and private ones need GITHUB_TOKEN in a
.env next to it. Any other MCP client takes the same URL, http://localhost:9876/mcp
(setup for each).
Then ask your agent:
Search the codebase for where we handle failed payments, show me what calls it, and
what would be affected if I changed it.
Without local models: download docker-compose.voyage.yml instead, put
VOYAGE_API_KEY=... into .env and run docker compose -f docker-compose.voyage.yml up -d.
Code is then sent to Voyage AI to be embedded, and the 2.3 GB of models are not needed.
With the CLI
Easier for folders on your machine (it mounts them for you) and on macOS, where the models
run natively with Metal; in Docker on a Mac they only get the CPU. Needs Node.js 24+.
npm install -g @paparats/cli
brew install llama.cpp mostlygeek/llama-swap/llama-swap # macOS only: local models with Metal
paparats install # starts the stack, connects Claude Code and Cursor
paparats add ~/code/my-app # or `.`, or a GitHub repo: paparats add acme/widgets
paparats list # wait until the project shows as indexed
Nothing local:
runs the whole stack in your own Codespace, on this repository.
All install options, hardware and upgrading: docs/install.md.
What your agent gets