# memvault

> Enable local, long-term agent memory using MemVault and MCP for persistent context across chat sessions.

memvault is a free AI agent skill on Agensi by Swapnil Mitra, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Swapnil Mitra](https://www.agensi.io/creators/swapnil-mitra)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-20
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/memvault
- Tags: llm-ops, mcp-server, local-first, context-management, rust

## About this skill

LLMs lose context between sessions, forcing you to repeat preferences, architectural decisions, and project paths every time you open a new chat. This skill solves the "goldfish memory" problem by integrating MemVault, a local-first memory engine that uses the Model Context Protocol (MCP) to persist knowledge across conversations without relying on cloud storage.

### What it does
- **Persistent storage** saves specific facts, preferences, and decisions to a local database that survives session restarts.
- **Context injection** retrieves relevant historical data via keyword or vector search and feeds it directly into the current prompt.
- **Fact versioning** updates existing memories by superseding old facts with new ones while maintaining a verifiable history.
- **Verified recall** uses a hash-chained ledger to explain exactly why a specific fact was retrieved for a given query.
- **Privacy control** runs entirely on your local machine with no network access unless you explicitly configure an external embedding provider.

### How it works
1. **Installation** downloads the MemVault binary and generates the necessary JSON configuration for your MCP client.
2. **Namespace creation** segments memories by project or repository name to ensure relevant retrieval without cross-talk.
3. **Write loop** captures stand-alone facts during the conversation, marking critical architectural rules as pinned.
4. **Search loop** queries the local vault at the start of new tasks to pull in previously learned context.

### Frameworks & tools
This skill uses the Model Context Protocol (MCP) and interfaces with the MemVault Rust-based binary. It integrates with any MCP-compliant client such as Claude Code or Cursor and supports OpenAI-compatible embedding endpoints like Ollama for semantic search.

### Why this beats prompting it yourself
Writing to a text file is messy and lacks ranking. This skill provides a structured API for the agent to manage its own memory, ensuring the most relevant facts are prioritized within the token budget while maintaining a permanent, auditable record of why information was recalled.

### Use cases
- **Store project conventions** like specific linting rules or deployment paths that are not in the README.
- **Remember user preferences** regarding coding style, documentation depth, or preferred libraries across different sessions.
- **Track architectural decisions** and the reasoning behind them to prevent re-litigating the same technical debt later.
- **Maintain stateful workflows** by recording the progress of long-running tasks that span multiple days or chat threads.

### Known limitations
Requires manual binary installation and client restart for initial setup. Semantic search requires an external embedding provider like Ollama; otherwise, retrieval defaults to keyword-only BM25.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the memvault skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does MemVault solve the 'goldfish memory' problem in AI chat sessions?

MemVault creates a local, persistent database that stores architectural decisions, project rules, and user preferences, allowing your AI agent to recall them in future sessions without you having to re-explain the context.

### Which AI agents and IDEs are compatible with this skill?

The skill is compatible with any platform that supports the Model Context Protocol (MCP), including popular tools like Claude Code and Cursor.

### Does my project data or conversation history ever leave my local machine?

Yes, MemVault is local-first; all memories are stored on your machine, and it only requires network access if you choose to connect an external embedding provider like Ollama for semantic search.

### What is the installation process for integrating this into my workflow?

Setup involves downloading the MemVault binary and adding the generated JSON configuration to your MCP-compliant client to enable the memory interface.

### How does this differ from simply keeping a 'notes.txt' file for my agent to read?

Unlike a basic text file, this skill provides a structured API that uses BM25 or vector search to prioritize the most relevant facts within your token budget, ensuring the agent isn't overwhelmed by irrelevant data.

### How does the skill handle conflicting information or updates to previous memories?

MemVault uses fact versioning and a hash-chained ledger to update old information with new context while maintaining a verifiable history of why specific facts were recalled.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
