# Cross-Agent Memory

> Cross-Agent Memory is an open-source MCP server for knowledge and memory. Local shared memory service that lets AI coding agents search one indexed store over MCP. It is available on macOS, Linux, API, CLI and self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, API, CLI, self-hosted
- **Repository:** https://github.com/indamices/cross-agent-memory
- **MCP Registry name:** io.github.indamices/cross-agent-memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-18

## About

The README says the service ingests session history from tools like Claude Code, OpenCode and ZCode, plus any project folder you register, and indexes it with local Ollama embeddings into a single SQLite file. Agents reach that store through an HTTP API on port 5370 or through an MCP stdio server that exposes memory_search, memory_write and memory_stats.

Search runs a staged pipeline: a 1-bit Hamming prefilter, sqlite-vec KNN, then re-ranking with time decay and diversity. The project also covers operations such as health endpoints, backups, restore and tier maintenance scripts, and it binds to localhost by default.

It suits developers who switch between several AI coding assistants and want decisions and project context to carry over. The README states macOS and Linux are supported and Windows is not yet, and that multi-user or server mode is only on the roadmap.

## Features

- **Cross-tool session ingestion:** Connectors pull history from Claude Code, OpenCode and ZCode stores, and a file watcher covers project docs folders.
- **Local embeddings and storage:** Embeddings come from a local Ollama model and are stored in a single SQLite file with a sqlite-vec index.
- **MCP memory tools:** Exposes memory_search, memory_write and memory_stats to any MCP-capable client over stdio.
- **HTTP search API:** Offers search, memory capture, feedback and project registration endpoints on a local port.
- **Optional bearer-token auth:** Environment variables can require a bearer token for writes and, optionally, for reads.
- **Backups and health checks:** Includes backup and restore endpoints plus a health endpoint that reports degraded reasons.

## Good for

- Share decisions made in one coding agent with another agent without re-pasting context
- Search past Claude Code or OpenCode sessions for why an architecture choice was made
- Index a project's docs and notes so any MCP-enabled assistant can recall them
- Keep agent memory entirely on a local machine for privacy-sensitive work

## Tools

- `memory_search`: Semantic search across all indexed sessions and projects.
- `memory_write`: Store a decision, insight or discovery for future sessions.
- `memory_stats`: List collections and their sizes.

## FAQ

### Does any data leave my machine?

The README says the service runs locally with no cloud component and that embeddings are computed on the machine through Ollama.

### Which operating systems are supported?

The README lists macOS or Linux, and states Windows is not supported yet because the connectors use POSIX file locks.

### Which MCP tools does it expose?

The README lists memory_search, memory_write and memory_stats.

### What license is it under?

The README and the registry entry both state MIT.

### Is Cross-Agent Memory free?

Yes. Cross-Agent Memory is open source, so you can use and self-host it for free.

### What are the best alternatives to Cross-Agent Memory?

The closest alternatives to Cross-Agent Memory are MCP Memory, Agent Memory MCP, mcp-memory-rs, Kognite and Compound Memory.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [MCP Memory](https://ai-powered.com/mcp/mcp-memory): MCP Memory is an open-source MCP server for knowledge and memory.
- [Agent Memory MCP](https://ai-powered.com/mcp/agent-memory-mcp): Agent Memory MCP is an open-source MCP server for knowledge and memory.
- [mcp-memory-rs](https://ai-powered.com/mcp/mcp-memory-rs): mcp-memory-rs is an open-source MCP server for knowledge and memory.
- [Kognite](https://ai-powered.com/mcp/kognite): Kognite is a freemium MCP server for knowledge and memory.
- [Compound Memory](https://ai-powered.com/mcp/compound-memory): Compound Memory is an open-source MCP server for knowledge and memory.
- [Total Agent Memory](https://ai-powered.com/mcp/total-agent-memory): Total Agent Memory is an open-source MCP server for knowledge and memory.
- [Neuromcp](https://ai-powered.com/mcp/neuromcp): Neuromcp is an open-source MCP server for knowledge and memory.
- [Memro](https://ai-powered.com/mcp/memro): Memro is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/cross-agent-memory
