Listed from the MCP registry; nobody on Odel publishes it.
MCP-native long-term memory for AI agents: local-first, pip-installable, native Chinese support
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx hippocampus-mcp
MCP client config
{
"mcpServers": {
"hippomcp": {
"command": "uvx",
"args": [
"hippocampus-mcp"
]
}
}
}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 packagehippocampus-mcpstays installable but is frozen at its final release.
English | 简体中文
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.
Usable by an agent, out of the box
pip install hippo-mcp, then hippo-mcp install writes the host
config, memory hooks, and diagnostics; hippo-mcp init --project . binds a new project with
zero manual steps.原生中文 · Native Chinese support
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.
| Function | Pain it addresses | What the system provides |
|---|---|---|
| Remember conversations and documents | Important conclusions disappear when a session ends or its context is compacted | ingest stores original input in L0, extracts L1 facts, deduplicates them, and links entities; batch ingestion handles larger collections |
| Find and assemble relevant context | Large document sets cannot be reread every session, exact-keyword search misses paraphrases, and raw top-k results can overwhelm the prompt | Semantic + BM25 hybrid retrieval, RRF fusion, MMR, entity weighting, and five budgeted context slots through get_memory_context |
| Continue long-running work | A new session starts blank, and the agent does not know what remains unfinished | session_start builds a task-oriented bootstrap; its session_id supports compaction recovery; intents, summaries, and open topics carry work forward through session_end |
| Organize and maintain memory | A growing memory library becomes noisy, stale, or difficult to inspect | Session summaries, profiles, topic and information maps, entity profiles, domain lexicons, alias suggestions, contradiction candidates, and source-drift audits |
| Correct and forget safely | Wrong facts keep influencing later answers, and deleting one record can leave copies in summaries, profiles, and indexes | active / superseded / archived states, source tracing, cascade-safe forget_memory, preview-first forget_by_query, and tombstones against resurrection |
| Scope, share, and export memory | Memories become trapped inside one agent, leak between projects, or get overwritten by concurrent clients | Workspace-bound project libraries, controlled user scope, library_whoami, multi-host MCP access, layer-specific concurrent-save merging, and memory export |
| Give a companion a continuous life | A virtual companion starts every session as a stranger, and replaying every past conversation is expensive | One-command DSH onboarding, idempotent import of past sessions into the L0 archive, first-person diaries, and private-by-default visibility — recall stays on demand |
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:
ingest, per-library Chinese entity lexicons, and a lexical (BM25/FTS5) channel that handles Chinese bigrams.AGENTS.md and MEMORY.md — does not replace themAGENTS.md for rules. MEMORY.md for essentials. HippoMCP for deep, searchable memory.
AGENTS.md keeps stable instructions, workflows, and project rules.MEMORY.md keeps a small set of curated facts that should remain available without extra services.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.
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 <host name>
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 <workspace> 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.
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);uvusers get that pin frompyproject.tomlautomatically.
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 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 --fetchdownloads 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; setHIPPOCAMPUS_FETCH_URLSto 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
Or install directly from GitHub:
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 installalso 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
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:
| Claim | Pinned by | CI job |
|---|---|---|
| Cascade-safe deletion; tombstones stop resurrection | test_forget.py (test_cascade_cleanup) | regression |
| Superseded facts do not leak into recall | test_forget.py (test_restore_superseded), test_session_lifecycle_bcd.py (test_c1_supersede) | regression |
| Concurrent-save layer merge and backend contract | test_backend_contract.py | regression |
| Workspace binding; no silent cross-library leak | test_workspace_guide.py | regression |
| Session bootstrap, compaction recovery, id recycling | test_session_lifecycle_bcd.py | regression |
Dedup merge keeps ids; write echo leads with merged_into | test_dedup_merge.py, test_ingest_echo_contract.py | regression |
| Clean install and MCP handshake from a fresh venv | verify_install_e2e.py | install-e2e |
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.
| Command | Purpose |
|---|---|
hippo-mcp doctor | Health check for the installation and libraries |
hippo-mcp init --dsh <workspace> | DeepSeek Harness companion onboarding: bind a library, write the MCP patch entry, persona/discipline block, and a self-install guide (idempotent; no daemon needed) |
hippo-mcp import-dsh --workspace <path> | Import a workspace's past DSH session logs into its bound library (idempotent; requires a running memory service) |
hippo-mcp tree | Read-only library tree: markdown overview, or a single-file HTML viewer with --html --out; run inside a bound workspace it locates the library automatically |
hippo-mcp models / --fetch / --prune | Inspect, download, and reclaim embedding-model caches |
python scripts/reembed.py --all | Backfill vectors after switching the embedding model |
python scripts/import_md.py --dir <md dir> --project <name> | Bulk-import Markdown documentation into a library |
See docs/INTEGRATION.md
section 10 for model selection rules and the full switching procedure.
See the dedicated guides for deeper evaluation and operation:
| Document | Contents |
|---|---|
docs/SELECTION.md | Fit, non-goals, and verification checklist |
docs/INTEGRATION.md | Host setup, model selection, lifecycle, compaction recovery, and fallback |
docs/PRIVACY.md | Storage, network, user scope, and deletion |
docs/BENCHMARKS.md | Current measurement conditions and limits |
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.
MIT — see LICENSE.