MCP server for persistent bilingual agent memory using PostgreSQL, pgvector, hybrid retrieval, and selective caching.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hipocampo.
memoria_vectorialCallable MCP tool function
memory_itemsCallable MCP tool function
save_hipocampoCallable MCP tool function
relatedCallable MCP tool function
follow_upCallable MCP tool function
part_ofCallable MCP tool function
Persistent memory for autonomous AI agents · PostgreSQL 17 + pgvector · Hybrid Search · MCP Server
⚠️ Transport Note: SSE transport is deprecated since MCP spec 2025-03-26. Hipocampo now uses Streamable HTTP (single endpoint
/mcp) as the recommended remote transport. SSE (/sse) remains available for backward compatibility but will be removed in a future release.
Hipocampo runs as a free MCP server on Hugging Face Spaces. Connect from any MCP client:
🧪 Interactive Playground: Try saving and searching memories from your browser at https://alexbell1-hipocampo-mcp.hf.space/ — no registration or MCP client needed.
⚠️ Important: The Hugging Face free tier is ephemeral — data is lost on restart/deploy. This instance is intended for testing only. For persistent storage, run Hipocampo locally (see Quick Start) or connect an external database (Neon, Supabase, etc.).
Embedding model: sentence-transformers/all-MiniLM-L6-v2 (384 dims) via Hugging Face Inference API (free, no credit card required).
Una sola línea. La terminal hace todo: PostgreSQL + pgvector, embeddings, base de datos, venv, clientes MCP, servicio systemd con timer de mantenimiento automático.
🪟 ¿Usas Windows?
install.shes un script de Linux/macOS. En Windows necesitas WSL2 (Windows Subsystem for Linux):Abre la terminal de WSL (Ubuntu), actualiza los paquetes y vuelve a ejecutar el instalador:
⚠️ En Windows puro (CMD/PowerShell) el instalador NO funciona. Sin WSL2 verás errores como
Package 'python3-venv' has no installation candidateoapt: command not found.
Máquinas sin interacción (VPS, contenedores):
| Fase | Qué instala | 🕐 |
|---|---|---|
| ① | Diagnóstico: OS, gestor de paquetes, RAM, disco | ~2s |
| ② | PostgreSQL 17 + pgvector (apt · dnf · pacman · brew) | ~15s |
| ③ | Base de datos + esquema: 10 tablas, HNSW + GIN, ownership | ~3s |
| ④ | Embeddings: Ollama local (qwen3-embedding:0.6b) o API externa | ~60s |
| ⑤ | Python .venv + pip + archivo .env | ~10s |
| ⑥ | Clientes MCP: OpenCode · Claude · Gemini/Antigravity · Cursor · VS Code · Windsurf | ~2s |
| ⑦ | Servicio systemd + timer semanal de mantenimiento automático | ~1s |
| ⑧ | Autodiagnóstico: health · save · search · cleanup | ~3s |
| ✅ Idempotente | Vuelve a ejecutarlo sin miedo — repara ownership, actualiza repo y configs |
| ✅ 6 clientes MCP | OpenCode, Claude, Gemini/Antigravity, Cursor, VS Code, Windsurf |
| ✅ Mantenimiento automático | Timer semanal (domingo 03:00) con Persistent=true — catch-up si la PC estaba apagada |
| ✅ Sin root | Todo en ~/.local/share/hipocampo |
| ✅ Opciones | --unattended, --embed-api, --install-dir, --db-user, --no-clients, --no-timer, --no-ollama |
| ✅ Desinstalación limpia | bash uninstall.sh — para servicios, BD opcional, clientes, archivos |
| ✅ Compilación desde fuente | Fallback si el paquete pgvector no está en el repositorio |
Hipocampo is an advanced dual-memory persistence architecture designed for autonomous AI agents. By maintaining both technical knowledge and user profiling data across sessions, Hipocampo provides a reliable, stateful context that enables agents to learn, adapt, and scale efficiently.
Built on top of PostgreSQL 17 with pgvector, it features BIRE v3.7 — a hybrid retrieval engine combining semantic embeddings (1024d), lexical expansion, and GIN trigram search with dynamic score fusion. Also includes Sparse Selective Caching (SSC) as an experimental pipeline.
Hipocampo already reduces context through SSC (selective retrieval). But even the top-5 most relevant memories can consume 500-2000+ tokens when concatenated — a significant portion of any LLM's context window.
Hybrid compression adds a second reduction layer:
Real impact: If you call compress_hipocampo before every search_hipocampo → LLM round-trip, you save 200-800 tokens per interaction. At scale (hundreds of queries), this translates to meaningful cost reduction and faster responses.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/carrasquelalex1-hipocampo)<a href="https://allmcps.com/mcp/carrasquelalex1-hipocampo"><img src="https://allmcps.com/api/badge/carrasquelalex1-hipocampo?style=directory" alt="Hipocampo on AllMCPs" /></a>