Parecode logo

Parecode

Token-aware code search, context expansion, and atomic multi-file edits for coding agents.

Install Parecode

Run the project’s own setup commands, in order.

Setup steps from the project

parecode installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g parecode
    
  2. 2. Add to your MCP client
    parecode init                       # user scope; installs MCP + SessionStart hook + parecode-explore plugin (defaults)
    
  3. 3. Add to your MCP client
    parecode init --scope project       # commit MCP config + hook to the repo
    
  4. 4. Add to your MCP client
    parecode init --no-hook             # register MCP only; skip the SessionStart hook
    
  5. 5. Add to your MCP client
    parecode init --no-plugin           # skip the parecode-explore Claude Code plugin
    
  6. 6. Add to your MCP client
    parecode init --print               # print the equivalent command without running it
    

Overview

The parecode MCP server gives coding agents token-aware ripgrep search and atomic multi-file editing. It exposes ParecodeSearch, ParecodeExpand, and ParecodeEdit, with bounded context windows, token estimates, fuzzy matching, and conflict checks. Install it with Node.js 20 or newer and a system ripgrep binary, then register it with an MCP client such as Claude Code. Reach for it when repository exploration, call-site discovery, or repeated multi-file changes would otherwise require many search, read, and edit calls.

Use cases

  • Search large repositories with bounded context windows
  • Trace symbol call sites and related event handlers
  • Expand only the source range needed for follow-up analysis
  • Apply coordinated edits across multiple files
  • Review local estimates of past token savings

Key features

  • Ripgrep-backed multi-pattern search
  • Per-match and response-level token estimates
  • Context expansion for known line ranges
  • Atomic batched multi-file edits
  • Whitespace-tolerant matching and conflict checks
  • Local session statistics with retroactive scanning

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/19 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Parecode works

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, On, and Handler or 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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Parecode

parecode is an MCP server that connects coding agents to ripgrep and local project files for token-aware code search and safe edits. Its main tools are ParecodeSearch for bounded searches, ParecodeExpand for retrieving more lines, and ParecodeEdit for batched multi-file changes with conflict checks.

Install it with `npm install -g parecode`, then ensure Node.js 20 or newer and ripgrep are available on `PATH`. Run `parecode init` to register it with Claude Code, or use the equivalent MCP registration method for another supported client.

No, Parecode performs no network calls at runtime. Session logs and retroactive scans stay on the local machine; the optional `--include-content` flag permits reading transcript tool input and output locally but does not change the stated no-network behavior.

Use `ParecodeSearch` for bounded context windows and token estimates, then call `ParecodeExpand` only for an incomplete range. Multi-pattern searches, merged nearby windows, omitted-range reporting, and optional related-symbol discovery reduce repeated search and full-file reads.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewParecode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/parecode?style=directory)](https://allmcps.com/mcp/parecode)
HTML Embed
<a href="https://allmcps.com/mcp/parecode"><img src="https://allmcps.com/api/badge/parecode?style=directory" alt="Parecode on AllMCPs" /></a>