Pasr logo

Pasr

Selects local code context within token budgets and records file:line provenance for coding agents.

Install Pasr

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pasr": {
      "command": "uvx",
      "args": [
        "--from",
        "pasr-mcp==0.4.0",
        "pasr-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 5 tools correctly ().

Overview

The pasr MCP server selects local repository context within a token budget and reports file:line provenance. It runs against a configured workspace without a daemon, vector database, or manual index, and exposes search, context selection, and direct file-reading workflows alongside native agent tools. Selection receipts record included and excluded spans, token counts, retrieval signals, and selection reasons under `.pasr/receipts`. Reach for it when an agent needs source-traceable code excerpts rather than broad repository dumps.

Use cases

  • Select relevant repository spans under a token ceiling
  • Trace retrieved code back to file and line locations
  • Inspect selection receipts during source-reading tasks
  • Run context selection from the CLI without an agent

Key features

  • Token-budgeted context selection
  • File:line provenance
  • Selection receipts under .pasr/receipts
  • Local workspace operation
  • Heuristic retrieval and coverage details
  • CLI explanation and diagnostics

Tools5

What Pasr lets your agent do. Expand a tool for its parameters.

Verified live~565 tokens of context

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.

11/11 checks healthy over the last 44d

What it can do

From the 5 tools this server returned when we ran it.

Handles credentials · 1Read-only tools · 5
Network at startup2 connections
Files written at startup12

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · pasr-mcp (PyPI)

Adoption & maintenance

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

Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Pasr works

What the pasr MCP server does

The pasr MCP server helps coding agents retrieve bounded portions of a local repository. It selects source spans that fit the requested returned-context budget, including rendered labels, headings, separators, and redaction. A selected span may be smaller than a complete function because the system admits whole computed spans only when the final representation fits.

Each selection can produce a receipt identifying the source location, token count, retrieval signals, and reason the span was kept or dropped. Receipts are stored beneath the workspace's .pasr/receipts directory on a best-effort basis, and the response indicates whether persistence succeeded. They describe context delivered by PASR, not every file an agent may have inspected through other tools.

How it works

The pasr MCP server operates locally against a workspace supplied at startup. It does not require a background daemon, vector database, or manually built index. Offline selection needs the installed dependencies and cached tokenizer data; optional model weights are separate. A client can still send the returned source to a hosted model, so local retrieval does not mean the source stays local after the client forwards it.

The host decides when to search, select context, or read files directly. PASR also exposes query classifications, keyword coverage, and routing advice in its receipts. These values are heuristics: they are not calibrated correctness probabilities and do not prove that all relevant evidence was retrieved. Source checking remains necessary.

Setup and configuration

Install the published pasr-mcp package with uvx, using Python 3.10 or newer, and provide an absolute repository path with --workspace. Version 0.4.0 can be launched with uvx --from pasr-mcp==0.4.0 pasr-mcp --workspace /absolute/path/to/project. The repository itself is not needed for a package installation. A released wheel can also be installed with pip, after which the configured command runs the installed pasr-mcp executable.

The README provides setup notes for Claude Code, Cursor, and Windsurf, and shows a Codex registration using codex mcp add. The server uses standard MCP configuration with a command and argument list. Avoid registering the same pasr entry twice when merging configuration. The optional pasr doctor command checks installation behavior in a disposable fixture; it does not scan or write the target project.

Tools and capabilities

Documented workflows include:

  • Searching a configured workspace for relevant source.
  • Selecting context under a returned-token ceiling.
  • Reading files directly when bounded selection is not the right fit.
  • Reporting file:line provenance for selected spans.
  • Writing best-effort selection receipts with token and retrieval details.
  • Running pasr explain without an agent to inspect a selection receipt.

Limitations and notes

The default redaction behavior is a no-op, so PASR should not be treated as automatic secret detection. Receipt persistence can fail. Selection advice does not establish answer quality, completeness, or correctness, and smaller context does not by itself guarantee lower cost or more accurate responses.

Initial setup and tokenizer encoding downloads may require network access. PASR may write receipts or cache data in the workspace. The diagnostic command reports runtime and check results rather than source, absolute paths, environment values, or raw exceptions; a passing diagnostic does not validate client registration, approval settings, or agent answers.

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 Pasr

pasr is an MCP server that connects coding agents to a local repository workspace and provides search, token-budgeted context selection, direct file reading, and source-traceable receipts. It records file:line locations, token counts, retrieval signals, and selection decisions so agents can work from bounded code excerpts.

Install it with `uvx --from pasr-mcp==0.4.0 pasr-mcp --workspace /absolute/path/to/project` and register that command in your MCP client. Python 3.10 or newer is required, and `uvx` must be available on PATH. A released wheel is also available through pip.

Yes, pasr includes setup notes for Cursor. Register the standard MCP command with the repository path passed through `--workspace`, then use PASR alongside Cursor's native tools.

PASR saves receipts under the inspected workspace's `.pasr/receipts` directory on a best-effort basis. Responses report whether a receipt was written. These records cover context delivered by PASR, not all source accessed through an agent's other tools.

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 PreviewPasr AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pasr?style=directory)](https://allmcps.com/mcp/pasr)
HTML Embed
<a href="https://allmcps.com/mcp/pasr"><img src="https://allmcps.com/api/badge/pasr?style=directory" alt="Pasr on AllMCPs" /></a>