MCP Hub
Back to servers

Lore Context

Validation Failed

Governed AI-agent memory, Evidence Ledger traces, evals, and portable context tools.

Registry
Stars
1
Updated
Apr 29, 2026
Validated
May 1, 2026

Validation Error:

Process exited with code 1. stderr: npm error code ETARGET npm error notarget No matching version found for @lore-context/server@*. npm error notarget In most cases you or one of your dependencies are requesting npm error notarget a package version that doesn't exist. npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-05-01T03_04_22_601Z-debug-0.log

Quick Install

npx -y @lore-context/server

Lore Context

The control plane for AI-agent memory, eval, and governance.

Know what every agent remembered, used, and should forget — before memory becomes production risk.

CI License: Apache 2.0 Version Node

Getting Started · Website Quickstart · Benchmark Methodology · API Reference · Architecture · Project Plan · Release Status · Roadmap · Integrations · Deployment · Changelog

LoCoMo-200 retrieval-only Lore hit@5 47.5 percent Mem0 OSS local hit@5 31.5 percent Lore P95 latency 29.1 milliseconds

🌐 Read this in your language: English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Tiếng Việt · Español · Português · Русский · Türkçe · Deutsch · Français · Italiano · Ελληνικά · Polski · Українська · Bahasa Indonesia

Localized docs may lag the current English release notes; the canonical v0.6 docs are the English README and docs/ set.


LoCoMo-200 retrieval snapshot

This is the same public-safe comparison surfaced on the website: a local LoCoMo-derived 200-question retrieval-only harness. It measures whether the needed context appears in the top 5 retrieved items and how fast the local API responds. It is not generated-answer accuracy, and it is not a universal benchmark-win claim against Mem0, Zep, Letta, or Memobase.

MetricLore Context v0.6 local APIMem0 OSS v2.0.1 local runRead it as
Retrieval hit@547.5% (95/200)31.5% (63/200)Higher is better
P50 latency18.2 ms342.3 msLower is better
P95 latency29.1 ms709.8 msLower is better
P99 latency59.0 ms2087.8 msLower is better
Query errors60Lore 429s are counted honestly

Read the full methodology and caveats in docs/launch/memory-benchmark-report-2026-04-29.md or the public page at lorecontext.com/benchmark.

What is Lore Context

Lore Context is an open-core control plane for AI-agent memory: it composes context across memory, search, and tool traces; evaluates retrieval quality on your own datasets; routes governance review for sensitive content; and exports memory as a portable interchange format you can move between backends.

It does not try to be another memory database. The unique value is what sits on top of memory:

  • Context Query — single endpoint composes memory + web + repo + tool traces, returns a graded context block with provenance.
  • Memory Eval — runs Recall@K, Precision@K, MRR, stale-hit-rate, p95 latency on datasets you own; persists runs and diffs them for regression detection.
  • Governance Review — six-state lifecycle (candidate / active / flagged / redacted / superseded / deleted), risk-tag scanning, poisoning heuristics, immutable audit log.
  • MIF-like Portability — JSON + Markdown export/import preserving provenance / validity / confidence / source_refs / supersedes / contradicts. Works as a migration format between memory backends.
  • Multi-Agent Adapter — first-class agentmemory integration with version probe + degraded-mode fallback; clean adapter contract for additional runtimes.

When to use it

Use Lore Context when...Use a memory database (agentmemory, Mem0, Supermemory) when...
You need to prove what your agent remembered, why, and whether it was usedYou just need raw memory storage
You run multiple agents (Claude Code, Cursor, Qwen, Hermes, Dify) and want shared trustable contextYou're building a single agent and OK with a vendor-locked memory tier
You require local or private deployment for complianceYou prefer a hosted SaaS
You need eval on your own datasets, not vendor benchmarksVendor benchmarks are sufficient signal
You want to migrate memory between systemsYou don't plan to ever switch backends

Quick Start

# 1. Clone + install
git clone https://github.com/Lore-Context/lore-context.git
cd lore-context && pnpm install

# 2. Run the quickstart helper and inspect the activation report
pnpm quickstart -- --dry-run --activation-report

# 3. Generate a real API key (do not use placeholders in any environment beyond local-only dev)
export LORE_API_KEY=$(openssl rand -hex 32)

# 4. Start the API (file-backed, no Postgres required)
pnpm build && PORT=3000 LORE_STORE_PATH=./data/lore-store.json pnpm start:api

# 5. Write a memory
curl -H "Authorization: Bearer $LORE_API_KEY" -H "Content-Type: application/json" \
  -X POST http://127.0.0.1:3000/v1/memory/write \
  -d '{"content":"Use Postgres pgvector for Lore Context production storage.","memory_type":"project_rule","project_id":"demo"}'

# 6. Query context, then inspect the returned traceId in the Evidence Ledger
curl -H "Authorization: Bearer $LORE_API_KEY" -H "Content-Type: application/json" \
  -X POST http://127.0.0.1:3000/v1/context/query \
  -d '{"query":"production storage","project_id":"demo","token_budget":1200}'

For the public website quickstart, see lorecontext.com/quickstart. For full setup (Postgres, Docker Compose, Dashboard, MCP integration), see docs/getting-started.md.

The canonical alpha quickstart is git clone + pnpm quickstart. Lore does not currently publish or claim a public @lore-context/quickstart npm package. The MCP stdio server is published separately as @lore-context/server for registry and client distribution.

For AI-readable discovery, the website publishes /llms.txt and /llms-full.txt from public documentation only. The Official MCP Registry entry is published, and additional distribution drafts live under docs/distribution. Launch drafts live under docs/launch, and design partner intake under docs/design-partners. The public benchmark page is a public-safe LoCoMo-200 retrieval-only lab report with explicit caveats, not a competitive benchmark-win claim.

Architecture

                       ┌─────────────────────────────────────────────┐
   MCP clients ──────► │ apps/api  (REST + auth + rate limit + logs) │
   (Claude Code,       │   ├── context router (memory/web/repo/tool) │
    Cursor, Qwen,      │   ├── context composer                      │
    Dify, Hermes...)   │   ├── governance + audit                    │
                       │   ├── eval runner                           │
                       │   └── MIF import/export                     │
                       └────────┬────────────────────────────────────┘
                                │
                  ┌─────────────┼──────────────────────────┐
                  ▼             ▼                          ▼
           Postgres+pgvector   agentmemory adapter     packages/search
           (incremental        (version-probed,        (BM25 / hybrid
            persistence)        degraded-mode safe)     pluggable)
                                                                 ▲
                       ┌─────────────────────────────┐           │
                       │ apps/dashboard  (Next.js)   │ ──────────┘
                       │   protected by Basic Auth   │
                       │   memory · traces · eval    │
                       │   governance review queue   │
                       └─────────────────────────────┘

For detail, see docs/architecture.md.

What's in v0.6.0-alpha

CapabilityStatusWhere
REST API with API-key auth (reader/writer/admin)✅ Productionapps/api
OpenAPI 3.1 contract at /openapi.json✅ Productionapps/api/src/openapi.ts
pnpm quickstart local adoption helper✅ Alphascripts/lore-quickstart.mjs
Quickstart activation report with redacted first-value proof✅ Alphascripts/lore-quickstart.mjs
AI-readable docs (/llms.txt, /llms-full.txt)✅ Alphaapps/website
MCP stdio server (legacy + official SDK transport)✅ Productionapps/mcp-server
Next.js dashboard with HTTP Basic Auth gating✅ Productionapps/dashboard
Evidence Ledger API + Dashboard summary✅ Alphaapps/api, apps/dashboard
Postgres + pgvector incremental persistence✅ Optionalapps/api/src/db/
Governance state machine + audit log✅ Productionpackages/governance
Eval runner (Recall@K / Precision@K / MRR / staleHit / p95)✅ Productionpackages/eval
Eval report export (json / markdown)✅ AlphaGET /v1/eval/report
Public-safe eval report CLI✅ Alphascripts/export-eval-report.mjs
MIF v0.2 import/export with supersedes + contradicts✅ Productionpackages/mif
agentmemory adapter with version probe + degraded mode✅ Productionpackages/agentmemory-adapter
Rate limiting (per-IP + per-key with backoff)✅ Productionapps/api
Structured JSON logging with sensitive-field redaction✅ Productionapps/api/src/logger.ts
Docker Compose private deployment✅ Productiondocker-compose.yml
Demo dataset + smoke tests + Playwright UI test✅ Productionexamples/, scripts/
Official MCP Registry + distribution docs, launch drafts, design partner intake✅ Alphaserver.json, docs/distribution/, docs/launch/, docs/design-partners/
npm MCP server package✅ Alpha@lore-context/server@0.6.0-alpha.1
Hosted multi-tenant cloud sync⏳ Roadmap

See CHANGELOG.md for the full v0.6.0-alpha release notes.

Current release status

v0.6.0-alpha is published as a public alpha pre-release. The release tag points to 4f0eadf369e99e364bd06b7d3228b84a9f7501b9; public main includes the release-closure, integration-validation, and distribution commits with passing CI. The production website, AI-readable docs, public API health endpoint, GHCR MCP image, npm MCP server package, and Official MCP Registry listing are live.

See docs/release-status.md for the current public-safe status snapshot.

Release focus

The v0.6 release is the Distribution and Trust Sprint. The goal is not more memory storage features; it is making the v0.5 substrate easier to discover, install, verify, and share without leaking local secrets or private data.

Shipped v0.6 work:

  • AI-readable website docs at /llms.txt and /llms-full.txt;
  • canonical, Open Graph, Twitter, and static header metadata for public docs;
  • pnpm quickstart -- --activation-report with redacted dry-run and real first-value proof;
  • stricter activation proof that fails instead of skipping when the target port is occupied;
  • public-safe eval reporting and smoke coverage for eval export plus MIF JSON export;
  • @lore-context/server@0.6.0-alpha.1 npm publication, Official MCP Registry publication, plus distribution metadata drafts for marketplace listings and agent plugins;
  • launch content drafts and design partner intake/scorecard workflow;
  • HN-ready website surfaces for quickstart, v0.6 changelog narrative, and benchmark methodology.

It deliberately does not claim public SaaS, billing, managed sync, remote MCP HTTP, or benchmark wins.

See docs/project-plan.md, docs/roadmap.md, and docs/release-governance.md.

Integrations

Lore Context speaks MCP and REST and integrates with most agent IDEs and chat frontends:

ToolSetup guide
Claude Codedocs/integrations/claude-code.md
Cursordocs/integrations/cursor.md
Qwen Codedocs/integrations/qwen-code.md
OpenClawdocs/integrations/openclaw.md
Hermesdocs/integrations/hermes.md
Difydocs/integrations/dify.md
FastGPTdocs/integrations/fastgpt.md
Cherry Studiodocs/integrations/cherry-studio.md
Roo Codedocs/integrations/roo-code.md
OpenWebUIdocs/integrations/openwebui.md
Other / generic MCPdocs/integrations/README.md

Deployment

ModeUse whenDoc
Local file-backedSolo dev, prototype, smoke testingThis README, Quick Start above
Local Postgres+pgvectorProduction-grade single-node, semantic search at scaledocs/deployment/README.md
Docker Compose privateSelf-hosted team deployment, isolated networkdocs/deployment/compose.private-demo.yml
Hosted cloudFuture private roadmap, not a public alpha claim

All deployment paths require explicit secrets: POSTGRES_PASSWORD, LORE_API_KEYS, DASHBOARD_BASIC_AUTH_USER/PASS. The scripts/check-env.mjs script refuses production startup if any value matches a placeholder pattern.

Security

v0.6.0-alpha keeps the v0.5 adoption baseline and adds distribution-facing AI-readable docs, activation evidence, public-safe reports, and launch materials. The security posture remains appropriate for local and private alpha deployments:

  • Authentication: API-key bearer tokens with role separation (reader/writer/admin) and per-project scoping. Empty-keys mode fails closed in production.
  • Rate limiting: per-IP + per-key dual bucket with auth-failure backoff (429 after 5 fails in 60s, 30s lockout).
  • Dashboard: HTTP Basic Auth middleware. Refuses to start in production without DASHBOARD_BASIC_AUTH_USER/PASS.
  • Containers: all Dockerfiles run as non-root node user; HEALTHCHECK on api + dashboard.
  • Secrets: zero hardcoded credentials; all defaults are required-or-fail variables. scripts/check-env.mjs rejects placeholder values in production.
  • Governance: PII / API key / JWT / private-key regex scanning on writes; risk-tagged content auto-routed to review queue; immutable audit log on every state transition.
  • Memory poisoning: heuristic detection on consensus + imperative-verb patterns.
  • MCP: zod schema validation on every tool input; mutating tools require reason (≥8 chars) and surface destructiveHint: true; upstream errors sanitized before client return.
  • Logging: structured JSON with auto-redaction of content, query, memory, value, password, secret, token, key fields.

Vulnerability disclosures: SECURITY.md.

Project structure

apps/
  api/                # REST API + Postgres + governance + eval (TypeScript)
  dashboard/          # Next.js 16 dashboard with Basic Auth middleware
  mcp-server/         # MCP stdio server (legacy + official SDK transports)
  web/                # Server-side HTML renderer (no-JS fallback UI)
  website/            # Marketing site (handled separately)
packages/
  shared/             # Shared types, errors, ID/token utilities
  agentmemory-adapter # Bridge to upstream agentmemory + version probe
  search/             # Pluggable search providers (BM25 / hybrid)
  mif/                # Memory Interchange Format (v0.2)
  eval/               # EvalRunner + metric primitives
  governance/         # State machine + risk scan + poisoning + audit
docs/
  i18n/<lang>/        # Localized README in 17 languages
  integrations/       # 11 agent-IDE integration guides
  deployment/         # Local + Postgres + Docker Compose
  legal/              # Privacy / Terms / Cookies (Singapore law)
scripts/
  check-env.mjs       # Production-mode env validation
  smoke-*.mjs         # End-to-end smoke tests
  apply-postgres-schema.mjs

Requirements

  • Node.js >=22
  • pnpm 10.30.1
  • (Optional) Postgres 16 with pgvector for semantic-search-grade memory

Contributing

Contributions are welcome. Please read CONTRIBUTING.md for the development workflow, commit message protocol, and review expectations.

For documentation translations, see the i18n contributor guide.

Operated by

Lore Context is operated by REDLAND PTE. LTD. (Singapore, UEN 202304648K). Company profile, legal terms, and data handling are documented under docs/legal/.

License

The Lore Context repository is licensed under Apache License 2.0. Individual packages under packages/* declare MIT to enable downstream consumption. See NOTICE for upstream attribution.

Acknowledgments

Lore Context builds on top of agentmemory as a local memory runtime. Upstream contract details and version-compatibility policy are documented in UPSTREAM.md.

Reviews

No reviews yet

Sign in to write a review