</>MCP Agents Market
MCP Server

LongMemory

by CaviraOSS4.5kTypeScriptUpdated 2026-08-31

Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc.

Claude CodeClaude DesktopGitHub CopilotCursorCodexGemini CLIClineContinue

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

Local-first SQLite storage with immutable content, provenance tracking, and temporal truth modeling
Multiple recall modes: strict (with contradiction and grounding checks), historical (point-in-time), associative (graph-based), and world-grounded
Project memory management for architecture decisions, tasks, conventions, failures, and code impact analysis
Governed assets including Chat Memory, Skills, LLM-Wiki, and CodeGraph with lifecycle and access control policies
MCP server with 13 high-level tools, readable resources, and agent workflow prompts via stdio and HTTP
Session porter to import conversations from Claude Code, Codex, Gemini CLI, Copilot Chat, and Cline
Web dashboard and VS Code extension for memory browsing, search, project context, and reinforcement
Multi-deployment support via Docker, CLI, npm library, or cloud platforms (Railway, Render, DigitalOcean, Heroku)

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 more

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.

Related searches