# pomazanbohdan/memory-mcp-1file

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/pomazanbohdan/memory-mcp-1file  
**GitHub Stars:** 25  
**npm Downloads (last month):** 130  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pomazanbohdan-memory-mcp-1file

## Description
A self-contained Memory server with single-binary architecture (embedded DB & models, no dependencies). Provides persistent semantic and graph-based memory for AI agents.

## Tools
Capabilities this server exposes over MCP:

- **delete_memory** — Delete memory by ID.
- **delete_project** — Delete indexed project.
- **get_memory** — Get full memory by ID.
- **get_status** — Get system status and startup progress.
- **get_valid** — Get valid memories. Optional timestamp (ISO 8601) for point-in-time query.
- **how_to_use** — Show all available tools with usage examples and parameter combinations.
- **index_project** — Index codebase directory for code search.
- **invalidate** — Soft-delete memory, optionally linking replacement.
- **knowledge_graph** — Knowledge graph ops. Actions: create_entity(name, entity_type?, description?) | create_relation(from_entity, to_entity, relation_type, weight?) | get_related(entity_id, depth?, direction?) | detect_communities()
- **list_memories** — List memories (newest first).
- **project_info** — Project info. Actions: list() | status(project_id) | stats(project_id)
- **recall** — Best memory retrieval (query). Combines vector+BM25+graph via RRF fusion. Use as default.
- **recall_code** — Code retrieval (query, mode?: vector|hybrid). Default hybrid = vector+BM25+graph fusion. Filters: path_prefix?, language?, chunk_type?
- **reset_all_memory** — DANGER: Reset all database data (requires confirm=true).
- **search_memory** — Search memories (query, mode?: vector|bm25). Vector=semantic similarity, bm25=exact keyword match.
- **search_symbols** — Search code symbols by name.
- **store_memory** — Store a new memory.
- **symbol_graph** — Navigate symbol call graph. Actions: callers(symbol_id) | callees(symbol_id) | related(symbol_id, depth?, direction?)
- **update_memory** — Update memory fields.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "memory-mcp-1file": {
    "command": "npx",
    "args": ["-y","memory-mcp-1file"]
  }
}
```

## Documentation

## What pomazanbohdan/memory-mcp-1file does

The pomazanbohdan/memory-mcp-1file MCP server gives AI agents persistent local memory and code-understanding tools. It stores memories, supports updates and deletion, and can retrieve records by semantic similarity, exact keyword matching, or a combined ranking strategy. Memory records can also be invalidated without immediate physical deletion, optionally linking them to replacement records.

The server also indexes a codebase directory and exposes code retrieval, symbol search, and symbol-relationship navigation. Its knowledge graph tools create entities and relations, find related entities, and detect communities. Project tools report indexed projects, project status, and statistics.

This belongs in the 🧠 Knowledge & Memory category for agents that need information to survive context compaction or session restarts. The repository provides an AGENTS.md memory protocol that recommends startup searches, task restoration, and synchronized updates, but applying that protocol depends on the agent configuration.

## How it works

The binary uses embedded SurrealDB for stored data, FastEmbed for vector generation, and PetGraph for graph operations. Code indexing produces AST-based chunks and symbol relationships. Retrieval can combine vector, BM25, and graph results through Reciprocal Rank Fusion. The `recall` tool is intended as the default general memory query, while `search_memory` allows an explicit vector or BM25 mode.

The process communicates with MCP clients over stdio. It supports the newer stateless request lifecycle and the older initialize/initialized lifecycle. It does not advertise streamable HTTP, does not use MCP session state, and does not negotiate roots. A single process can contain multiple indexed projects when searches identify the relevant project explicitly.

## Setup and configuration

The pomazanbohdan/memory-mcp-1file MCP server can run as a precompiled binary through npx or bunx, or as the published Docker image. For Docker, mount a named volume at `/data` to preserve the database, embeddings, and cached model files. Mount the project at `/project:ro` when the agent needs to index code. The documented Docker example assigns 3 GB of memory and uses `--init` for clean process handling.

The embedding model is stored under `/data/models/` and is approximately 1.2 GB, so reusing the `/data` volume avoids downloading it again. Docker indexing receives an explicit path through `index_project`; the server does not rely on roots negotiation. Claude Desktop, Claude Code, Cursor, and command-line configurations are documented in the repository.

No external database, cloud service, API key, or Python installation is required according to the project documentation. The embedded model runs locally on the CPU.

## Tools and capabilities

- Store, retrieve, list, update, invalidate, and delete memories.
- Search memory semantically with vector mode or exactly with BM25.
- Combine vector, keyword, and graph signals through `recall`.
- Query valid memories at an optional ISO 8601 point in time.
- Index and remove projects, then inspect project status and statistics.
- Search indexed code with optional path, language, and chunk-type filters.
- Find symbols and navigate callers, callees, and related symbols.
- Create knowledge-graph entities and relations, inspect related entities, and detect communities.
- Check startup progress with `get_status`, view usage examples with `how_to_use`, or reset all data with the required confirmation flag.

## Limitations and notes

The server is stdio-only in the documented release, so it is intended for local process-based MCP configurations rather than a shared HTTP endpoint. Code indexing requires the server to be given access to the target directory, and Docker users should mount the workspace explicitly. `reset_all_memory` is destructive and requires `confirm=true`.

The memory behavior is not automatic merely because the tools are available. The README recommends instructing the agent to read AGENTS.md and follow the supplied startup and synchronization protocol. Without such instructions, an MCP client can still call the tools, but the agent may not consistently save or restore task context.

The project documentation also points readers to the separate `tenatarika/vex` repository, so this listing should be evaluated against the available tools and setup details rather than treated as a replacement for that project.

_Full upstream README: https://allmcps.com/mcp/pomazanbohdan-memory-mcp-1file/readme_

