MAGI
Multi-Agent Graph Intelligence
Memory that persists.
Knowledge that grows.
The open-source persistent memory layer for AI agents. Git-backed, privacy-first, zero dependencies.
Everything your agents need to remember
A complete memory infrastructure built for production AI systems.
Git-Backed Versioning
Every memory is version controlled. Diff, rollback, branch. Your AI's knowledge base has a full audit trail.
Zero Dependencies
SQLite + ONNX embeddings. No API keys. No cloud. Runs entirely on your hardware.
Pluggable Storage
SQLite, PostgreSQL, MySQL, SQL Server, Turso. Plug into your existing database infrastructure.
Blazing Fast
Async write pipeline: <10ms client response. Caching layer: <1ms cached searches. 8+ writes/sec throughput.
Knowledge Graphs
Memories auto-link with typed relationships. See how your agent's knowledge connects and evolves.
Multi-Protocol
MCP, gRPC, REST, Web UI. Works with Claude, GPT, Codex, or any agent framework.
How it works
A clean architecture with async writes, hybrid search, and pluggable backends.
How MAGI compares
The most complete memory layer for AI agents.
| Feature | MAGI | Mem0 | Letta | Zep |
|---|---|---|---|---|
| Git versioning | ✓ | — | — | — |
| Local / offline | ✓ | — | ✓ | — |
| Knowledge graph | ✓ | — | — | ✓ |
| MCP support | ✓ | — | — | — |
| gRPC | ✓ | — | — | — |
| Auto-classify | ✓ | — | — | — |
| Contradiction detection | ✓ | — | — | — |
| Pluggable SQL backends | ✓ | — | ✓ | — |
| Open source | MIT | Apache | Apache | Apache |
Get started
Up and running in under a minute.
Install
curl -sSL https://raw.githubusercontent.com/j33pguy/magi/main/install.sh | bash
docker run -p 8080:8080 -v magi-data:/data ghcr.io/j33pguy/magi
git clone https://github.com/j33pguy/magi && cd magi && go build ./cmd/magi
Start the server
magi serve
Store a memory
curl -X POST :8080/memories
-d '{"content": "..."}' Search & recall
curl :8080/search
?q=user+preferences
Use with Claude via MCP
Add MAGI as an MCP server in your Claude config:
{
"mcpServers": {
"magi": {
"command": "magi",
"args": ["mcp"]
}
}
}