memory-mcp
memory-mcp
Ein eigenständiger MCP-Server für persistentes Agent-Memory — mit Stufen für Kurz- und Langzeitgedächtnis, messbarer Zuverlässigkeit und Lebenszyklus-Wartung — auf Basis von SQLite (FTS5 + sqlite-vec) mit lokalen MiniLM-Einbettungen. Keine externen Dienste, keine API-Schlüssel.
Anforderungen
Node.js >= 22
Das Paket enthält kompiliertes JavaScript, daher ist zur laufenden Laufzeit keine TypeScript-Toolchain erforderlich.
Related MCP server: MCP Vector Memory
Installation
npm install @jommar/memory-mcpZwei ausführbare Dateien werden mitgeliefert:
Befehl | Zweck |
| MCP-Server (standardmäßig stdio, HTTP über |
| Wartungs-CLI für den Datenspeicher ( |
Schnellstart
stdio (Standard)
Richte deinen MCP-Client auf die Server-Binärdatei aus:
{
"mcpServers": {
"memory": {
"command": "memory-mcp-server"
}
}
}Oder führe ihn direkt aus:
memory-mcp-serverMit npx wählst du die Server-Binärdatei explizit aus (installiert das Paket bei der ersten Verwendung):
npx -y -p @jommar/memory-mcp memory-mcp-serverHTTP (nur localhost)
MEMORY_TRANSPORT=http memory-mcp-serverDer HTTP-Endpunkt bindet standardmäßig an 127.0.0.1:3000 und stellt von demselben Endpunkt aus sowohl die moderne (2026-07-28) als auch die veraltete (2025-11-25) Protokollrevision bereit, sodass jeder MCP-Client eine Verbindung herstellen kann. Der Server ist zustandslos — eine Sitzungs-ID ist nicht erforderlich.
Erster Start
Der Datenspeicher wird automatisch unter ~/.memory-mcp/memory.db angelegt. Embeddings sind offline-first: Es wird kein Modell heruntergeladen, sofern du nicht ausdrücklich zustimmst.
# opt in to the one-time model download (about 23 MB, MiniLM-L6, q8 quantized)
MEMORY_EMBEDDING_OFFLINE=false memory-mcp-serverBis ein Modell verfügbar ist, funktionieren remember und recall weiterhin — sie fallen dann auf die reine Stichwortsuche zurück. Verwende die CLI reindex, um die Vektoren nachträglich zu berechnen, sobald das Modell verfügbar ist.
Konfiguration
Die gesamte Konfiguration erfolgt über MEMORY_*-Umgebungsvariablen (keine Konfigurationsdatei):
Variable | Standard | Zweck |
|
| SQLite-Datenbankdatei |
|
|
|
|
| HTTP-Bind-Adresse (nur localhost) |
|
| HTTP-Bind-Port |
|
|
|
|
| Timeout für einen Modell-Download-Versuch |
|
| Verzeichnis, in dem heruntergeladene Modelle zwischengespeichert werden |
Tools
Zehn Tools sind registriert: remember, recall, get, update, forget, list, confirm, contradict, promote, consolidate. Die vollständige Referenz mit Eingaben und Verhalten findest du in docs/tools.md.
remember akzeptiert ein interactive-Opt-in: Findet es fast doppelte Einträge, kann es den Client bitten, diese zu mergen oder anzulegen (MRTR). Für Clients ohne interaktive Teaming-Unterstützung greift ein sanfter Rückfallmechanismus.
Wartungs-CLI
memory-mcp export ./out # write every memory as a markdown frontmatter file
memory-mcp import ./staging # validate, then import (never overwrites existing keys)
memory-mcp reindex # rebuild FTS + vector indexes from stored content
memory-mcp stats # print store countsDokumentation
docs/tools.md — Tool-Referenz
docs/reliability.md — Zuverlässigkeitsmodell und Lebenszyklus-Regeln (die nur Berichte erzeugende Wartungs-Engine hinter
consolidate)
Lizenz
MIT — siehe LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents: add, search, update, and delete long-term memories.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI coding agents with persistent, long-term memory through local semantic search and SQLite storage. It enables agents to save and retrieve architectural decisions or project context across different conversation sessions without requiring cloud services.
- FlicenseNot gradedqualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
- AlicenseNot gradedqualityCmaintenanceProvides persistent long-term memory for LLMs via local SQLite storage and semantic search, enabling recall across sessions without external APIs.194MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jommar/memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server