HUB
Sign inSign up
mnemos-server logo

jamyouss/mnemos-server

By jamyouss

•Updated about 3 hours ago

Self-hosted memory layer for AI coding agents — MCP-native RAG over your code + docs.

Image
0

2.1K

jamyouss/mnemos-server repository overview

Mnemos

⁠The self-hosted memory layer for AI coding agents.

Code-aware indexing · State-of-the-art retrieval · Memories from your git history · MCP-native · Zero SaaS

GitHub⁠ · Quickstart⁠ · Architecture⁠ · Benchmarks⁠


⁠What is this image

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.

  • 🧠 Memories from your commits — a git hook extracts decisions, patterns, and lessons via an LLM, dedupes them, and stores them, searchable at once and rejectable from the dashboard.
  • 🔍 Production-grade retrieval — hybrid BM25 + dense fusion always on; cross-encoder reranker, CRAG corrective loop and semantic cache behind flags.
  • 🌳 Code-aware chunking — tree-sitter for Go, SFC sections for Vue, heading splits for Markdown. Symbols stay intact across embeddings.
  • 🪡 MCP-native — http://localhost:8100/mcp/ exposes 9 tools to any MCP-compatible agent; the dashboard is served at http://localhost:8100/.
  • 🏠 100% self-hosted — Qdrant + sentence-transformers + your choice of LLM (Ollama / Anthropic / any OpenAI-compatible endpoint).

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.

⁠Tags

TagMeaning
edgeManual build of main (workflow dispatch), not rebuilt on every push
1.2.3, 1.2Semver tags from git releases (1 too, from 1.0 on)
latestMost recent semver release

All tags are multi-arch (linux/amd64 + linux/arm64).

⁠Quick start

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/.

⁠Run standalone (for debugging)
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

⁠Key environment variables

VariableDefaultWhat it does
QDRANT_HOSTlocalhostQdrant service hostname (qdrant in the compose stack)
QDRANT_PORT6333Qdrant HTTP port
QDRANT_API_KEY(unset)Sent to Qdrant; must equal Qdrant's QDRANT__SERVICE__API_KEY. Required when MNEMOS_AUTH_ENABLED=true
EMBEDDING_MODELall-MiniLM-L6-v2Pre-baked in the image, instant cold start
CODEBASE_PATH/data/codebaseContainer path of the mounted codebase; reindex paths must sit under it
MNEMOS_LLM_PROVIDERollamaollama / anthropic / openai
MNEMOS_LLM_MODELllama3.1:8bModel for memory extraction & dedup
MNEMOS_RERANKER_ENABLEDfalseEnable cross-encoder reranker (~1.1 GB downloaded on first use)
MNEMOS_CONTEXTUAL_ENABLEDfalseAnthropic-style contextual chunking
MNEMOS_AUTH_ENABLEDfalseRequire 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_WRITABLEfalseLet the dashboard save settings, connectors, projects and tenants

Full reference: .env.example⁠.

⁠Image facts

  • Size: ~1.5 GB (CPU-only PyTorch, no CUDA, with the default embedding model and the dashboard pre-baked)
  • Base: python:3.12-slim
  • Healthcheck: GET /health every 30 s
  • License: MIT

Tag summary

Content type

Image

Digest

sha256:a6ea7d930…

Size

511.2 MB

Last updated

about 3 hours ago

docker pull jamyouss/mnemos-server