Hippo
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Hippo
Self-hosted personal memory layer for Claude.ai, Claude Code, and any AI agent that supports MCP.
Stores memories as semantic embeddings in Qdrant using Ollama for local inference — no OpenAI, no external embedding API. Exposes an MCP server that Claude.ai connects to via OAuth, and a REST API for agent scripts.
Includes a weekly reconcile job that deduplicates and merges near-identical memories using an LLM, with a Telegram-based review and approve flow.
What it does
Add memories — any connected client can store a memory (text → embedding → Qdrant)
Search memories — semantic search across everything stored
Weekly reconcile — finds near-duplicate memories, proposes merges via Claude, sends a Telegram summary with a one-click approve link
Claude.ai integration — full OAuth 2.1 + PKCE flow so Claude.ai can connect as an MCP remote server
Claude Code integration — API key header auth for local use
Agent scripts — simple REST endpoints (
POST /add_memory,POST /search_memory) for shell scripts or any HTTP client
Related MCP server: Spomory
Stack
Component | Role |
| MCP server + REST API + OAuth server |
| Weekly deduplication script |
Qdrant (Docker) | Vector database |
Ollama | Local embeddings ( |
cloudflared | Tunnel to expose the server publicly (for Claude.ai) |
systemd | Service management |
Prerequisites
Linux server (tested on Ubuntu 24.04)
Docker + Docker Compose
Ollama installed and running (
ollama serve)nomic-embed-textpulled:ollama pull nomic-embed-textA public domain or subdomain pointing to your server via cloudflared
Python 3.10+ (3.10 minimum for
matchsyntax used in the reconcile script)An OpenRouter API key (for the reconcile LLM calls — Claude Haiku)
A Telegram bot and chat ID (for reconcile notifications)
Installation
1. Clone the repo
git clone https://github.com/sebastienlauzie/hippocampus.git /srv/hippo
cd /srv/hippo2. Start Qdrant
docker compose up -dQdrant will be available at http://localhost:6333. The collection is created automatically on first run.
3. Set up the Python environment
python3 -m venv venv
venv/bin/pip install -r requirements.txt4. Create the API key
Generate a random key and store it where the service expects it:
sudo mkdir -p /etc/hippo
openssl rand -hex 32 | sudo tee /etc/hippo/api_key
sudo chmod 640 /etc/hippo/api_key
sudo chown root:$(whoami) /etc/hippo/api_key5. Configure Telegram notifications (for reconcile)
sudo tee /etc/hippo/telegram.json > /dev/null << 'EOF'
{
"botToken": "your-telegram-bot-token",
"chatId": your-chat-id
}
EOF
sudo chmod 640 /etc/hippo/telegram.json
sudo chown root:$(whoami) /etc/hippo/telegram.json6. Configure OpenRouter key (for reconcile)
echo "your-openrouter-api-key" | sudo tee /etc/hippo/openrouter_key
sudo chmod 640 /etc/hippo/openrouter_key
sudo chown root:$(whoami) /etc/hippo/openrouter_key7. Set up cloudflared
Install cloudflared and create a tunnel pointing to localhost:8765. Your tunnel's public URL is what you'll set as HIPPO_PUBLIC_URL.
8. Install the systemd service
sudo cp hippo.service.example /etc/systemd/system/hippo.serviceEdit the service file to set your values:
Environment=HIPPO_PUBLIC_URL=https://your-hippo-domain.example.com
Environment=HIPPO_DEFAULT_USER=yournameThen enable and start:
sudo systemctl daemon-reload
sudo systemctl enable hippo
sudo systemctl start hippoCheck it's running:
sudo systemctl status hippo
curl http://localhost:8765/healthConnecting Claude.ai
In Claude.ai, go to Settings → Integrations → Add custom integration
Set the MCP server URL to:
https://your-hippo-domain.example.com/mcpSet the OAuth Client ID to:
hippoClaude.ai will redirect you to your
/authorizepage — enter your API key to grant accessToken is valid for 90 days
Connecting Claude Code
Add to your ~/.claude.json MCP servers config:
{
"mcpServers": {
"hippo": {
"type": "http",
"url": "http://localhost:8765/mcp",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}Weekly reconcile
The reconcile script finds near-duplicate memories, asks Claude to decide whether to merge or keep them, and sends you a Telegram message with a review link.
Set up a weekly cron job:
# Run dry-run every Saturday at 2am (adjust to your timezone)
0 6 * * 6 /srv/hippo/venv/bin/python3 /srv/hippo/hippo-reconcile.py --dry-runFlow:
Cron runs
--dry-run→ analyses all memories → saves proposed changesTelegram message arrives with a link to review the proposals
You click "Approve" in the browser → merges are applied, Telegram confirmation sent
Token expires after 48h — if you don't approve, nothing changes
Manual run:
# Dry run (analyse and propose)
venv/bin/python3 hippo-reconcile.py --dry-run
# Execute pending proposals (after reviewing)
venv/bin/python3 hippo-reconcile.py --executeREST API (for agent scripts)
Both endpoints require X-API-Key header.
# Store a memory
curl -X POST http://localhost:8765/add_memory \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"text": "Some fact to remember"}'
# Search memories
curl -X POST http://localhost:8765/search_memory \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"query": "what do I know about X", "limit": 5}'Architecture notes
Embeddings: nomic-embed-text via Ollama, 768-dimensional Cosine similarity. Qdrant collection is created automatically on first start.
Auth — two modes:
X-API-Keyheader — for Claude Code, scripts, direct API callsOAuth 2.1 + PKCE — for Claude.ai (the
/authorizepage asks for your API key and issues a 90-day bearer token)
No OpenAI dependency. Everything runs locally via Ollama except the reconcile LLM calls, which use Claude Haiku via OpenRouter. You could swap that for any OpenAI-compatible endpoint.
Qdrant network: Qdrant is bound to 127.0.0.1:6333 only — not exposed externally. If you're running Ollama on the same host as Docker, you may need a UFW rule to allow the Docker bridge subnet to reach port 11434:
# Allow Docker containers to reach Ollama on the host
# Add to /etc/ufw/before.rules (before the COMMIT line):
-A ufw-before-input -s 172.18.0.0/16 -p tcp --dport 11434 -j ACCEPTThen sudo ufw reload.
Environment variables
See .env.example for the full list. Key ones:
Variable | Default | Description |
| (required) | Your public URL — used in OAuth and Telegram links |
|
| Default namespace for memories |
|
| Qdrant URL |
|
| Ollama URL |
|
| Port the MCP server listens on |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceGives AI persistent personal memory with hybrid search, temporal decay, and knowledge graph. Works with Claude and any MCP client.41 npm10MIT
- AlicenseAqualityBmaintenanceEnables personal AI memory management through MCP tools for adding, searching, exporting, and deleting memories, with knowledge-graph retrieval and multi-hop association for clients like Claude Desktop and Cursor.61Apache 2.0
- AlicenseNot gradedqualityCmaintenanceGives every Claude surface (claude.ai, Desktop, mobile, Office add-ins, Claude Code) read and write access to the memories, transcripts and notes produced by Claude Code instances on all of your machines, with hybrid keyword and semantic search. Runs as a self-hosted remote MCP server with GitHub allowlist authentication, secret redaction and audit logging.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to share persistent, searchable memory by capturing, classifying, synthesizing, and retrieving knowledge from sources like Obsidian, code, transcripts, bookmarks, and sessions via MCP and REST with token-optimized context.10 npmMIT