Skip to main content
Glama

PARE

Keep what matters. Cut the rest.

PARE is a local-first, explainable AI context auditor. It counts supplied text with a documented tokenizer, detects structural waste, and can propose narrowly scoped prose deduplication that always requires review.

Maintained by Ayush Raj at ayushcmd/pare.

Community: contributing, support, security, privacy, and code of conduct.

Current implementation

  • Framework-free browser analyzer; analysis stays in the browser by default.

  • Shared deterministic TypeScript core.

  • Cloudflare Worker JSON API and remote Streamable HTTP MCP endpoint.

  • Two read-only MCP tools: analyze_context and compare_content.

  • o200k_base token counting through gpt-tokenizer.

  • No database, accounts, saved analysis history, or external AI API.

Related MCP server: token-lens-mcp

Develop

Requires Node.js 22 or newer.

npm install
npm run dev

Run all local checks:

npm run check

Connect an MCP client locally

For a stdio MCP client, launch the published package with npm:

{
  "mcpServers": {
    "pare": {
      "command": "npx",
      "args": ["-y", "pare-mcp@1.0.0"]
    }
  }
}

On Windows, some clients require npx.cmd as the command. The client must support installing and running a local stdio MCP server.

Build the stdio server, then configure a client that supports local MCP servers to launch the built JavaScript file with Node.js:

npm run build:mcp

Example client configuration (replace the path with the absolute path on your computer):

{
  "mcpServers": {
    "pare": {
      "command": "node",
      "args": ["C:/absolute/path/to/pare/dist/mcp/stdio.js"]
    }
  }
}

MCP clients use different configuration shapes; adapt the command and args fields to your client. Ask the AI to call analyze_context with the exact text when you want suggestions, and set includeDraft: true when you want a reviewable prose draft. compare_content measures an original and a candidate you provide. PARE does not intercept other messages automatically. The npm package provides a local stdio server; there is no hosted MCP service yet.

The optional task field changes guidance for recognized diagnostic, success/performance, JSON aggregate, and lookup tasks. It uses simple keyword rules; it does not determine what information is safe to delete. Repeated prose findings are restricted to plain text that passes the conservative prose classifier.

The public npm package can be launched locally with npx -y pare-mcp@1.0.0 in an MCP client that supports stdio. The tarball contains the CLI bundle, README, package metadata, NOTICE, and the root Apache-2.0 license. npm run test:package installs a local tarball into a temporary directory and calls both MCP tools through the installed CLI.

Codex CLI 0.171.0-alpha.13 was tested with a local PARE tool call on Windows. See client validation for the exact scope and setup command.

The website supports .txt, .md, .json, .js, .ts, .py, and .log as text. Uploaded code is never executed.

Important limits

PARE detects structural patterns. A smaller input is not guaranteed to preserve meaning, improve model quality, reduce latency, or lower a bill. Review every proposed draft before using it.

Status

The local stdio package is versioned for a 1.0.0 release. The currently published 0.1.0 package remains available on npm and in the official MCP Registry until 1.0.0 is published. Production authentication, measured Worker limits, public deployment, GitHub catalog discovery, and OpenAI directory review remain separate work.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      MCP server and local proxy that compresses LLM prompts, tool output, and replies to cut token cost, with a quality gate that reverts any step that does not save. Exposes llmtrim_compress, llmtrim_compress_text, and llmtrim_stats.
      3
      276
      Mozilla Public 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables analyzing and optimizing context window token usage by measuring, compressing, and eliminating waste from MCP tool definitions.
      54 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A transparent proxy that sits in front of any other MCP server and shrinks its tool output before it reaches the model. Lossless by default: the transformed bytes are a denser encoding of the same data, with a round-trip gate asserting an exact inverse over the corpus, so nothing is dropped, summarised, or offloaded to a cache that expires. Repeated calls to the same tool emit a delta against the
      2
      1,070 PyPI
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides MCP tools to profile and optimize LLM conversation context, identifying token waste and applying deterministic fixes to reduce context window usage.
      965 npm
      3
      MIT