SecurityRonin/alaya
A memory engine for conversational AI agents, inspired by neuroscience and Buddhist psychology
Platform-specific configuration:
{
"mcpServers": {
"alaya": {
"command": "npx",
"args": [
"-y",
"alaya"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<p align="center"> </p>
[](https://zenodo.org/badge/latestdoi/1167077192) [](https://opensource.org/licenses/MIT) [](https://www.rust-lang.org/) [](https://crates.io/crates/alaya) [](https://docs.rs/alaya) [](https://www.npmjs.com/package/alaya-mcp) [](https://modelcontextprotocol.io/) [](https://glama.ai/mcp/servers/SecurityRonin/alaya) [](https://github.com/SecurityRonin/alaya) [](https://github.com/sponsors/h4x0r) [](https://github.com/SecurityRonin/alaya/actions)
A memory engine for AI agents that remembers, forgets, and learns.
Alaya (Sanskrit: *alaya-vijnana*, "storehouse consciousness") is an embeddable Rust library. One SQLite file. No external services. Your agent stores conversations, retrieves what matters, and lets the rest fade. The graph reshapes through use, like biological memory.
let alaya = Alaya::open("memory.db")?;
alaya.episodes().store(&episode)?; // store
let results = alaya.knowledge().query(&query)?; // retrieve
alaya.lifecycle().consolidate(&provider)?; // distill knowledge
alaya.lifecycle().transform()?; // dedup, LTD, discover categories
alaya.lifecycle().forget()?; // decay what's stale
let cats = alaya.admiLoading reviews...