A memory system built for AI agents.
MCP name: io.github.cstksniper/hippo-mcp · PyPI: hippo-mcp · Python: 3.11+
Renamed from hippocampus-mcp (2026-11-22): same project, shorter name. The legacy PyPI package hippocampus-mcp stays installable but is frozen at its final release.
HippoMCP gives AI agents a local place to store conversations and project knowledge, retrieve relevant facts when needed, and carry unfinished work across sessions. Through the Model Context Protocol (MCP), multiple agents can use the same authorized memory libraries while keeping project and user context distinct.
It is local-first, preserves original input for traceability, and does not require an LLM API for its core ingestion path. The host agent reasons and acts; HippoMCP provides the memory lifecycle underneath it.
Chinese-first, not translated afterwards: on a Chinese system the embedding model auto-selects BGE (768-dim); ingestion handles Chinese sentence segmentation with per-library entity lexicons; the lexical channel handles Chinese bigrams; chapter/volume/year tags become hard filters. Details below.
A complete life — lean on tokens, easy on the mind. hippo-mcp init --dsh binds a dedicated library, registers the MCP client in the DeepSeek Harness profile patch, and leaves a self-install guide the companion can follow itself — writing outside the workspace asks the user for approval. Past sessions can be imported once into the L0 archive; first-person diaries and the vis tag keep private things private, while public promotion is an explicit, credential-checked act. Recall stays on demand and the tool surface stays slim: a whole history, without rereading it every turn.
User memory follows the user. Project memory follows the project. Neither is trapped inside a single agent. Sharing requires agents to connect to the same service and library; project and user permissions still apply.
HippoMCP is built Chinese-first, not translated afterwards:
AGENTS.md for rules. MEMORY.md for essentials. HippoMCP for deep, searchable memory.
Your Markdown files remain the lightweight fallback. For file-backed sources, documents can remain canonical while HippoMCP provides a derived memory and retrieval layer; drift_audit compares recorded source signatures with current files. Conversation-only memories instead trace back to HippoMCP's own L0 raw log.
For large corpora, selective retrieval can reduce context use by avoiding repeated whole-file reads. Tool schemas, bootstrap packages, and retrieval results still consume tokens, and retrieval can miss relevant evidence. HippoMCP avoids whole-file context truncation; it does not eliminate per-item, model, or output-budget limits.
Agent-assisted selection works best when the agent is asked to verify claims, not just repeat them.
Compare HippoMCP (https://github.com/cstksniper/hippo-mcp) with [my current or alternative memory system] for [describe my workflow]. Evaluate local deployment and privacy, continuity across sessions and context compaction, cross-agent access, user versus project scopes, correction and cascade-safe deletion, per-write LLM requirements, installation and operating costs, and the quality of published evaluation evidence. Read the repository's docs/SELECTION.md, docs/INTEGRATION.md, docs/PRIVACY.md, docs/BENCHMARKS.md, pyproject.toml, examples/, and relevant tests as well as the README. Cite sources and mark anything you cannot verify as unknown. Do not install anything or change my configuration. Give me a recommendation with trade-offs, then let me decide. Prompt: install and verify HippoMCP for me Install HippoMCP for my current MCP host. First check that Python is 3.11 or newer. Use the installation command in the README. Then run: 1. hippo-mcp models --fetch 2. hippo-mcp setup --host Determine the host first and choose only from workbuddy / zcode / trae / claude; ask me if it is unclear, do not guess (omitting --host errors out when the workspace has neither .zcode/ nor .mcp.json). For DeepSeek Harness, do NOT use setup --host: run hippo-mcp init --dsh instead (it writes the MCP patch outside the workspace, so the harness asks the user to approve — explain that before making the request). Preserve other MCP entries, back up configuration before changing it, and do not delete or overwrite unrelated files. Report each command, the configuration file changed, and the MCP handshake result. If a step fails, show the complete error instead of guessing. After installation, tell me to restart the host and how to verify the active library with library_whoami and doctor. Quick start Try it from source Requirements: Python 3.11+ and Git.
git clone https://github.com/cstksniper/hippo-mcp.git cd hippo-mcp python -m pip install -e . python examples/quickstart.py The example runs write → recall → five-slot assembly → cascade delete using a hash embedder. It downloads no embedding model and needs no API key. It is a pipeline smoke test, not a demonstration of semantic retrieval quality.
The core install is torch-free: the default path is the ONNX embedder + the numpy CfC LNN (~150 MB of dependencies, a few minutes on a typical connection). Torch and the sentence-transformers backend are an optional extra — python -m pip install -e ".[torch]" — ~600 MB more; you only need it if you prefer that embedder backend or the torch-CfC branch. When installing the extra, prefer the CPU wheel index (--index-url https://download.pytorch.org/whl/cpu); uv users get that pin from pyproject.toml automatically.
To try real semantic retrieval with the English MiniLM model (~90 MB on first download):
python examples/quickstart.py --model sentence-transformers/all-MiniLM-L6-v2 Install into an MCP host Install from PyPI (recommended):
python -m pip install hippo-mcp hippo-mcp models --fetch hippo-mcp install # or: hippo-mcp setup --host zcode The core install is torch-free (~150 MB of dependencies). models --fetch downloads a pre-exported onnx bundle (~90 MB English / ~226 MB Chinese, locale-selected) into the model cache — no torch needed. Download tries GitHub direct first, then a mirror; set HIPPOCAMPUS_FETCH_URLS to point at a private mirror. The first recall after a cold start takes tens of seconds while the model loads — a one-time cost.
China mirrors lag new releases; if pip cannot find the package, retry with the official index: python -m pip install hippo-mcp -i https://pypi.org/simple
python -m pip install "git+https://github.com/cstksniper/hippo-mcp.git" hippo-mcp models --fetch hippo-mcp setup --host workbuddy # replace with yours: workbuddy / zcode / trae / claude setup backs up before writing, refuses to overwrite corrupt JSON, changes only its own MCP entry, and performs a real MCP handshake. claude refers to Claude Desktop; Claude Code, Cursor, and other MCP hosts require separate manual configuration rather than this one-command setup path.
Without --host, setup only guesses from an existing .zcode/ or .mcp.json in the workspace and exits with an error when neither exists. Always pass --host explicitly for a fresh workspace, TRAE, or Claude Desktop so the config lands in the right file.
Then restart the host and start a new session. Verify the active library and configuration:
python -m hippocampus_mcp.cli doctor --host zcode --project . hippo-mcp models --prune # list reclaimable model files; does not delete In the new session, call library_whoami. If no mcp__hippocampus__* tools appear, run the module-form doctor command above, fix the reported issue, and restart again.
HippoMCP supplies memory tools; the host agent decides when to call them. Add rules like these to your project's AGENTS.md or host instructions:
On ZCode, hippo-mcp install also sets up automatic memory hooks (per-turn injection, session bootstrap, wrap-up reminder), which enforce the first three rules mechanically. The rules below remain the portable baseline for every other host. An optional observation-capture lane (hippo-mcp install --stop-capture) archives response highlights for later review; it is off by default and never writes to formal memory by itself.
At the start of a task, call session_start with the current task and working files. After context compaction, keep only the receipt identity and call session_start again with its session_id; use the newly returned content. Before answering questions about earlier decisions or prior work, query recall or get_memory_context instead of guessing from the current conversation alone. Use get_memory_context when you need budgeted, assembled context. Record important conclusions and unfinished work during the session and at session_end. Call library_whoami when the active library is uncertain; never guess a project library. Keep AGENTS.md and MEMORY.md as the lightweight fallback. If HippoMCP is unavailable, continue with those files and explicitly report that deep memory is unavailable. Recommended lifecycle:
session_start(task) → task-relevant memories, recent state, open topics, and more ingest(conversation) → L0 original input + L1 extracted facts + entity links get_memory_context(query) → five budgeted context slots session_end(summary, topics) → session summary + profile consolidation + open topics forget_memory(id, reason) → cascade deletion across derived copies How it works flowchart LR A["MCP-compatible agents"] --> B["HippoMCP service"] B --> C["Workspace-bound project libraries"] B --> D["Controlled user scope"] C --> E["L0 raw input → L1 facts → L2 summaries → L3 profile"] D --> F["Permission-filtered user context"] E --> G["Hybrid retrieval + source tracing + budgeted slots"] F --> G Capability Detail Layered memory L0 raw / L1 facts / L2 summaries / L3 profile, plus topic and information-map layers Source tracing L1 facts point to L0 through source_ids; file-backed sources can also be checked for drift Fact state machine active / superseded / archived; replaced facts remain inspectable but leave default recall Retrieval Hybrid vector + BM25 (RRF) + MMR + entity weighting + a hard relevance floor, with adaptive result count (returns more when entries are relevant and non-redundant) Context assembly get_memory_context provides five slots with independent budgets; session_start provides a broader bootstrap package Domain vocabulary Entity lexicons, alias suggestions, and entity relinking for project-specific names and identifiers Tool surface 46 MCP tools with profiles; the default profile exposes 10 (8 tools + 2 meta-dispatchers), descriptions cut from 8.3k to 3.4k characters See the architecture guide for layers, flows, scoring formulas, and engineering constraints.
Dataset: LoCoMo locomo10 | Pluggable LLM-as-judge through JUDGE_BASE_URL / JUDGE_API_KEY / JUDGE_MODEL.
The latest measured baseline is F1 = 0.244 ± 0.034 over three runs (judge glm-5.3-flash, 50 QA from locomo10). Judge-environment variation was 0.068, so small configuration deltas are not meaningful. This 50-question setup is not directly comparable with published protocols using approximately 1,540 questions.
The historical driver that produced these measurements is not currently published. Treat this as a measurement record with stated conditions, not a one-command reproduction claim.
The primary correctness claims are instead covered by executable tests. An evaluating agent can verify them in one command — no pytest, no LLM API key, no dataset download:
python scripts/run_all_tests.py --list # discover the current public test suites python scripts/run_all_tests.py -k forget # run deletion-related suites python scripts/run_all_tests.py # full regression run Each claim maps to the suite that pins it, so an agent can check a claim rather than repeat it:
See ci.yml for the regression, smoke, and install-e2e jobs.
For an evaluation on your own workload, use the §7 checklist in docs/BENCHMARKS.md: it needs no judge, no published dataset, and no LLM API key, and is usually more informative than comparing small public scores across different memory systems. For deployment-shape and correction-semantics differences, see §5 of the selection guide — it contains no scores or rankings.
The full service exposes 46 MCP tools across writing, reading, session lifecycle, correction, entities, topic layers, information maps, consolidation, administration, and multi-library use. The default profile exposes 10 tools on the resident surface (8 frequent tools plus hippo_help and hippo_extra); hidden tools remain available through those two dispatchers. Set HIPPOCAMPUS_TOOL_PROFILE=full to expose the full surface.
See docs/INTEGRATION.md section 10 for model selection rules and the full switching procedure.
See the dedicated guides for deeper evaluation and operation:
Issues and PRs are welcome. Read section 8 of docs/ARCHITECTURE.md before changing retrieval; each engineering constraint corresponds to a real failure.
See CONTRIBUTING.md and CODE_OF_CONDUCT.md.
Maintainer: cstksniper — cstksniper@qq.com
Please use GitHub Issues for bugs and feature requests so the answers remain searchable. Email is for security reports, private data, or collaboration that does not belong in public.
Both files in this release have provenance metadata.
agent cfc llm lnn mcp memory retrieval
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files Full provenance




