Cozo Memory logo

Cozo Memory

Local MCP memory backed by CozoDB, combining vector, full-text, graph, and time-aware retrieval on one machine.

Install Cozo Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cozo-memory": {
      "command": "npx",
      "args": [
        "-y",
        "cozo-memory"
      ],
      "env": {
        "EMBEDDING_MODEL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y cozo-memory

ntimes/linux-x64/native/libonnxruntime_providers_cuda.so to /tmp/allmcps-pre/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_cuda.so npm error Killed npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-18T16_11_11_435Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The cozo-memory MCP server stores structured agent memory in a local CozoDB database and exposes tools for writing, querying, graph analysis, maintenance, and user preferences. It combines semantic embeddings, full-text search, graph signals, and time-aware records through one embedded engine. Core CRUD, search, and graph operations work without an LLM; optional Ollama support adds cleanup, reflection, summarization, compaction, and agentic retrieval. Reach for it when an agent needs persistent local memory with relationships, hybrid retrieval, or historical queries.

Use cases

  • Store observations across agent conversations
  • Search memory with semantic, keyword, and graph signals
  • Traverse relationships between entities and facts
  • Inspect memory at an earlier point in time
  • Maintain user preferences locally

Key features

  • Hybrid vector, full-text, and graph retrieval
  • Embedded CozoDB storage
  • Time-aware queries with validity history
  • Graph analysis and multi-hop traversal
  • Optional Ollama-based cleanup and summarization
  • Local ONNX/Transformers embeddings

Tools5

What Cozo Memory lets your agent do. Expand a tool for its parameters.

Self-reported~35 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · cozo-memory (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads206Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed5Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Cozo Memory works

What the cozo-memory MCP server does

The cozo-memory MCP server gives MCP-compatible agents a local memory layer built on CozoDB. It is designed to retain information across conversations rather than treating each interaction as isolated context. CozoDB provides relational storage, graph traversal, vector search, and full-text search in one embedded database file.

The system supports hybrid retrieval using semantic, keyword, and graph signals. It also stores validity information so applications can inspect memory as it existed at an earlier point in time. Graph-oriented functions support relationship exploration, multi-hop reasoning, and analysis such as PageRank. The project also describes hierarchical memory levels and community summaries for organizing larger collections of observations.

How it works

The cozo-memory MCP server runs locally as a Node.js process and communicates with an MCP client over its standard server interface. CozoDB acts as the single persistence and query layer instead of combining separate vector, graph, and relational services. Embeddings are generated locally with ONNX and Transformers models, and processing occurs on the CPU.

Retrieval can combine HNSW vector search, full-text search, and graph results through reciprocal rank fusion. An agentic retrieval mode can classify query intent and select among vector, graph, or community-oriented strategies, but that mode depends on a local LLM. Time-aware records use CozoDB validity data to preserve change history and support historical queries.

Setup and configuration

Install the package globally with npm install -g cozo-memory, or run it without a global installation using npx cozo-memory. Building from source requires cloning the repository, running npm install, then npm run build and npm run start. Node.js 20 or newer is recommended.

On first launch, the default embedding model may download approximately 600 MB and the default configuration needs about 1.7 GB of RAM. Set EMBEDDING_MODEL=Xenova/all-MiniLM-L6-v2 for a lower-memory option, listed at roughly 400 MB of RAM. Xenova/bge-small-en-v1.5 is another supported option.

Ollama is optional. Install it and pull a model such as demyagent-4b-i1:Q6_K when you need LLM-assisted cleanup, reflection, community summarization, compaction, or agentic search. Without Ollama, core storage, search, and graph functions remain available; affected advanced actions either fall back where possible or report an error.

Tools and capabilities

The MCP tool groups expose these operations:

  • mutate_memory for write operations.
  • query_memory for read and retrieval operations.
  • analyze_graph for graph analysis.
  • manage_system for maintenance tasks.
  • edit_user_profile for user preference updates.

Together, these tools cover persistent observations, hybrid retrieval, graph exploration, profile data, maintenance, and historical inspection. The cozo-memory MCP server also supports contradiction handling, LLM-backed reflection, hierarchical compression, and community summarization when the relevant features and local model services are available.

Limitations and notes

Embedding models are downloaded on demand and can require substantial memory, especially the default Xenova/bge-m3 configuration. Embeddings run on the CPU according to the setup notes. Ollama-dependent actions are not part of the server’s offline core and require a separately installed local service.

Data is intended to remain on the local machine, with CozoDB and the embedding model running locally.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cozo Memory

cozo-memory is an MCP server that connects AI agents to a local CozoDB memory store. Its main tools write and query memory, analyze graphs, manage system maintenance, and edit user preferences. It supports hybrid vector, full-text, and graph retrieval, with optional Ollama features for cleanup, reflection, and summarization.

Install it with `npm install -g cozo-memory` or run it directly with `npx cozo-memory`. From source, clone the repository, run `npm install`, then build with `npm run build` and start with `npm run start`. Node.js 20 or newer is recommended.

No, Ollama is optional. Core CRUD, search, and graph operations work without it. Ollama is needed for actions such as cleanup, reflection, community summarization, compaction, and agentic search; those actions may fall back or return an error when Ollama is unavailable.

The default `Xenova/bge-m3` setup needs about 1.7 GB of RAM. Set `EMBEDDING_MODEL` to choose a model.

Since the package runs as an MCP server, Cursor compatibility should be checked against the client’s current MCP and standard-process configuration support rather than assumed from the README.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCozo Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cozo-memory?style=directory)](https://allmcps.com/mcp/cozo-memory)
HTML Embed
<a href="https://allmcps.com/mcp/cozo-memory"><img src="https://allmcps.com/api/badge/cozo-memory?style=directory" alt="Cozo Memory on AllMCPs" /></a>