LongMemory
Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc.
LongMemory is an MCP server that provides durable, temporal memory storage for AI agents and LLM applications. It offers local-first SQLite persistence with immutable content tracking, temporal truth management, and governed project memory including skills, chat history, and code graphs. The server exposes memory operations through MCP tools, HTTP API, CLI, and integrates with Claude Desktop, GitHub Copilot, Cursor, and other agent platforms. Unlike simple vector databases, it models temporal validity, provenance, permissions, and evidence selection to give agents explainable, context-aware recall.
Key Features
Use Cases
- 01Providing persistent memory across sessions for Claude Desktop, Cursor, or GitHub Copilot agents
- 02Tracking temporal changes in project architecture, decisions, and technical context over time
- 03Importing and preserving coding assistant conversation history as searchable, governed chat memory
- 04Building explainable AI workflows that require evidence selection, contradiction detection, and grounded recall
- 05Managing project-specific knowledge bases with role-based access, lifecycle policies, and multilingual support
- 06Enabling agents to recall past decisions, task outcomes, and code changes with temporal context
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
LongMemory — FAQ
What is LongMemory MCP server?+
LongMemory is an MCP server that provides durable, temporal memory storage for AI agents with local SQLite persistence, project memory, and governed recall modes. It exposes 13 MCP tools for ingestion, recall, project context, and session management.
How do I install LongMemory for Claude Desktop?+
Install globally via npm (`npm install -g longmemory`), then add the MCP server configuration to Claude Desktop's config file pointing to `longmemory mcp` with your desired database path and project parameters.
Which AI clients work with LongMemory?+
LongMemory supports Claude Code, Claude Desktop, GitHub Copilot, Cursor, Codex, Gemini CLI, Cline, Continue, LibreChat, Dify, Flowise, and frameworks like CrewAI, AutoGen, LangGraph, and PydanticAI via MCP integration.
Do I need API keys to use LongMemory?+
LongMemory works locally without API keys for core memory functions. You only need API keys if using external embedding providers (OpenAI, Gemini, AWS Bedrock) or securing the HTTP API with LONGMEMORY_API_KEY for remote deployments.
Is LongMemory free and open source?+
Yes, LongMemory is licensed under Apache License 2.0 and fully open source. The npm package, CLI, MCP server, dashboard, and VS Code extension are all freely available.
How do I run LongMemory as an MCP server?+
Run `longmemory mcp --db ./project.db --project current` for local stdio MCP, or `longmemory serve --mcp-http` with LONGMEMORY_API_KEY set for authenticated Streamable HTTP MCP accessible over the network.
How do I install LongMemory?+
Open the source repository on GitHub and follow its README. LongMemory is a mcp server — MCP Agents Market links you directly to the official repo.
Is LongMemory free?+
LongMemory is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.