Open-source MCP agent memory server. Fair LongMemEval-S 81.0% (405/500). Self-hosted bi-temporal graph memory. 32 tools. Portable Docker volumes.
Plug OpenStinger into any MCP-compatible agent. Hybrid BM25 + vector retrieval, bi-temporal fact validity, structured vault notes, and optional alignment evaluation. Memory stays when you change frameworks.
Works with OpenClaw · Cursor · Claude Code · Nanobot · Hermes · DeerFlow ·
Qwen-Agent · LangGraph · ZeroClaw · NanoClaw · PicoClaw
Any runtime that speaks MCP. One endpoint. Zero lock-in.
Alongside → Primary → Exclusive · Add memory without rewriting the agent
OpenStinger's entire knowledge state lives in two Docker volumes.
Unplug from one agent. Move to any host. Plug into another.
Every entity, relationship, vault note, and alignment log transfers completely.
Switch from OpenClaw → NanoClaw. Move from Mac Mini → AWS. OpenStinger memory travels with you.
No other *Claw memory system decouples memory from the runtime cleanly enough to make this true.
ABC Test (v0.7) — proven in production:
Runtime A (OpenClaw) → Runtime B (Qwen/Llama) → Runtime C (DeerFlow/Grok)
Full B→C→B circular memory propagation. Identity intact across every hop.
v0.8
Local embeddings via Ollama: nomic-embed-text ·
mxbai-embed-large · all-minilm
No cloud API. No token cost. Full offline operation.
Run openstinger-cli init and select "ollama" when prompted for embedding provider.
v0.9
Resilience + integrity + boot context
Circuit breaker · timeouts · retry · hash-chained provenance · write policy ·
memory_wake_up · GradientHoneypot
(gradient_honeypot_status). 32 MCP tools.
v1.0
Fair LongMemEval claim
Hybrid retrieve packaging, temporal digests, knowledge-update recency.
Publishable fair suite 81.0% on LongMemEval-S (405/500).
LongMemEval-S cleaned, 500 questions. Lite ingest only: no retain, no LLM rerank, no chunk or event atoms. Same protocol vendors cite for agent memory.
| Type | What it tests | Acc | n |
|---|---|---|---|
| Overall fair suite | 81.0% | 500 | |
| single-session-user | Find a fact the user said in one session | 92.9% | 70 |
| knowledge-update | Prefer the latest fact when older ones conflict | 89.7% | 78 |
| single-session-assistant | Find a fact the assistant said in one session | 85.7% | 56 |
| multi-session | Combine evidence across many sessions | 76.7% | 133 |
| temporal-reasoning | Dates, durations, order of events | 73.7% | 133 |
| single-session-preference | Personalize from stated preferences | 73.3% | 30 |
Prior claim 80.4%. Archive fair_c4_500_20260720_1802.
Mid-size 100Q gates are diagnostics only.
Detail: GitHub README.
Agent summary: llms.txt.
Looking for an MCP agent memory server, OpenClaw memory backend, or Cursor persistent memory?
OpenStinger is a self-hosted SSE MCP server at http://localhost:8766/sse
with bi-temporal graph memory, vault notes, and alignment tools.
Full setup with .cursor/mcp.json example:
Cursor persistent memory with OpenStinger.
Machine-readable: llms.txt.
Episodic memory, structured self-knowledge, and alignment evaluation. Additive and deployable one tier at a time. Same SSE endpoint for every MCP client.
Bi-temporal episodic memory. Every conversation, tool call, decision, and skill your agent touches — stored, deduplicated, conflict-resolved, and searchable forever.
Without persistent memory, agents start fresh on every invocation. No cross-session continuity, no accumulated project knowledge, and no audit trail of what was decided before.
# semantic memory query memory_query( query="auth work last sprint", limit=10 ) # returns: episodes + entities + facts # ranked by unified relevance score
# vault builds itself autonomously identity ← who the agent is (conf ≥ 0.92) domain ← what it knows (conf ≥ 0.85) methodology ← how it works preference ← what it favours constraint ← hard limits
Memory alone isn't self-knowledge. Raw episodes don't give an agent identity. StingerVault distils sessions into structured, classified, self-updating self-knowledge — autonomously.
Episodes alone do not answer: "Who am I? What do I believe? What are my constraints?" Without a structured self-model, agents cannot reliably surface identity or policy from raw logs.
vault/. Edit notes directly; SHA-256 change detection syncs changes
back
to the knowledge graph.
knowledge_ingest feeds URLs, PDFs, YouTube transcripts, and raw text into
the
knowledge graph as searchable semantic chunks.
Synchronous behavioral alignment before every response. Value coherence. Identity consistency. Constraint compliance. Content safety. Scored, corrected, and logged in real time.
Without a durable self-model, agents drift from stated constraints under adversarial prompting or long context. Static prompt files disappear after compaction. Gradient evaluates against vault-derived criteria on every response.
# every response, before delivery value_coherence → 0.0–1.0 identity_consistency → pass|fail constraint_compliance→ pass|block content_safety → always runs ───────────────────────────────── verdict: pass | soft_flag | hard_block
Criteria come from StingerVault notes. No weight updates. Any model.
pass
soft_flag | hard_block
Gradient evaluates each response against the agent's own vault-derived profile. Inference-time only. No RLHF. No weight updates. Works with any model behind your MCP client.
C = constraints / identity D = observed deviation β = vault profile depth E = rolling alignment score
pass
verdicts
soft_flag · hard_block
Memory Harness (Tier 1) stores episodic history. Reasoning Harness (Tier 2) distills that history into a structured vault profile. Alignment Harness (Tier 3) scores each response against that profile at inference time. No model weights are modified.
Python 3.10+. Docker. Any OpenAI-compatible inference API.
# 1. Clone and install git clone https://github.com/srikanthbellary/openstinger.git cd openstinger && pip install -e ".[dev]" # 2. Configure interactively # prompts: LLM provider · API key · agent name · embedding provider · profile dirs # v0.8: select "ollama" for fully local embeddings (nomic-embed-text, mxbai-embed-large) openstinger-cli init # 3. Launch — FalkorDB + browser UI + Tier 1 MCP server docker compose up -d python -m openstinger.mcp.server # Tier 2: vault + knowledge + namespace management python -m openstinger.scaffold.mcp.server # Tier 3: full alignment + empathy harness python -m openstinger.gradient.mcp.server
OpenStinger is a pure MCP server. Your agent calls its tools natively — no wrappers, no SDK lock-in, no framework dependency.
OpenClaw · Cursor · Claude Code · Nanobot · Hermes · DeerFlow · Qwen-Agent · LangGraph · ZeroClaw · NanoClaw · PicoClaw
└──────────────────────────────────────┬──────────────────────────────────────────────────────┘
Model Context Protocol · SSE · http://localhost:8766/sse
│
▼
OpenStinger MCP Server (Python process, runs on your machine)
├── Tier 1 memory_query · memory_wake_up · memory_search ··· 12 tools
├── Tier 2 vault_promote_now · knowledge_ingest · namespace_* 11 tools
└── Tier 3 gradient_alignment_score · honeypot_status ······· 9 tools
│ ────────────────
│ 32 tools total
├── FalkorDB (temporal graph · knowledge vault · vector indexes)
├── PostgreSQL (ingestion jobs · alignment events · agent registry)
└── vault/ (markdown notes · human-editable · SHA-256 synced)
Every episode, entity, classification decision, and alignment event is logged to PostgreSQL — ready for dashboards, audits, and compliance reports. Not exported on request. Always on. Always queryable.
SELECT name, entity_type,
episode_count
FROM entity_registry
WHERE entity_type = 'PERSON'
ORDER BY episode_count DESC;
Who has this agent's memory touched?
SELECT verdict, COUNT(*) AS n
FROM alignment_events
WHERE evaluated_at > NOW()
- INTERVAL '7 days'
GROUP BY verdict;
Alignment verdict distribution this week.
SELECT category,
COUNT(*) FILTER
(WHERE stale = false) AS active,
ROUND(AVG(confidence),2)
FROM vault_notes GROUP BY 1;
Active knowledge confidence by category.
OpenStinger logs every ingestion job, entity merge decision, vault classification, and alignment evaluation to a 12-table PostgreSQL schema. Connect any BI tool — Metabase, Grafana, Superset — and get full operational visibility with zero additional instrumentation.
Agents need durable memory across sessions, frameworks, and model swaps.
OpenStinger is that layer: MCP-native, self-hosted, benchmarked.
Bi-temporal graph memory. Structured vault. Alignment evaluation.
Point any MCP client at one endpoint.
One memory layer. Every agent runtime.
OpenClaw · Cursor · Claude Code · Nanobot · Hermes · DeerFlow ·
Qwen-Agent · LangGraph · ZeroClaw · NanoClaw · PicoClaw
OpenStinger.com — MCP agent memory.