跳到正文
FunCoding

alaya-mcp

官方 MCP Registry 已收录

Local memory engine for AI agents with knowledge graphs, forgetting, and semantic recall

Star
18
版本
v0.4.7
许可证
MIT
最近提交
2026年7月16日

alaya-mcp

The only memory engine with neuroscience-grounded memory dynamics — Bjork dual-strength forgetting, retrieval-induced suppression, and Hebbian co-activation — in a zero-dependency embeddable Rust library.

Stores conversation episodes, consolidates knowledge through a cognitive lifecycle, and builds a personal knowledge graph — all in a local SQLite database.

Install

Claude Code

Add to ~/.claude/claude_code_config.json:

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

Claude Desktop

Add to your Claude Desktop MCP config:

{
  "mcpServers": {
    "alaya": {
      "command": "npx",
      "args": ["-y", "alaya-mcp"],
      "env": {
        "ALAYA_LLM_API_KEY": "sk-...",
        "ALAYA_LLM_API_URL": "https://api.openai.com/v1/chat/completions",
        "ALAYA_LLM_MODEL": "gpt-4o-mini"
      }
    }
  }
}

The ALAYA_LLM_* env vars are optional — they enable automatic knowledge extraction. Without them, the agent extracts knowledge from its own context.

MCP Tools

ToolDescription
rememberStore a conversation episode
recallSemantic search across memories
statusMemory system health and stats
knowledgeBrowse extracted knowledge
learnStore pre-extracted facts and relationships
categoriesView emergent category taxonomy
preferencesTrack crystallized user preferences
neighborsExplore the knowledge graph
lifecycleTrigger maintenance (strengthen, transform, forget)
configureSet embedding provider and other options

How It Works

  1. Remember — store conversation episodes as they happen
  2. Consolidate — extract facts, relationships, and concepts from episodes
  3. Strengthen — co-retrieved memories strengthen their connections (Hebbian LTP); retrieving memory A actively suppresses competing memories B and C (retrieval-induced forgetting)
  4. Categorize — emergent categories form automatically from your knowledge
  5. Forget — Bjork dual-strength decay separates storage strength (how well-encoded) from retrieval strength (how easily found); weak memories fade, strong ones persist
  6. Crystallize — implicit preferences emerge from accumulated impressions (vasana), no LLM required

All data stays on your machine in ~/.alaya/memory.db.

Why Alaya

ProblemFile-based memoryAlaya
Token wasteFull-context injection (~35K tokens/msg)Ranked retrieval — only top-k relevant memories
No structureEverything in one fileThree typed stores: episodes, knowledge, preferences
No forgettingFiles grow until manually curatedBjork dual-strength decay + retrieval-induced forgetting
No associationsFlat files, no linksHebbian co-retrieval graph (LTP/LTD)
Brittle preferencesAgent-authored summary, driftsImplicit preferences emerge from impressions (vasana)
LLM requiredCan't function without oneGraceful degradation: no embeddings → BM25-only

License

MIT

同类 MCP Server

官方

Memory

Knowledge graph-based persistent memory system

MOmodelcontextprotocol/servers91k近 7 天新增 182 个 star

Sui Knowledge Base (kapa.ai)

Semantic search across Sui documentation and knowledge sources, powered by kapa.ai

MYMystenLabs/sui7.8k近 7 天新增 7 个 star

Honcho

Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.

PLplastic-labs/honcho7.6k近 7 天新增 105 个 star

5ire

5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .

NAnanbingxyz/5ire5.4k近 7 天新增 6 个 star

精选

Zotero MCP

在智能体里搜索、阅读和引用 Zotero 文献库中的论文。

5454yyyu/zotero-mcp5.3k近 7 天新增 81 个 star

Pollinations

Access Pollinations models and API capabilities through agent tools.

POpollinations/pollinations5.2k近 7 天新增 42 个 star