mcp-memory-service
A self-hosted memory backend that gives AI agent pipelines such as LangGraph, CrewAI, AutoGen and Claude a shared, persistent memory with a causal knowledge graph, reachable over a REST API or MCP.
mcp-memory-service is a self-hosted memory backend for AI agent pipelines. It exposes one memory store over multiple transports, including a framework-agnostic REST API, MCP, OAuth and a CLI with a dashboard, so agents built with LangGraph, CrewAI, AutoGen or connected through Claude Desktop can store and retrieve context in a few milliseconds instead of starting each run from zero.
Agents share a knowledge graph with typed edges between memories, such as causes, fixes and contradicts relationships, rather than only a flat list of facts. An agent-ID header tags memories by the agent that created them for scoped retrieval, a conversation ID can bypass deduplication for incremental storage, and server-sent events notify other agents in real time when memories are stored or deleted. Autonomous consolidation compresses older memories so long-running context does not simply fill up.
Embeddings run locally through ONNX, so memory stays on the user's own infrastructure.