mcp-memory-server
MCP Memory Server
Persistenter Agentenspeicher für Blockbrain (oder jeden MCP-Client) über Markdown-Dateien + SQLite-FTS5-Volltextsuche.
Warum?
Blockbrain-Agenten persistieren keine Erinnerungen zwischen Sitzungen. Jede Konversation beginnt bei null. Dieser MCP-Server behebt das — der Agent kann speichern, was er gelernt hat, und es beim nächsten Mal abrufen.
So funktioniert es:
Der Agent löst ein Problem → ruft
memory_savemit der Lösung aufDer Agent startet eine neue Aufgabe → ruft
memory_recallauf, um nach ähnlichen früheren Problemen zu suchenAlle Erinnerungen werden als lesbare Markdown-Dateien gespeichert + in SQLite für schnelle Suche indiziert
Related MCP server: universal-memory-mcp
Tools
Tool | Beschreibung |
| Speichert einen Erinnerungseintrag (Thema, Titel, Inhalt) |
| Durchsucht Erinnerungen nach Stichwort/Thema (FTS5) |
| Listet alle gespeicherten Themen mit Eintragszahlen auf |
| Entfernt einen Erinnerungseintrag anhand der ID |
Schnellstart (Docker)
# 1. Clone
git clone https://github.com/lanlibbi/mcp-memory-server.git
cd mcp-memory-server
# 2. Configure
cp .env.example .env
# Edit .env — set MEMORY_API_KEY!
# Generate a key: openssl rand -hex 32
# 3. Run
docker compose up -d
# 4. Verify
curl http://localhost:8080/healthBlockbrain-Integration
Server öffentlich bereitstellen — Blockbrain benötigt eine HTTPS-URL:
Option A: Cloudflare Tunnel (
cloudflared tunnel --url http://localhost:8080)Option B: Ein beliebiger Reverse-Proxy (nginx, Caddy, Traefik) mit TLS
Option C: ngrok zum Testen (
ngrok http 8080)
In Blockbrain registrieren:
Gehe zu Admin → Agents → MCP Servers
Klicke auf "+ Add MCP Server"
Fülle aus:
Name: Memory Server
Server URL:
https://<your-public-url>/sseTransport: SSE
Authentifizierung: API Key
API Key: (der Wert aus deiner .env)
Speichern & aktivieren
Einem Agenten zuweisen und füge Anweisungen zum System-Prompt des Agenten hinzu:
Before starting a new task, call memory_recall with keywords related to the task. After completing a task or learning something new, call memory_save with: - topic: a category for the task (e.g. "contract-review", "supplier-issue") - title: a short descriptive title - content: what was the problem, what was the solution, what was learned
Konfiguration
Die gesamte Konfiguration erfolgt über Umgebungsvariablen:
Variable | Standard | Beschreibung |
| (leer = keine Authentifizierung) | API-Schlüssel für den X-API-Key-Header |
|
| Wo Markdown-Dateien gespeichert werden |
|
| HTTP-Port |
|
| Maximale Suchergebnisse pro Abfrage |
|
| debug, info, warning, error |
Speicherung
Erinnerungen werden als Markdown-Dateien mit YAML-Frontmatter gespeichert:
/data/memories/
├── contract-review/
│ ├── nda-standard-clauses.md
│ └── liability-clause-fix.md
├── supplier-issue/
│ └── delayed-delivery-workaround.md
└── memory.db ← SQLite FTS5 indexJede Datei sieht wie folgt aus:
---
id: a1b2c3d4e5f67890
topic: contract-review
title: NDA Standard Clauses
created_at: 2026-08-20T15:00:00Z
updated_at: 2026-08-20T15:00:00Z
---
# NDA Standard Clauses
The standard NDA should always include...Du kannst Erinnerungen direkt durchsuchen, bearbeiten oder löschen — es sind einfach Markdown-Dateien. Der SQLite-Index bleibt automatisch synchron.
Lokale Entwicklung (ohne Docker)
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
export MEMORY_API_KEY=test-key
export MEMORY_DATA_DIR=./data/memories
python -m uvicorn src.server:app --host 0.0.0.0 --port 8080API-Endpunkte
Endpunkt | Methode | Beschreibung |
| GET | Health-Check (keine Authentifizierung erforderlich) |
| GET | SSE-Endpunkt für die MCP-Client-Verbindung |
| POST | MCP-Nachrichten-Endpunkt (wird vom SSE-Transport verwendet) |
Tech-Stack
Python 3.12 + MCP SDK
Starlette + Uvicorn für HTTP/SSE
SQLite FTS5 für Volltextsuche (keine externen Abhängigkeiten)
Markdown für menschenlesbare Speicherung
Lizenz
MIT
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 Servers
- AlicenseNot gradedqualityDmaintenanceMCP server providing persistent memory management for AI agents using SQLite and FTS5, enabling storage, full-text search, and recall of memories with namespace isolation.1MIT
- AlicenseAqualityCmaintenancePersistent memory MCP server for AI agents, using SQLite with hybrid keyword and semantic search for long-term memory storage.5Do What The F*ck You Want To Public
- AlicenseNot gradedqualityBmaintenancePersistent memory MCP server that stores and retrieves memories in Markdown files, enabling shared context across multiple AI agents with hybrid search and deduplication.MIT
- AlicenseAqualityBmaintenanceMCP server for persistent, cross-session, local-first memory for AI agents, storing memories as Markdown files with SQLite indexing for hybrid search.24Apache 2.0
Related MCP Connectors
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Cloud-hosted MCP server for durable AI memory
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/lanlibbi/mcp-memory-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server