
Alaya Mcp
Give Claude Code or Cursor a local, persistent memory layer with graphs and semantic recall so long projects do not start from zero every session.
Overview
Alaya MCP is a MCP server for the Build phase that provides local SQLite memory, knowledge graphs, forgetting, and semantic recall for AI coding agents.
What is this MCP server?
- Local SQLite-backed memory store with configurable ALAYA_DB path
- Knowledge-graph style links plus semantic recall across sessions
- Forgetting and consolidation behaviors for long-running agent work
- Optional OpenAI-compatible LLM (ALAYA_LLM_API_KEY) for auto-consolidation
- stdio npm package alaya-mcp v0.4.7 for Claude Desktop–style MCP clients
- Server version 0.4.7
- stdio transport via npm identifier alaya-mcp
- Four documented environment variables (one secret LLM key)
Community signal: 12 GitHub stars.
What problem does it solve?
Coding agents forget prior decisions and project facts every new session, forcing you to re-explain architecture and repeat mistakes.
Who is it for?
Indie builders running long Claude Code or Cursor projects who want private, on-disk agent memory without building a custom vector stack.
Skip if: Teams that need multi-user shared memory, compliance-reviewed cloud KBs only, or memory with zero local setup.
What do I get? / Deliverables
After you register alaya-mcp, your agent can store and retrieve structured long-term memory locally with optional LLM consolidation.
- Registered stdio MCP server the agent can call for memory read/write and recall
- Local SQLite database of consolidated agent knowledge
- Optional LLM-driven extraction pipeline when ALAYA_LLM_API_KEY is set
Recommended MCP Servers
Journey fit
Agent memory is installed while you are building and iterating with coding agents, not during early market research. Fits agent-tooling because it extends the agent runtime with storage, recall, and optional LLM-powered consolidation—not a one-off API hook for app features.
How it compares
Local agent memory MCP server, not a hosted RAG product or a single Cursor rule file.
Common Questions / FAQ
Who is alaya-mcp for?
Solo and indie developers who use MCP-enabled agents and want persistent, local recall across many coding sessions.
When should I use alaya-mcp?
Use it during active build and operate work when the same agent must remember specs, entities, and past fixes for weeks.
How do I add alaya-mcp to my agent?
Install the npm package alaya-mcp, set ALAYA_DB (and optionally ALAYA_LLM_API_KEY, ALAYA_LLM_API_URL, ALAYA_LLM_MODEL), and add a stdio MCP server entry in Claude Code, Cursor, or your client config.