mcp-memory-server
MCP Memory Server
Memoria persistente de agente para Blockbrain (o cualquier cliente MCP) mediante archivos Markdown + búsqueda de texto completo SQLite FTS5.
¿Por qué?
Los agentes de Blockbrain no conservan la memoria entre sesiones. Cada conversación empieza desde cero. Este servidor MCP lo soluciona: el agente puede guardar lo que ha aprendido y recuperarlo la próxima vez.
Cómo funciona:
El agente resuelve un problema → llama a
memory_savecon la soluciónEl agente inicia una nueva tarea → llama a
memory_recallpara comprobar si hay problemas similares en el pasadoTodos los recuerdos se almacenan como archivos Markdown legibles + se indexan en SQLite para una búsqueda rápida
Related MCP server: universal-memory-mcp
Herramientas
Herramienta | Descripción |
| Almacena una entrada de memoria (tema, título, contenido) |
| Busca recuerdos por palabra clave/tema (FTS5) |
| Lista todos los temas almacenados con recuento de entradas |
| Elimina una entrada de memoria por ID |
Inicio rápido (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/healthIntegración con Blockbrain
Exponer el servidor públicamente — Blockbrain necesita una URL HTTPS:
Opción A: Cloudflare Tunnel (
cloudflared tunnel --url http://localhost:8080)Opción B: Cualquier proxy inverso (nginx, Caddy, Traefik) con TLS
Opción C: ngrok para pruebas (
ngrok http 8080)
Registrarlo en Blockbrain:
Ve a Admin → Agents → MCP Servers
Haz clic en "+ Add MCP Server"
Rellena los campos:
Nombre: Memory Server
URL del servidor:
https://<your-public-url>/sseTransporte: SSE
Autenticación: API Key
API Key: (el valor de tu .env)
Guarda y activa
Asignarlo a un agente y añade instrucciones al prompt del sistema del agente:
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
Configuración
Toda la configuración mediante variables de entorno:
Variable | Valor por defecto | Descripción |
| (vacío = sin autenticación) | Clave API para la cabecera X-API-Key |
|
| Dónde se almacenan los archivos Markdown |
|
| Puerto HTTP |
|
| Máximo de resultados por búsqueda |
|
| debug, info, warning, error |
Almacenamiento
Los recuerdos se almacenan como archivos Markdown con frontmatter YAML:
/data/memories/
├── contract-review/
│ ├── nda-standard-clauses.md
│ └── liability-clause-fix.md
├── supplier-issue/
│ └── delayed-delivery-workaround.md
└── memory.db ← SQLite FTS5 indexCada archivo tiene este aspecto:
---
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...Puedes navegar, editar o eliminar recuerdos directamente: son solo archivos Markdown. El índice SQLite se mantiene sincronizado automáticamente.
Desarrollo local (sin 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 8080Endpoints de la API
Endpoint | Método | Descripción |
| GET | Comprobación de salud (sin autenticación requerida) |
| GET | Endpoint SSE para la conexión del cliente MCP |
| POST | Endpoint de mensajes MCP (usado por el transporte SSE) |
Stack tecnológico
Python 3.12 + MCP SDK
Starlette + Uvicorn para HTTP/SSE
SQLite FTS5 para búsqueda de texto completo (cero dependencias externas)
Markdown para almacenamiento legible por humanos
Licencia
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