Alaya logo

Alaya

by SecurityRonin

Adds local SQLite memory with ranked recall, knowledge extraction, preference tracking, graph navigation, and lifecycle maintenance for MCP agents.

Install Alaya

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": {
    "securityronin-alaya": {
      "command": "npx",
      "args": [
        "-y",
        "alaya-mcp"
      ],
      "env": {
        "ALAYA_DB": "YOUR_VALUE_HERE",
        "ALAYA_LLM_API_KEY": "YOUR_VALUE_HERE",
        "ALAYA_LLM_API_URL": "YOUR_VALUE_HERE",
        "ALAYA_LLM_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.

Claude Code command
claude mcp add --env ALAYA_DB=YOUR_VALUE_HERE --env ALAYA_LLM_API_KEY=YOUR_VALUE_HERE --env ALAYA_LLM_API_URL=YOUR_VALUE_HERE --env ALAYA_LLM_MODEL=YOUR_VALUE_HERE --transport stdio securityronin-alaya -- npx -y alaya-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y alaya-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

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

SecurityRonin/alaya MCP server gives compatible agents a local memory system backed by SQLite. It stores conversation episodes, searches them with hybrid retrieval, tracks semantic knowledge and preferences, and exposes graph relationships through MCP tools. Optional lifecycle operations consolidate, transform, decay, deduplicate, and purge stored memories; an OpenAI-compatible model can automate consolidation. Reach for it when an agent needs persistent, searchable memory without an external database service.

Use cases

  • Store conversation history across agent sessions
  • Recall relevant user preferences and prior decisions
  • Extract durable facts from accumulated episodes
  • Maintain and prune a local memory database
  • Import Claude memory and conversation data

Key features

  • Local SQLite memory storage
  • Hybrid ranked retrieval
  • Episode, knowledge, and preference stores
  • Memory consolidation and decay
  • Emergent categories and graph navigation
  • Optional OpenAI-compatible LLM consolidation

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.

26/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · alaya-mcp (npm)

Adoption & maintenance

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

GitHub stars20Stargazers on the source repository.
npm downloads336Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Alaya works

What SecurityRonin/alaya MCP server does

SecurityRonin/alaya MCP server adds persistent memory to MCP-compatible agents through a local SQLite database. It separates raw conversation episodes from distilled knowledge and learned preferences, allowing an agent to save interactions and retrieve relevant information later instead of injecting an ever-growing text file into every prompt.

The server also maintains relationships between memory nodes. Repeated retrieval can shape those relationships, while lifecycle operations can reduce duplication, weaken stale or competing memories, and identify emergent categories. Data remains in one SQLite file, with no external service required for the basic setup.

How it works

An agent records messages with remember, searches stored material with recall, and can submit extracted facts through learn. Retrieval combines search methods and can apply category information. The status, knowledge, and preferences tools expose the current state of the memory store, including episode counts, distilled facts, categories, graph links, and preference impressions.

Memory maintenance is explicit through the maintain tool. The underlying lifecycle can consolidate episodes into knowledge, transform or deduplicate records, and forget stale material. Graph-oriented tools expose neighboring nodes and category membership, supporting indirect associations rather than only direct text matches.

LLM assistance is optional. Without an LLM configuration, the server can accumulate episodes and operate in prompt mode, reminding the agent to call learn after 10 episodes. With the llm feature and the relevant environment variables, it can use an OpenAI-compatible chat-completions endpoint for automatic consolidation. Retrieval can also degrade to BM25 when embeddings are unavailable.

Setup and configuration

SecurityRonin/alaya MCP server can be installed through npm without a Rust toolchain:

config.json
{
  "mcpServers": {
    "alaya": {
      "command": "npx",
      "args": ["-y", "alaya-mcp"]
    }
  }
}

The default database path is ~/.alaya/memory.db. Set ALAYA_DB to use another SQLite file. Optional automatic consolidation uses ALAYA_LLM_API_KEY, ALAYA_LLM_API_URL, and ALAYA_LLM_MODEL; the documented defaults target an OpenAI-compatible endpoint and gpt-4o-mini.

Building from source requires Rust and the MCP feature.

Tools and capabilities

The MCP interface provides tools for:

  • Storing and recalling conversation episodes
  • Teaching extracted knowledge and reading distilled facts
  • Inspecting memory statistics and learned preferences
  • Running cleanup, decay, and deduplication
  • Deleting data by session, age, or complete database scope
  • Listing emergent categories and checking node membership
  • Traversing graph neighbors through spreading activation
  • Importing data from claude-mem databases and Claude Code JSONL history

Limitations and notes

SecurityRonin/alaya MCP server is local and SQLite-based, so the documented deployment does not provide a hosted or shared memory service. Automatic consolidation depends on the optional LLM feature and compatible API configuration; without those settings, the agent must supply extracted knowledge or follow the prompt-mode reminder.

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 Alaya

SecurityRonin/alaya is an MCP server that connects AI agents to a local SQLite memory engine. Its main tools store and recall episodes, submit extracted knowledge, inspect preferences and status, maintain or purge memories, navigate graph neighbors and categories, and import Claude-related memory or conversation data.

Install it with `npx -y alaya-mcp` in an MCP client configuration. Add an `alaya` server entry whose command is `npx` and whose argument is `-y alaya-mcp`; no Rust toolchain is needed for the npm installation.

Yes, Cursor is listed as a supported MCP client. Configure the server with the npm command `npx -y alaya-mcp`, or point the client at a locally built `alaya-mcp` executable.

It stores memory in `~/.alaya/memory.db` by default. Set the `ALAYA_DB` environment variable to change the SQLite database path; the basic server does not require an external service.

Set `ALAYA_LLM_API_KEY` and use the `llm` feature, with optional `ALAYA_LLM_API_URL` and `ALAYA_LLM_MODEL` values. Without that configuration, the server remains usable in prompt mode and reminds the agent to call `learn` after 10 episodes.

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 PreviewAlaya AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/securityronin-alaya?style=directory)](https://allmcps.com/mcp/securityronin-alaya)
HTML Embed
<a href="https://allmcps.com/mcp/securityronin-alaya"><img src="https://allmcps.com/api/badge/securityronin-alaya?style=directory" alt="Alaya on AllMCPs" /></a>