daryl-memories
Enables multiple Hermes agents to persist and retrieve shared knowledge via a local graph-based memory system, supporting hybrid search, entity context exploration, and memory management.
README
Mnemosyne
Shared GraphRAG memory MCP server for 3 Hermes agents. Fully local -- no data leaves the network.
Architecture
Machine 1 (HOST: this PC) Machine 2 Machine 3
+--------------------------+ +-------------+ +-------------+
| Neo4j (Docker) | | Hermes | | Hermes |
| Ollama (native) |<---| Agent | | Agent |
| MCP server (Python) | MCP| (client) | | (client) |
| Port 8080 | +-------------+ +-------------+
+--------------------------+
- Machine 1 runs everything. Machines 2 & 3 are pure MCP clients.
- Neo4j handles graph + vector + full-text in one container.
- Ollama runs natively (not Docker) for simplicity.
- MCP is Hermes's native protocol -- agents get memory tools as first-class capabilities.
Quick Start
# 1. Clone and configure
git clone https://github.com/DarylAndrian/Mnemosyne.git
cd Mnemosyne
cp .env.example .env
# Edit .env with your passwords
# 2. Start Neo4j
docker compose up -d
# 3. Install Python deps
uv venv .venv
uv pip install -r requirements.txt
# 4. Start the server
python -m server.main
The server starts on http://0.0.0.0:8080/mcp. Health check at /health.
Memory Graph Frontend
An Obsidian-style graph viewer is served at http://<HOST_IP>:8080/ (same port as MCP).
- Force-directed graph of entities, colored by type
- Click a node: aliases, facts, episodes, 1-3 hop neighborhood
- Double-click: expand neighborhood
- Recall box: hybrid RAG search (same pipeline as the
recalltool) - Filters by entity type, node limit, include episodes
- Paste
MCP_API_KEYor an agent token in the top-right to unlock API calls
No build step and no internet needed -- plain HTML/JS with vis-network vendored in
frontend/vendor/. The API endpoints (/api/graph, /api/entity, /api/recall,
/api/episodes, /api/stats) require the same Bearer token as MCP; static files are public.
Environment Variables
| Variable | Default | Description |
|---|---|---|
NEO4J_URI |
bolt://localhost:7687 |
Neo4j bolt URI |
NEO4J_USER |
neo4j |
Neo4j username |
NEO4J_PASSWORD |
(required) | Neo4j password |
OLLAMA_URL |
http://localhost:11434 |
Ollama API URL |
EXTRACT_MODEL |
qwen2.5:3b |
LLM for entity extraction |
EMBED_MODEL |
nomic-embed-text |
Embedding model (768-dim) |
MCP_HOST |
0.0.0.0 |
Bind address |
MCP_PORT |
8080 |
Listen port |
MCP_API_KEY |
(required) | Shared API key for auth |
MCP Tools
remember(content, agent_id, session_id?, tags?)
Store a memory. Server extracts entities, relationships, and facts into the knowledge graph. Detects conflicts with existing facts.
recall(query, top_k?, agent_id?)
Hybrid RAG search: vector similarity + keyword + graph neighborhood expansion. Fused with recency and access-count boosts.
context(entity_name, depth_limit?)
Graph neighborhood traversal. Returns all edges connected to an entity within 1-3 hops.
resolve(entity_a, entity_b)
Merge duplicate entities. Re-points all edges, keeps both names as aliases.
forget(memory_id)
Soft-delete an episode. Preserves provenance.
Agent Configuration
Add to your Hermes config:
{
"mcpServers": {
"mnemosyne": {
"url": "http://<HOST_IP>:8080/mcp",
"headers": {
"Authorization": "Bearer <MCP_API_KEY>"
}
}
}
}
Infrastructure
- Neo4j 5.26 (Community) -- graph + vector + full-text in one container
- Ollama 0.32+ -- qwen2.5:3b (extraction) + nomic-embed-text (embeddings)
- Python 3.11+ -- FastMCP server with Streamable HTTP transport
- Docker Compose -- Neo4j only (Ollama stays native)
Development
# Run integration tests (requires live stack)
.venv/Scripts/python.exe -c "from tests.test_integration import *; ..."
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.