About Ctxvault
Ctxvault is an MCP server published by Filippo-Venturini in the RAG category: local memory infrastructure for AI agents. Store knowledge and skills in isolated vaults you compose, control and query. Conduid read 18 tools from its source: confirm_episode, dispute_episodes, episode_history, invalidate_episode, list_docs, list_entities and 12 more. It is published to PyPI as ctxvault and runs with uvx.
The repository has 71 stars and 19 forks, is licensed MIT, and its last commit was on 23 Nov 2026. The latest release is v0.8.1 (12 Oct 2026): v0.8.1 A vault can now be asked what it is about. It follows v0.8.0 (8 Oct 2026), and the 5 most recent releases go back to v0.6.4 (27 May 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include chromadb, cli-tool, embeddings, fastapi, knowledge-base and langchain.
Install
uvx ctxvaultpip install ctxvaultgit clone https://github.com/Filippo-Venturini/ctxvaultTools (18)
confirm_episodeRecord that a statement already in the vault was asserted again. Use this when you hear something the vault already holds, instead of writing it a second time: the episode stays as it is and gains one attestation, so a fact heard once can be told from one heard many times.dispute_episodesRecord that two open statements cannot both hold, when you cannot tell which one is wrong. Neither is closed: both keep coming back from queries, each flagged with the other in disputed_with, so you can ask instead of assert. The dispute ends by itself when one side is invalidated or superseded. If you do know which one is wrong, use supersede_episode or invalidate_episode instead.episode_historyShow every version of a statement, oldest first, plus the confirmations, disputes and closes on that chain, each with any metadata stored on the event. A confirmation copied onto a revision is listed once, on the episode that first recorded it. Use this to explain why the vault believes something, or to see what an episode used to say before it was corrected.invalidate_episodeMark an episode as no longer true, without deleting it. Use this when something ends and nothing replaces it. If a corrected version exists instead, use supersede_episode so the two stay linked.list_docsList all indexed documents inside a specific vault. Use this to understand what knowledge is available before performing a search.list_entitiesList the entities an episodic vault knows about, with how many episodes mention each one. This is the vault's vocabulary: use it to find out what subjects exist before querying for them, to spot the name a person or thing is recorded under, or to see what has gone quiet. Unlike query_episodes it enumerates rather than ranks, so nothing is left out. By default only entities named by statements that still hold are listed; pass include_closed to see everything the vault ever recorded.list_skillsList all available skills inside a specific vault. Use this to understand what skills are available before trying to fetch one.list_vaultsList all available vaults. Use this before querying or writing to discover which vaults exist and choose the right one.querySearch for relevant information in a CtxVault vault using semantic similarity. Use this when the user asks a question that might be answered by their personal knowledge base or documents. Returns the most relevant text chunks with their source files.query_episodesRetrieve episodes from an episodic vault. By default only statements that still hold are returned. Filter by entity for 'everything about X', pass valid_at to ask what was true at a past moment, or known_at to ask what the vault had already learned by then. event_metadata_filters keeps episodes that have a confirm, dispute, close or reopen carrying those keys; with known_at, only events recorded by then match, including attestations inherited by a revision. Query text is optional and ranks results; without it the newest come first.read_skillRead one skill from a skill vault: its name, description and full instructions. Use this after list_skills, once you know which procedure fits the task, and follow the instructions it returns.reopen_episodeMake a closed episode current again, without erasing the close. Use this to undo an invalidate, or to bring back a superseded statement after its successor has itself been closed. A revised original cannot be reopened: attestations and disputes already moved to the revision, so reopen or close that instead. An as-of query between the close and the reopen still sees the episode as closed. If a successor is still current, close it first; this tool will not close it for you.revise_episodeRestate an episode more precisely, when the world did not change but you can now say it better ('lives in Padova' -> 'lives in Padova, in the Arcella'). The revision opens where the original did and inherits its attestations and open disputes; the original stays in the history but is no longer what the vault states. Use supersede_episode instead when the world changed.supersede_episodeReplace an episode with a corrected or updated version. The old statement is closed exactly where the new one begins and the two are linked, so the history of what changed stays readable. Entities and salience carry over from the old episode unless you pass new ones. Use this whenever new information contradicts something already recorded.warmup_statusCheck if the embedding model has finished initializing. Use this to verify warmup status before attempting queries or writes.write_docSave new information or agent-generated content to a semantic vault for future retrieval. Use this only with semantic vaults, to persist important context, summaries, or notes that should be remembered across sessions. Supports .txt, .md, .docx, .html, and .csv formats.write_episodeRecord something that happened or something the user stated, in an episodic vault. Use this for facts with a lifetime — situations, preferences, relationships, plans — rather than for documents. Give the entities it is about so it can be looked up later, and a salience between 0 and 1 for how much it matters.write_skillCreate and store a new skill in a skill vault. Use this to persist procedural knowledge, instructions, or how-to guides that agents can retrieve and execute later. The skill will be indexed by name and description for fast lookup. Use this only with skill vaults.Security checks
- ✓README presentThe repository's README runs to about 5.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 36 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 5.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README