Логотип OmniMem

OmniMem

Спільнота
richarvey

Self-hosted semantic memory for AI Agents. Persistent sessions, experience scoring, and a graveyard for dead ends, backed by knowledge acquired from the RSS you read and stored in a Valkey vector search then exposed as an MCP server.

Видавецьricharvey
РепозиторійOmniMem
МоваPython
Форки
6
Зірки
61
Доступні інструменти
0
Тип транспортуstdio
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    OmniMem надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 61, форки: 6 — у пов’язаному репозиторії.

<OmniMem>omnimem.org

Security Scans Docker Build Coverage

Development happens on Squarecows — issues and PRs there please.

Stop living the same session twice.

Every Claude Code session starts from zero. No memory of your project. No memory of what failed last week. No memory that you spent three hours last Tuesday discovering why onnxruntime explodes on Alpine before finding something that actually works.

So you explain the project again. Claude suggests the same broken library again. Same alarm. Same song. You are Bill Murray and Claude is Punxsutawney.

OmniMem fixes that. It is a self-hosted MCP server that gives your AI agent persistent memory across sessions, projects, and machines. It runs on your own hardware and it is free forever.

claude> use onnxruntime for the embeddings

⚠ WARNING: previously abandoned approach

  onnxruntime — SIGILL crash on Alpine musl libc (effort: 4/5)
  → switched to sentence-transformers instead

That warning came from memory, not luck. The mistake you already paid for does not get to charge you twice.


Get going quickly

[!TIP] One command gets the full stack running from the pre-built Docker Hub images:

bash
curl -fsSL https://code.squarecows.com/ric/omnimem/raw/branch/main/install.sh | bash

Then point your agent at it — the quick start walks through the rest, or jump to the fuller quick start section below.


What it remembers

Five kinds of memory, all searched together at recall time:

  • Episodic — the decisions you made, the bugs you fixed, the patterns you discovered. The things that took real effort to learn and should not have to be re-learned every morning.
  • Project context — your stack, goals, and current state. The agent arrives at every session already briefed rather than starting cold.
  • Knowledge — RSS feeds you configure, fetched on a schedule, summarised by Claude Haiku, embedded, and stored. When a relevant article landed last week, it surfaces as a starting point worth reading. A feed can also influence a compiled skill directly, weighted by a score you set, so rebuilding the skill pulls in the feed's latest articles without hand-promoting each one.
  • Preferences — prescriptive rules about how you want to work ("always update the README after a feature lands"), extracted from your conversations automatically and surfaced whenever they apply.
  • Skills — SKILL.md documents compiled from your accumulated experience in a domain, so the agent works your way from the first prompt. Derived from the other namespaces, never hand-edited, and every change goes through your review. See the skill compiler.

The top recall result might be a decision from six months ago on a different project, a solution from yesterday, or an article that landed on Tuesday night. It does not matter where it came from as long as it is useful.


What makes it different

Not just a key-value store with an MCP wrapper. OmniMem models how memory actually works: things fade over time, they sometimes contradict each other, and the hard-won stuff earns its place.

  • The Graveyard — every dead end gets logged with what you tried, why it failed, and how much time you burned. The agent checks it before suggesting a library or pattern.
  • Experience scoring — something that took four attempts and a weird platform workaround to crack is gold. The harder it was, the more readily it surfaces next time.
  • Memory lifecycle — ACTIVE → DEPRIORITISED → ARCHIVED → DELETED. "Forget about X" usually means stop bringing it up, not wipe it from existence. Deprioritised memories can earn their way back.
  • Contradiction detection — if a new memory disagrees with something stored, OmniMem catches it. Fast heuristic on every write, optional deeper analysis via Claude Haiku.
  • Semantic deduplication — near-identical memories get flagged at write time and cleaned up in bulk with find_duplicates().
  • One-call briefing — a single briefing() returns project context, experience stats, stale memories, new articles, contradiction warnings, and skill suggestions. No three-step warm-up.
  • The skill compiler — distils reinforced lessons and dead ends into loadable skills, behind a propose-and-accept gate so bad lessons cannot become policy silently.
  • Auto-maintenance — duplicates archived, contradictions flagged, expired knowledge cleaned up, all in the background.
  • Redistribution rights — every memory records whether it may be redistributed (own, open, restricted, unknown), decided at ingest from what the feed declares. Recall points out what nobody has classified so you can say while the content is in front of you.
  • Provenance — every memory says whether the human asserted it, the system concluded it, or it was retrieved from elsewhere, so a later session can tell evidence from inference instead of citing its own reasoning as corroboration.
  • Web UI — browse, search, and manage everything from an htmx dashboard, with telemetry and a Prometheus /metrics endpoint.

The ranking formula behind every recall:

score = similarity x surface_score x recency x experience_weight

Four factors decide what comes back. Semantic similarity alone is not enough — lifecycle state, age, and how hard the lesson was to learn all play a role.


Works with any MCP agent

One memory layer for all of them: claude.ai, Claude Code, Claude Desktop, Cursor, GitHub Copilot, GitLab Duo, AWS Kiro, OpenCode, OpenAI Codex CLI, and Open Design.


Architecture

Four containers. Nothing leaves your machine. Local embeddings via ONNX Runtime (no PyTorch), storage in Valkey with vector search, and both front doors share the same memory engine.

The full picture — the recall pipeline, storage model, and design decisions — is in docs/architecture.md.


Self-hosted, open source, yours

No SaaS. No vendor lock-in. No context shipped to someone else's servers.

  • Valkey is an open source Redis fork. All your data stays in a named Docker volume on your own machine.
  • Multi-arch Docker images for amd64 and arm64. It runs on a Raspberry Pi, AWS Graviton, or Apple Silicon just as well as x86.
  • ONNX Runtime runs the all-MiniLM-L6-v2 embeddings locally with no API calls and no PyTorch — the MCP image went from 2.0 GB to 634 MB in 6.7.
  • MIT licensed means fork it, extend it, run it wherever you want.
  • One backup command calls dump_to_file() and exports everything to a JSON file you own.

Expose the MCP port through your reverse proxy and every machine you work from shares the same memory. One deployment, everywhere — see docs/remote-access.md.


Quick start

The installer checks Docker is installed, generates secure passwords, writes a sensible .env, and starts everything from the pre-built Docker Hub images:

bash
curl -fsSL https://code.squarecows.com/ric/omnimem/raw/branch/main/install.sh | bash

Or build from source:

bash
git clone https://code.squarecows.com/ric/omnimem.git && cd omnimem
cp .env.example .env
# Set VALKEY_PASSWORD and ANTHROPIC_API_KEY in .env
docker compose up -d

Then point your agent at it — Claude Code (~/.claude.json):

json
{
  "mcpServers": {
    "omnimem": {
      "type": "sse",
      "url": "http://localhost:8765/sse"
    }
  }
}

The server delivers its usage guide to any connecting agent automatically via the MCP instructions field — no configuration file needed. The web dashboard is at http://localhost:8080.

The full walkthrough, including auth tokens, permission settings, and the other agents, is in docs/quick-start.md.


Documentation

Quick startInstaller, building from source, connecting your agent
Features in depthLifecycle, graveyard, experience scoring, dedup, contradictions, briefing
The skill compilerCompiling experience into loadable skills
MCP tool referenceAll 30+ tools
Configuration referenceEvery environment variable
RSS & knowledgePassive knowledge ingestion and promotion
Multiple machinesReverse proxy, OAuth 2.1 for claude.ai, troubleshooting
Web UIThe management dashboard and Prometheus metrics
ArchitectureContainers, recall pipeline, design decisions
Memory type specsThe storage model, field by field
Connection guidesPer-agent setup
Deployment guidesmacOS · Raspberry Pi · AWS · GCP · Linux + Tailscale Funnel

Per-namespace storage specifications, if you want to know exactly what gets written to Valkey and by whom: overview · episodic · project · knowledge · preference · skill


Contributing

Issues and PRs are welcome. Development happens on Squarecows — issues and PRs there please. OmniMem is designed to be extended and the scoring pipeline is structured so new multipliers can be added without touching the core. New MCP tools, additional namespace types, and alternative embedding backends are all reasonable directions.


Licence

MIT. Free to use, fork, and modify. No enterprise tier, no hosted version, no strings.


Built by Ric Harvey @ SquareCows Ltd, an AI and automation consultancy for people who would rather own their tools.

Використовуйте MCP OmniMem з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення OmniMem ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте OmniMem як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP OmniMem.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "omnimem": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для OmniMem, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для OmniMem.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через OmniMem?
OmniMem
Звісно. Я це прочитав.
Ось що я знайшов за допомогою OmniMem.

Поширені запитання

Для чого використовується сервер MCP OmniMem?

OmniMem — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP OmniMem з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати OmniMem з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP OmniMem із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши OmniMem, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP OmniMem до TypingMind?

OmniMem працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP OmniMem у TypingMind?

OmniMem надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP OmniMem?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо OmniMem потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇