Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🧠 Knowledge & Memory
  3. Weighted Compact
Weighted Compact logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 11:01:06 AM

Weighted Compact

User RatingsBe the first to rate and review this MCP server!
View Repository4 GitHub StarsTotal stargazers on GitHub for the source repository (4 stars).Visit Website

Local, inspectable memory substrate for Claude Code sessions with provably faithful recaps and zero outbound calls.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for zzallirog/weighted-compact, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing Alternatives🧠 More in Knowledge & Memory

Overview

This server reads local Claude Code session data from ~/.claude/projects/ and provides a task-segmented, provably faithful recap per session along with an inspectable substrate of correction turns stored as numpy columns. It enforces zero outbound network calls and zero idle RAM usage, making it suitable for local-first, auditable memory management. Use it when you need transparent, local memory artifacts for Claude Code sessions and want to control which data is kept or skipped.

Use cases

β€’Generate task-segmented recaps of Claude Code sessions
β€’Inspect and audit correction turn data with numpy columns
β€’Serve local MCP tools for Claude Desktop or IDE clients
β€’Control memory compaction with keep/skip labels as hard constraints

Key features

β€’Provably faithful recap with four invariants checked on all sessions
β€’Local substrate of correction turns with multiple importance signals
β€’Zero outbound network calls enforced by CI
β€’Minimal idle RAM usage (0 MB between invocations)
β€’MCP tools for searchpairs, compactsession, and substrateinfo
β€’Compatibility with Python 3.11+ and stdlib-only recap mode

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Weighted Compact.

Extracted Tool Capabilities
Provably faithful recap with four invariants checked on all sessions
Local substrate of correction turns with multiple importance signals
Zero outbound network calls enforced by CI
Minimal idle RAM usage (0 MB between invocations)
MCP tools for searchpairs, compactsession, and substrateinfo
Compatibility with Python 3.11+ and stdlib-only recap mode

Documentation Overview

weighted-compact

A provably faithful recap and local inspectable substrate for your Claude Code sessions.

~/.claude/projects/ is the record of every correction you pushed back on. weighted-compact reads it and gives you two local artifacts: a task-segmented recap per session (stdlib-only, provably faithful, ~5 ms/session), and a substrate of every correction turn as inspectable numpy columns. Zero outbound. Zero idle RAM.

Three claims, kept apart so none borrows another's credibility:

  • recap β€” provably faithful: four invariants re-checked on 1007/1007 sessions (weighted-compact recap --all). Stdlib-only, no model, no judge. The one consumer with a positive, re-checkable result.
  • manifesto control β€” your keep/skip labels are a hard constraint, not a soft boost: 100 % keep-label survival at k ≀ 0.7 (vs recency baseline 62 %). The first compaction claim that beats a cheap baseline.
  • mixture fidelity β€” the six-signal importance mixture has no measured edge over recency or bm25 at current N. We say so, with the numbers, in How it compares.

Reach for this if you want local artifacts you can audit and steer; reach for a drop-in like claude-mem if you want set-and-forget recall.

License: MIT Python 3.11+ status: alpha outbound-zero

Code
  ~/.claude/projects/          β”Œβ”€ recap ─────────────────────────────────┐
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚ task-segmented map: per-task files +     β”‚  ⭐ provably faithful
  β”‚ session_1.jsonl  │────┬───▢│ diffstat, commands, verbatim outcome     β”‚     4 invariants Β· 1007/1007
  β”‚ session_2.jsonl  β”‚    β”‚    β”‚ + `--audit` (stdlib-only, ~5 ms/session) β”‚     (lossy navigation map)
  β”‚     ...          β”‚    β”‚    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  β”‚ session_N.jsonl  β”‚    β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚    β”Œβ”€ substrate ───────────┐   β”Œβ”€ compaction ─────┐
                          └───▢│ 5 auto signals + opt.  │──▢│ top-K markdown    β”‚  honest-null:
                               β”‚ label β†’ importance.npz β”‚   β”‚ + budget meta     β”‚  no fidelity edge
                               β”‚ Γ— topic-decay / REM    β”‚   β”‚ (MCP / CLI)       β”‚  over recency/bm25
                               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
bash
# 30-second install
pipx install 'weighted-compact[mcp]'

# recap β€” the provably-faithful consumer; stdlib-only, runs on a bare install
weighted-compact recap --all            # task-segmented map of every session + invariant audit

# compaction substrate (honest-null on fidelity; kept for the substrate-vs-summary result)
weighted-compact bootstrap --full       # extract pairs + build the full signal substrate
weighted-compact mcp-serve              # local stdio MCP for Claude Desktop / IDE clients

β†’ Docker / Windows install Β· Operating guide Β· Bench vs claude-mem Β· Stability promise Β· Extension recipe Β· Pick your door


By the numbers

Every figure here is re-checkable on your own corpus, and each carries its own asterisk in plain sight β€” the project's stance is that an honest number beats a flattering one.

  • 1007 / 1007 sessions pass all four recap faithfulness invariants β€” coverage Β· conservation Β· provenance Β· determinism (weighted-compact recap --all). This proves the map does not lie about the session β€” not that it is the optimal summary.
  • ~5 ms / session β€” 584 MB of transcripts mapped in 5.2 s, standard library only (no numpy, no model, no judge in the recap path).
  • 0 outbound network calls Β· 0 MB idle RAM β€” the first is enforced by the outbound-zero CI workflow, the second because nothing runs between invocations.
  • Querying the substrate beats a one-pass LLM summary by ~3.5Γ— on reconstruction fidelity (11.3 % vs 3.2 %, N=62, gemma3 judge). That is the one axis with a measured edge; the importance mixture does not beat cheap baselines at this N, and the comparison table says so.
  • recap shrinks a session ~180Γ— β€” as a lossy navigation map, not a reconstructable archive. For lossless archival, zstd -19 (~3Γ—) wins and this repo points you to it rather than shipping a weaker custom fold.

How it compares

A 30-second product map vs the dominant adjacent tool:

weighted-compactclaude-mem (77 k β˜…)
Capturereads ~/.claude/projects/ on demand5 always-on lifecycle hooks
Importance ranking6 inspectable signals + REM-decayORDER BY recency DESC LIMIT k
Manifesto controlkeep/skip labels honored as a hard constraint (pin / drop)none
Compactiontop-K vector selection β†’ markdownLLM-summary, opaque
Auto-injectionnone β€” client pollsevery session start
Outbound networkzero (default)configurable LLM provider per turn
Substrate inspectionnumpy columns on diskSQLite + Chroma
Idle RAM0 MB (nothing runs)~80–150 MB worker
Reconstruction fidelityno measured edge β€” ties recency/bm25not measured by them

The honest trade: the structural rows above (local, zero-outbound, inspectable, 0 idle RAM, manifesto control) are real and verifiable. The quality row is not a win β€” on reconstruction-fidelity the six-signal mixture has not been shown to beat cheap baselines like recency or bm25, and neither does hand-curation (see docs/baselines.md). What is a real, exclusive property is manifesto control: your keep/skip labels are honored as a hard selection constraint β€” a keep-labeled pair is guaranteed to survive compaction (up to budget), a skip-labeled pair is dropped first. Measured on a 16-pair labeled session: 100 % keep-label survival at k ≀ 0.7 (vs recency baseline 62 %). That is a deterministic control guarantee, not a compression-quality claim (proven by construction in tests/test_manifesto.py; default-on in the compact_session MCP tool, meta.manifesto reports what it honored). claude-mem is hook-installed in seconds and feels magic; weighted-compact is a transparent substrate you own, steer with a manifesto, and query with intent. Pick on transparency / locality / control, not on compression quality β€” see docs/bench-vs-claude-mem.md.


The substrate is the artifact

~/.claude/projects/ already contains the record of every correction you pushed back on, every flag you restated, every constraint the model lost track of. weighted-compact reads those files once, parses them into per-pair objects (correction text, premise text, span tiers, session anchors), and decorates each pair with six signals: density features, span coverage (four tiers: keep / maybe / skip / think), and one optional human label.

The decorated substrate lives at $XDG_DATA_HOME/weighted-compact/ β€” gitignored, never uploaded. It is the artifact. Compaction is the first reader; other consumers read the same files.

Five of the six signals run without any human input. The sixth β€” label β€” is an optional power-tier, not a requirement: the published ablation puts its 95 % paired CI [βˆ’0.004, +0.109] crossing zero on the lower bound, with 67 % of paired runs showing zero difference. The substrate stands on the five automatic signals (density + four span tiers); the labeler at :18890/ is opt-in for users who want to add an explicit human judgement track.

A nightly REM pass (weighted-compact rem-pass, default 04:00 via the bundled systemd-user timer) lays a wall-clock half-life multiplier on top: yesterday Γ— 0.91, week ago Γ— 0.50, month ago Γ— 0.05. Independent of the six-signal mixture β€” content signals stay stable, time refreshes every day. See docs/rem-decay.md.

Consumers reading this substrate today

ConsumerWhat it does with the substrateStatus
Compaction layer β€” build_compacted_context_with_meta()top-K importance selection β†’ markdown context + budget meta (chars, tokens, top-3 signals). Exercised via the qa-gate evaluation harness; standalone session-start delivery is the next-targeted feature.shipped β€” library + harness + MCP tool
Schema extraction β€” third retrieval tierextracts reusable (trigger, rule, anti-pattern, stable_since) rules from your memory dir; sits above chunk/episode retrieval as the cheap top-tier β€” when a recurring pattern fires, you get the rule, not raw chunksshipped β€” weighted-compact schema {build-bank,run,all}; honest first proof: 14/20 strict MATCH = 70 % same-model judge (cross-model drops to 1/20) (see docs/schema-extraction.md)
Recap β€” task-segmented navigation mapreads the same session source and renders, per task, the files touched (with a +adds/βˆ’rems diffstat), the commands run, and the verbatim outcome line. A deliberately lossy map β€” not reconstructable β€” but the one consumer whose quality claim is positive and provable: four faithfulness invariants re-checked on every session.shipped β€” weighted-compact recap [SESSION] [--audit] [--all]; audit holds on 1007/1007 of the maintainer's sessions (see docs/recap.md)

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    β˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    🧠 Knowledge & Memory21 views
    Compare vs Moxie Docs MCP β†’
  • Scrivener MCP logoScrivener MCP

    Connect Scrivener 3 writing projects to Claude and other AI assistants. 47 tools for document management, writing analysis, semantic search, character/plot memory, and content enhancement. Progressive skill loading, relationship engine with HMS triplets, and JS fallback for offline semantic search. npm i -g scrivener-mcp

    🧠 Knowledge & Memory16 views
    Compare vs Scrivener MCP β†’
  • Codebase Memory MCP logoCodebase Memory MCP

    Code-intelligence engine that indexes a repo into a persistent knowledge graph β€” functions, classes, call chains, HTTP routes, cross-service links. 159 languages via tree-sitter + Hybrid LSP, sub-ms structural queries, 99% fewer tokens than grep. Single static binary, zero dependencies, 100% local. npx codebase-memory-mcp

    🧠 Knowledge & Memory7 views
    Compare vs Codebase Memory MCP β†’
  • Hindsight logoHindsight

    Hindsight: Agent Memory That Works Like Human Memory - Built for AI Agents to manage Long Term Memory

    🧠 Knowledge & Memory3 views
    Compare vs Hindsight β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
4
Stargazers on the source repository.
Last commit
3mo ago
Most recent push to the default branch.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Weighted Compact

No, it enforces zero outbound network calls, verified by continuous integration.

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

Technical Specs & Signals

Category🧠Knowledge & Memory
More technical detailsExpand β–Ύ
Last updatedAug 7, 2026
9/10 checks healthy over the last 33d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars4
GitHub Star CountTotal stargazers on GitHub representing community popularity (4 stars).
Last commit3mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jun 10, 2026
41Quality signal: Fair Β· 41/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools19/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🧠 Knowledge & Memory β†’Best MCP servers for Memory & Knowledge β†’Alternatives to Weighted Compact β†’Install in Claude DesktopInstall in CursorInstall in VS Code