# parecode [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/BasilSkyWalk/parecode  
**GitHub Stars:** 6  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/parecode

## Description
Token-aware ripgrep code search and atomic multi-file edits for coding agents.

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

1. Install:

```sh
npm install -g parecode
```

2. Add to your MCP client:

```sh
parecode init                       # user scope; installs MCP + SessionStart hook + parecode-explore plugin (defaults)
```

3. Add to your MCP client:

```sh
parecode init --scope project       # commit MCP config + hook to the repo
```

4. Add to your MCP client:

```sh
parecode init --no-hook             # register MCP only; skip the SessionStart hook
```

5. Add to your MCP client:

```sh
parecode init --no-plugin           # skip the parecode-explore Claude Code plugin
```

6. Add to your MCP client:

```sh
parecode init --print               # print the equivalent command without running it
```

## Documentation

## What parecode does

The parecode MCP server helps coding agents inspect and change large repositories while controlling the amount of source text returned to the model. Its search workflow is built around ripgrep and bounded line windows rather than whole-file reads. Search results include estimated token counts, and omitted ranges show where an agent can request more context.

The parecode MCP server is aimed at tasks such as tracing a symbol through a codebase, finding related event handlers, and applying the same change across several files. Its edit operation is designed to avoid partially applied batches: files are checked before and after changes, and same-directory renames are written atomically.

A local JSONL session log can record estimated token savings. The server also provides commands for inspecting prior Claude Code sessions, pruning local data, checking installation status, and updating the installed package.

## How it works

ParecodeSearch runs ripgrep against the requested paths. It accepts one pattern or several patterns in one request. Multiple patterns are searched in parallel, and each result identifies the patterns that contributed to it. Nearby result windows in a file are combined, including bridging lines when needed, so related matches do not produce unnecessary repeated context.

Each match and the complete response carry estimated token counts. An optional related-symbols mode looks for naming patterns such as Handle<X>, On<X>, and <X>Handler or <X>Completed, returning up to ten likely neighbours. When the initial window is incomplete, ParecodeExpand enlarges a known file and line range with optional padding before or after it.

ParecodeEdit receives batched changes for multiple files. Matching tolerates whitespace differences, with a separate opt-in mode for Unicode lookalikes. Changes across files run in parallel, while pre- and post-edit stat checks help detect conflicts.

## Setup and configuration

Install the package globally with:

```sh
npm install -g parecode
```

Use Node.js 20 or later. Install ripgrep separately and make sure `rg` is on `PATH`; Parecode invokes that system binary instead of bundling its own copy. macOS, Debian or Ubuntu, and Windows installation examples are provided by the project through Homebrew, apt, winget, or Chocolatey.

For Claude Code, run `parecode init`. The default setup registers the MCP server, adds a SessionStart hook, and installs the optional `parecode-explore` plugin. Use `--scope project` for repository-local configuration, `--no-hook` to omit the hook, or `--no-plugin` to omit the plugin. `parecode doctor` checks registration, hook state, and `.codegraph/` pairing when present.

## Tools and capabilities

The parecode MCP server exposes three primary tools:

- `ParecodeSearch` searches with context windows, multi-pattern requests, chunking, token estimates, related-symbol discovery, and omitted-range reporting.
- `ParecodeExpand` enlarges a previously located line range without requiring a full-file read.
- `ParecodeEdit` applies batched edits across files with tolerant matching and conflict detection.

The bundled Claude Code plugin adds a read-only exploration subagent that has access only to `ParecodeSearch`. It is intended for questions about locations, behavior, and usages, keeping exploratory work separate from the main context. The plugin is optional and can be skipped during initialization.

## Limitations and notes

Parecode does not bundle ripgrep and cannot use it unless the executable is available on `PATH`. The documented reference client is Claude Code; the hook and exploration plugin are Claude Code-specific, although the MCP tools can be registered with a supported MCP client.

Runtime network access is not used. Session data is stored locally in the operating system data directory, with Unix log files set to `0600`. Startup pruning removes session data older than 30 days, and the envelope log is capped at 5 MB. Retroactive savings scans inspect Claude Code transcripts locally; reading tool input and output requires the explicit `--include-content` option.

Reported token savings and cost reductions depend on the task. The project’s measured comparisons cover search-and-edit work, while single-file or reasoning-heavy tasks may see little benefit. Retroactive scan figures are estimates rather than measured savings.

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

