Self-hosted memory layer for AI coding agents — MCP-native RAG over your code + docs.
2.1K
Code-aware indexing · State-of-the-art retrieval · Memories from your git history · MCP-native · Zero SaaS
GitHub · Quickstart · Architecture · Benchmarks
Mnemos is a self-hosted MCP server that gives AI coding agents (Claude Code, Claude Desktop, any MCP client) a real memory of your codebase, your docs, and your past decisions.
http://localhost:8100/mcp/ exposes 9 tools to any
MCP-compatible agent; the dashboard is served at http://localhost:8100/.Measured: with the cross-encoder reranker on (off by default), +47% MRR and +37% NDCG@5 over plain dense retrieval on the same golden set.
| Tag | Meaning |
|---|---|
edge | Manual build of main (workflow dispatch), not rebuilt on every push |
1.2.3, 1.2 | Semver tags from git releases (1 too, from 1.0 on) |
latest | Most recent semver release |
All tags are multi-arch (linux/amd64 + linux/arm64).
Mnemos needs Qdrant beside it. Pull the project's compose file rather than running this image standalone:
git clone https://github.com/jamyouss/mnemos.git
cd mnemos
cp .env.example .env # then set MNEMOS_CODEBASE_HOST_PATH
cp config/projects.example.yaml config/projects.yaml
docker compose up -d
Then point your MCP-compatible agent at http://localhost:8100/mcp/.
docker run --rm -p 8100:8100 \
-e QDRANT_HOST=host.docker.internal \
-e QDRANT_PORT=6333 \
-e MNEMOS_AUTH_ENABLED=false \
-v "$PWD:/data/codebase:ro" \
jamyouss/mnemos-server:latest
| Variable | Default | What it does |
|---|---|---|
QDRANT_HOST | localhost | Qdrant service hostname (qdrant in the compose stack) |
QDRANT_PORT | 6333 | Qdrant HTTP port |
QDRANT_API_KEY | (unset) | Sent to Qdrant; must equal Qdrant's QDRANT__SERVICE__API_KEY. Required when MNEMOS_AUTH_ENABLED=true |
EMBEDDING_MODEL | all-MiniLM-L6-v2 | Pre-baked in the image, instant cold start |
CODEBASE_PATH | /data/codebase | Container path of the mounted codebase; reindex paths must sit under it |
MNEMOS_LLM_PROVIDER | ollama | ollama / anthropic / openai |
MNEMOS_LLM_MODEL | llama3.1:8b | Model for memory extraction & dedup |
MNEMOS_RERANKER_ENABLED | false | Enable cross-encoder reranker (~1.1 GB downloaded on first use) |
MNEMOS_CONTEXTUAL_ENABLED | false | Anthropic-style contextual chunking |
MNEMOS_AUTH_ENABLED | false | Require Authorization: Bearer <api-key> on /api, /internal, /mcp; tenants stored in Qdrant, first imported from MNEMOS_TENANTS_PATH or MNEMOS_BOOTSTRAP_ADMIN_KEY |
MNEMOS_UI_CONFIG_WRITABLE | false | Let the dashboard save settings, connectors, projects and tenants |
Full reference: .env.example.
python:3.12-slimGET /health every 30 sjamyouss/mnemos-watcher —
filesystem watcher that pushes incremental indexing requests to this server.jamyouss/mnemos-cli —
the mnemos CLI and the knowledge connectors (the compose ingester).docs/ARCHITECTURE.mddocs/RETRIEVAL_PIPELINE.mddocs/MEMORY_PIPELINE.mddocs/MCP_INTEGRATION.mddocs/EVAL.mdContent type
Image
Digest
sha256:a6ea7d930…
Size
511.2 MB
Last updated
about 3 hours ago
docker pull jamyouss/mnemos-server